Uutiset:

Join the Facebook Fan Page.

Main Menu
Advertisement:

Follow Us On Twitter Button

Aloittaja darcysarto, kesäkuu 03, 2011, 06:26:09 IP

« edellinen - seuraava »

darcysarto

Hello, I'd like to add a follow us on twitter button to my forum www.bbcradioforum.co.uk level with the connect with facebook button but on the other side of the screen.  I have the html code from twitter

<a href="http://www.twitter.com/BBCRadioForum"><img src="http://twitter-badges.s3.amazonaws.com/follow_us-a.png" alt="Follow BBCRadioForum on Twitter"/></a>

I just need to know where to put it?


darcysarto

Ok well perhaps someone could give me a clue to where the Connect with facebook button is inserted and I can try to figure it out for myself?

All Colours Sam

Most likely it will be on yout theme's Index.template.php   I tried to parse that mod to tell you the exact file and locaiton but it appears that it only support 2.0 now.


the facebook connect code should be around this lines:


// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>

<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="43200">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
<span class="middletext">', $txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

darcysarto

Thanks so much for that, I've managed to put it under the Connect With Facebook button using a slightly different bit of html, not exactly where I wanted it but didn't have time to mess around with the tables.

Incidentally for any mods reading long posts on this forum start doing that awful flickering thing, which is why I couldn't quote the above post here in my reply... there is a fix for it somewhere.

All Colours Sam

darcysarto  is this solved?  if so, please mark it as solved by clicking the  "Mark Topic Solved" button below.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Advertisement: