Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: metallica48423 on April 16, 2007, 05:14:55 AM

Title: Using Images instead of tabs
Post by: metallica48423 on April 16, 2007, 05:14:55 AM
Okay, i usually am not the one posting FOR support here, but, here goes anyways :P

I am creating a theme based off the SMF core theme.  While i do want to use the tabs for the main navigation, for the links like 'notify, mark read, etc', i want to use button images.  These, by default show up with both both mirrortabs and maintab images.

Is there any way to change how those buttons get laid out?  I see in MessageIndex.template.php and Display.template.php where the arrays are defined, but I don't see where its being told to put them in tabs (these ones never get 'active' tab they are single click operations so im assuming its possibly through a function?)

Thanks for any and all help :)
Title: Re: Using Images instead of tabs
Post by: Dragooon on April 16, 2007, 05:28:22 AM
Not sure but It may help:
in Messege.index.php find:
markread' => array('text' => 'mark_read_short', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=board;board=' . $context['current_board'] . '.0;sesc=' . $context['session_id']),

See the:
'image' => 'markread.gif'

Replace either the pic or the code.

I think that may work
Title: Re: Using Images instead of tabs
Post by: SleePy on April 16, 2007, 05:30:40 PM
Dragooon,
That will not work.
the template_button_strip in the index.template.php needs to be modified to handle images.

I did post a modified version long ago but lost it in all my posts :P
Title: Re: Using Images instead of tabs
Post by: Harro on April 17, 2007, 04:23:25 AM
I once created a theme that used images for those things for somebody.
Wasn't allowed to publish it for everybody to download.

Can't remember exactly what I changed, but if you want I'll send you the files so you can take a look at it.
You can see the theme in action on my testforum: http://themes.forumaffiliates.net/index.php
Let me know if you're interested :)

Also, if you can't figure it out then let me know. Don't have time to look for it again now, but this evening I should have the time :)
Title: Re: Using Images instead of tabs
Post by: metallica48423 on April 17, 2007, 04:27:56 AM
Thanks Harro for the reply :)

Actually i did a search for a post of SleePy's containing template_button_strip and turned up This Topic (http://www.simplemachines.org/community/index.php?topic=132399.msg867128#msg867128)

After finding that, i was able to get this to work :)

Thanks sleepy, dragooon, and harro!
Title: Re: Using Images instead of tabs
Post by: Harro on April 17, 2007, 04:30:34 AM
ok.
Good luck with it then :)