News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Custom Tabs, how do i add an image to a new Tab ?

Started by evilfx, August 17, 2010, 01:11:48 PM

Previous topic - Next topic

evilfx

Hi

I want to add an image to a new custom tab but i can't seem to do it.

I'm using smf 2.0 RC3 and a theme from dzinerstudio.

my website's url is: www.blackberrypt.com [nofollow]

I'm trying this code on subs.php:
// [Facebook button]
'facebook' => array(
'title' => 'Facebook',
'href' => 'http://www.facebook.com/BlackberryPortugal',
'show' => true,
'icon' => 'http://www.blackberrypt.com/fb.png',
),


But only the text is showing up.

CapadY

Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

evilfx

i just did, still now showing.

am i missing something ? i've tried [img] and [image] instead of [icon], it still doesn't work.

Kill Em All

What about trying on the default theme or trying to clear your own browser's cache?


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

evilfx

it's not a brwoser cache problem, i've even tried it on different browsers. you can't see it either, right ?

i've tried it on curve, still not showing

CapadY

Did you try it with a local stored icon in stead of an url ?
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

evilfx

i'm sorry, i don't understand, how do i do that ?

Kill Em All

Alright, sorry it took me so long, went to a friends house and then had to play with the code for a lonnnnggg time. haha

First, go in to the default theme folder, open up your index.english.php file, replace english with whatever language your forum uses,  then create a new $txt entry under a already created one. Make it:

$txt['facebook'] = '<img src="THE IMAGE'S URL" />';


Then in your Subs.php, make this entry:

// [Facebook button]
'facebook' => array(
'title' => $txt['facebook'],
'href' => 'http://www.facebook.com',
'show' => true,
'sub_buttons' => array(
),
),


Replace:

'http://www.facebook.com'

with the link destination you would like.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Advertisement: