News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Using Images instead of tabs

Started by metallica48423, April 16, 2007, 05:14:55 AM

Previous topic - Next topic

metallica48423

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 :)
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Dragooon

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

SleePy

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
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Harro

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 :)

metallica48423

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

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

Thanks sleepy, dragooon, and harro!
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Harro


Advertisement: