TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,230
  • Total Topics: 21,353
  • Online today: 446
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 115
  • Total: 115

banner changing or suggestions

Started by rbh, January 05, 2006, 01:53:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bloc

just a note: if you look at index.template.php (the template-menu function) in the new default theme for SMF1.1RC2 -  or in Amber theme (all versions) you will find that the "tabs" checks the action and topic/board values in the querystring. Thats how it knows where you are and can highlight the correct tab.

Rasyr

Quote from: rbh on January 06, 2006, 05:39:38 AM
well, that is deffinately the result i am looking for. it changes the banners exactly how i was wanting. i need to play around with sizing but other then that, it's almost perfect. the only problem i have it it has messed with the buttons of the site. they were once a row of tabs , the oxygen theme, but have now been replaced with buttons and some of them have turned into links instead of buttons. :D i will continue to mess around with it tomorrow, but you are hitting the nail on the head with what i was looking for. thank you greatly for the effort you are putting into this!  ;D


What theme are you using?

The code I gave you should not have changed the menu strip at all. The spot that calls it looks like:



// Show the menu here, according to the menu sub template.
template_menu();



in both a RC2, non-Modded set of forums and in a RC1 set of forums with Tiny Portal installed.

Look for that bit of code and make sure it did not get changed. The same applies for the   code within the template_menu() function located at the bottom of the index.template.php file.


rbh

i am using smf 1.1rc2 with the tp oxygen theme. i found that line in my modified php and it looks just like that so that isnt it.. i have been messing with all sorts of other things, experimenting with codes and mods, so i may try a fresh install again then attempt this later.

Rasyr

Quote from: rbh on January 06, 2006, 12:36:08 PM
i have been messing with all sorts of other things, experimenting with codes and mods

This is likely what caused it, not the little if statement I provided... heheh  :)

The template_menu() function is defined at the bottom of the  index.template.php file. If you made any changes in there, then that is likely what caused it to go wonky. Take a closer look at it and see.

Did you, at any point, copy the index.template.php from another theme into that theme folder? If so, that may be the issue.


rbh

"Did you, at any point, copy the index.template.php from another theme into that theme folder? If so, that may be the issue."

as much toying around as i have done in the last few weeks, it is HIGHLY probable! :uglystupid2: :D :laugh:

i am currently rebuilding everything now from scratch AGAIN to try this out. i will post what i come up with. hoping i can get all the little things finished i want to do so i can get my page and forum going. i think it would be better to go through the hardships now then trying to do it with a live forum. :o

Rasyr

Yup, can fully understand that. Lots of play/testing time before actually making it live. I am planning on doing the same when ver 0.8 comes out. hehe

I went and created a new theme, based on the default theme, and then went in and used the code myself for the new theme, and it works just fine (I replaced the whole header block above the user/news/forum stats blocks - 1.1 RC1 default (Babylon) theme).

This website is proudly hosted on Crocweb Cloud Website Hosting.