Anleitung: Bookmarks am rechten Rand einblenden
Originalmodul von MaXiForum.cz für SMF SimpleMachines
"
/templates/deintemplate/index.html":
Am Ende einfügen:<a id="sys_contact" target="_self" href="{php}echo xtc_href_link(FILENAME_CONTENT, 'coID=7', 'NONSSL');{/php}" title="Kontakt"> </a>
<a id="sys_twitter" target="_blank" href="_hier_dein_Link_" title="Twitter"> </a>
<a id="sys_facebook" target="_blank" href="_hier_dein_Link_" title="Facebook"> </a>
<a id="sys_xing" target="_blank" href="_hier_dein_Link_" title="Xing"> </a>
<a id="sys_linkedin" target="_blank" href="_hier_dein_Link_" title="LinkedIn"> </a>
<a id="sys_googleplus" target="_blank" href="_hier_dein_Link_" title="Google+"> </a>
<a id="sys_rss" target="_blank" href="http://www.deinshop.de/rss_news.php" title="RSS"> </a>
<a id="sys_pinterest" target="_blank" href="_hier_dein_Link_" title="Pinterest"> </a>
<a id="sys_youtube" target="_blank" href="_hier_dein_Link_" title="Youtube"> </a>
Solltet ihr die ID für das Kontaktformular bei euch geändert haben, müsst ihr hier die „7“ durch eure neue ID ersetzen. Bei Erstinstallation ist es aber immer die ID=7.
"
/templates/deintemplate/stylesheet.css":
Am Ende einfügen:/* Begin Show your social networks thanks to MaXiForum.cz for the idea and the new code*/
#sys_contact {
display:scroll;
position:fixed;
top:150px;right:0px;
background-image: url(/images/sys/contact.png);
background-position: 0px 0px;
width: 40px;
height: 40px;
text-decoration: none;
}
#sys_twitter {
display:scroll;
position:fixed;
top:200px;right:0px;
background-image: url(/images/sys/twitter1.png); /* Alternativ mann such das Bild twitter2.png benutzt werden */
background-position: 0px 0px;
width: 40px;
height: 40px;
text-decoration: none;
}
#sys_facebook {
display:scroll;
position:fixed;
top:250px;right:0px;
background-image: url(/images/sys/facebook.png);
background-position: 0px 0px;
width: 40px;
height: 40px;
text-decoration: none;
}
#sys_xing {
display:scroll;
position:fixed;
top:300px;right:0px;
background-image: url(/images/sys/xing.png);
background-position: 0px 0px;
width: 40px;
height: 40px;
text-decoration: none;
}
#sys_linkedin {
display:scroll;
position:fixed;
top:350px;right:0px;
background-image: url(/images/sys/linkedin.png);
background-position: 0px 0px;
width: 40px;
height: 40px;
text-decoration: none;
}
#sys_googleplus {
display:scroll;
position:fixed;
top:400px;right:0px;
background-image: url(/images/sys/googleplus.png);
background-position: 0px 0px;
width: 40px;
height: 40px;
text-decoration: none;
}
#sys_rss {
display:scroll;
position:fixed;
top:450px;right:0px;
background-image: url(/images/sys/rss.png);
background-position: 0px 0px;
width: 40px;
height: 40px;
text-decoration: none;
}
#sys_pinterest {
display:scroll;
position:fixed;
top:500px;right:0px;
background-image: url(/images/sys/pinterest.png);
background-position: 0px 0px;
width: 40px;
height: 40px;
text-decoration: none;
}
#sys_youtube {
display:scroll;
position:fixed;
top:550px;right:0px;
background-image: url(/images/sys/youtube.png);
background-position: 0px 0px;
width: 40px;
height: 40px;
text-decoration: none;
}
#sys_contact:hover, #sys_twitter:hover, #sys_rss:hover, #sys_facebook:hover, #sys_googleplus:hover, #sys_xing:hover, #sys_linkedin:hover, #sys_pinterest:hover, #sys_youtube:hover {
background-position: 0px 39px;
}
/* End Show your social networks */
Der Ordner /sys enthält die Grafiken. Diesen bitte in den Ordner Images im Shoproot kopieren (root/images/sys).
Werden die Bilder nicht angezeigt, dann ändert den Background Pfad mal wie folgt:
...
background-image: url(../images/sys/contact.png);
...
oder:
...
background-image: url(../../images/sys/contact.png);
...
Wer mag kann die Icons (Ordner /sys) auch ins /img Verzeichnis im Templateordner kopieren. Dann muss der Pfad in der css wie folgt aussehen:
background-image: url(img/sys/facebook.png);
Viel Spaß damit Gruß
Sven
[ Für Gäste sind keine Dateianhänge sichtbar ]
[
EDIT Tomcraft 16.07.2011: Fehler in Anleitung korrigiert, Danke an franky_n für den
Hinweis.]
[
EDIT Tomcraft 07.09.2011: Fehler korrigiert, Danke an Jim für den
Hinweis.]
[
EDIT Tomcraft 23.09.2011: Fehlerhafte Dateiendung in der Anleitung des Moduls korrigiert, Danke an Dee01 für den
Hinweis.]
[
EDIT Tomcraft 12.07.2012: Anleitung um Xing, LinkedIn und Google+ erweitert, Danke an jannemann
für die Google+ Grafik.]
[
EDIT Tomcraft 23.01.2013: Fehler in Anleitung korrigiert.]
[
EDIT jannemann 26.01.2013: YouTube und
Google+ Button hinzugefügt]
[
EDIT Tomcraft 16.05.2013: Modul erweitert um
Pinterest,
Youtube und
alternatives Bild für Twitter.]
Linkback: https://www.modified-shop.org/forum/index.php?topic=13847.0