Subscribe to RSS feed RSS-Feed abonnieren or oder follow me Follow me on Twitter? auf Twitter?
Digg recently Digg kürzlich introduced DiggBar eingeführt DiggBar to mixed reactions. auf gemischte Reaktionen. We also shared a Greasemonkey script to Wir teilten auch ein Greasemonkey-Skript remove DiggBar entfernen DiggBar , only to discover later that it can be , Nur um später feststellen, dass es sein kann turned off from Digg preferences von Digg Präferenzen deaktiviert . . However, DiggBar is enabled by default, and most readers are unlikely to turn it off themselves. Allerdings ist DiggBar standardmäßig aktiviert, und die meisten Leser wohl kaum um ihn aus dem selbst zuwenden. Here is a JavaScript code to remove DiggBar – bloggers and webmasters who find DiggBar damaging would probably find this useful. Hier ist eine JavaScript-Code zu entfernen DiggBar - Blogger und Webmaster, die finden DiggBar schädlich wäre wahrscheinlich diese nützlich finden.
Reasons to remove DiggBar Gründe für das Entfernen DiggBar
So, what is the damage? Also, was ist der Schaden? DiggBar does a 200 HTTP code (hence depriving sites of DiggBar wird ein HTTP-Code 200 (daher entzogen Websites Google juice Google juice ). ). If a hundred sites link to your blog using the Digg shortened URL, all that juice goes to Digg. Wenn hundert Seiten Link zu Ihrem Blog Digg die verkürzte URL verwenden, geht alles, Saft to Digg.
Can rel=”canonical” be used to suggest a canonical url on a completely different domain? Kann rel = "kanonisch" verwendet werden, um eine kanonische URL auf einem ganz anderen Bereich vorschlagen?
No. To migrate to a completely different domain, permanent (301) redirects are more appropriate. Nr. Um die Migration auf einem ganz anderen Bereich, permanent (301) leitet die besser geeignet sind. Google currently will take canonicalization suggestions into account across subdomains (or within a domain), but not across domains. Google wird derzeit Kanonisierung Vorschläge berücksichtigt über Sub-Domains nehmen (oder innerhalb einer Domain), nicht aber über mehrere Domains. So site owners can specify a canonical page on www.example.com from a set of pages on example.com or help.example.com, but not on example-widgets.com So können Website-Eigentümer eine kanonische Seite auf www.example.com angeben, aus einer Reihe von Seiten auf example.com oder help.example.com, aber nicht auf Beispiel-widgets.com
- -- About rel=canonical Über rel = kanonische , Google Webmasters help Google Webmaster Hilfe
Canonical tag which would not work (because canonical tags work only within a domain, not cross-domain). Canonical Tag, das nicht funktionieren würde (weil kanonischen Tags funktionieren nur innerhalb einer Domäne ist, nicht Cross-Domain).
How to remove DiggBar (code) Wie DiggBar entfernen (Code)
Initially, this article contained only the JavaScript method, but upon further searching, I also found a PHP code. Ursprünglich enthielt dieser Artikel nur die JavaScript-Methode, sondern auf eine weitere Suche fand ich auch ein PHP-Code. Both methods are shown here, and each is useful for different scenarios. Beide Methoden werden hier gezeigt, und jede ist für verschiedene Szenarien nützlich.
Javascript code Javascript-Code
The JavaScript method redirects the user to the actual page. Die JavaScript-Methode leitet den Benutzer auf die aktuelle Seite. Enter this code block within head tags of your pages. Geben Sie diesen Code-Block im Kopf Tags Ihrer Seiten.
<script language="JavaScript" type="text/javascript"> <script language="JavaScript" type="text/javascript">
if (top.location != self.location) top.location.replace(self.location); if (top.location! = self.location) top.location.replace (self.location);
</script> </ script>
The above code removes all frames, including the frames created by Google Image search. Der obige Code entfernt alle Bilder, einschließlich der Bilder von Google Bildsuche erstellt. If you do not like image search visitors seeing the above code, use it always. Wenn Sie nicht wie Bildsuche Besucher sehen Sie den obigen Code, verwenden Sie es immer. If you wish to remove DiggBar only, use it only when your blog is Dugg/about to be dugg. Wenn Sie nur DiggBar entfernen möchten, verwenden Sie es nur, wenn Ihr Blog ist Dugg / about zu sein Dugg. That way, you can have the best of both worlds – image search visitors see the frame on top while DiggBar is removed during the influx of visitors (which is when your visitors will link to you and bookmark you. Auf diese Weise können Sie haben das Beste aus beiden Welten - Bildsuche Besuchern der Rahmen oben, während DiggBar während der Zustrom von Besuchern, entnommen (was ist, wenn Sie Ihre Besucher zu Ihnen und den Favoriten hinzufügen Link gelangen Sie.
PHP code PHP-Code
John Gruber John Gruber posted a PHP snippet posted a PHP Snippet that detects DiggBar (from the URL) and shows them a greeting message. DiggBar erkennt, dass (aus der URL) und zeigt sie eine Begrüßung angezeigt.
This PHP snippet merely shows a message to the visitor and stops loading the page – without redirecting the user. Dieses PHP Snippet zeigt nur eine Nachricht an den Besucher-und beendet das Laden der Seite - ohne Umleitung der Benutzer. You may want to show a hyperlink to the actual page. Sie können einen Hyperlink auf die aktuelle Seite zu zeigen.
<?php if (preg_match('#http://digg.com/\w{1,8}/?$#', <? php if (preg_match ( '# http://digg.com/ \ w (1,8 }/?$#',
$_SERVER['HTTP_REFERER']) ) { $ _SERVER [ 'HTTP_REFERER'])) (
echo "<p>Special message for Digg users here.</p>"; echo "besondere Botschaft für Digg Benutzer hier. </ p>";
exit; exit;
} )
?> ?>
The above code checks whether the referral URL is digg.com followed by 1 to 8 characters – which is typical of the DiggBar. Der obige Code prüft, ob der Verweis-URL ist digg.com von 1 bis 8 Zeichen -, welche der typischen DiggBar gefolgt wird. If yes, it shows a message to the visitors (written within quotes on line 2) and stops loading page. Wenn ja, zeigt es eine Botschaft an die Besucher (in Anführungszeichen on line 2 geschrieben) und nicht mehr laden können.
Related reading In Verbindung stehende Lesung
- New and improved method to remove / block DiggBar Neue und verbesserte Methode zur Entfernung / Block DiggBar
- How to remove DiggBar (Greasemonkey script) Windows XP DiggBar (Greasemonkey-Skript)
- DiggBar Remover removes DiggBar the smart way DiggBar Remover entfernt DiggBar die clevere Art
- Post codes to blog posts/comments with Postable Postleitzahlen zu Blog-Posts / Kommentare mit Buchbar
Great tip thanks Great tip dank