MyBB Community Forums

Full Version: Put facebook and twitter link at header?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is my current header:

[Image: BX9tm.png]

I want to add FB and twitter there. How do I do that? I've followed some tutorial but all they did was ruin my template.
ACP -> Templates & Styles -> Templates -> Your theme -> header templates -> header

Find:
Quote:<div class="menu">
<ul>
<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
</ul>
</div>

Add the following code before </ul>

Quote:<li><a href="https://www.facebook.com">Facebook</a></li>
<li><a href="http://www.twitter.com">Twitter</a></li>
THanks man did not know it was that easy. Now, how do I add the images? Like from the F and T from FB and twitter?
Use this code instead.
Quote:<li><a href="https://www.facebook.com"><img src="{$theme['imgdir']}/facebook.png" alt="" title="" />Facebook</a></li>
<li><a href="http://www.twitter.com"><img src="{$theme['imgdir']}/twitter.png" alt="" title="" />Twitter</a></li>

Upload your image files to your theme's image directory.
Replace "facebook.png" and "twitter.png" with the respective image file names.
The image toplinks are in my theme folder, not in normal images.

images/redysh/toplinks

I already have the file names checked, the other ones like search are also in there.

So then I did this:

<li><a href="http://www.facebook.com"><img
src="{$theme['imgdir']}redysh/toplinks/facebook.png" alt="" title=""
/>Facebook</a></li>

But it still wont work?
^ remove theme name (redysh) from above code , that is :
<li><a href="http://www.facebook.com"><img src="{$theme['imgdir']}/toplinks/facebook.png" alt="" title="" />Facebook</a></li>
Doesn't work. With or without the redysh. I tried all options...

The facebook pic is in images/redysh/toplinks and in images/toplinks so I couldn't go wrong.

The filename is facebook4.png and its the same on filezilla... tried converting it to gif too, no result.
Never mind I fixed the problem myself!! thx guys
try this :

<li><a href="http://www.facebook.com"><img
src="images/redysh/toplinks/facebook.png" alt="" title=""
/>Facebook</a></li>
Problem solved.
great, view my other thread, maybe you can answer there too.
http://community.mybb.com/thread-97483.html