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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 510
  • Total: 510

SMF/TP Style Nav Menu?

Started by SiGnatureâ„¢, October 27, 2008, 01:39:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SiGnatureâ„¢

Hey guys,

Not sure if this is the right place to post but I couldn't find the right board to post this in but I was requested from DzinerStudio to post here.

Here's my site: [[ RazorProductionz ]]
Basically, I want a navigation menu that looks exactly like this: DzinerStudio
and I was told over there that it is called a "current_action array" which can be explained over here or SMF.org. So my question is that
can the developers or support team help me by giving me a step by step guide as to how I can get this fit into my HTML/PHP/CSS site?


----------------------------

Seperate question... how can I be able to add a submenu below my nav bar for my SMF forum?
Thanks...

----------------------------
Regards,
SiGnatureâ,,¢

IchBin

The $current_action array is what make the buttons highlight when you are on a certain page. In the index.template.php file is a function called template_menu(). Inside that function is all the code for the menu that you're talking about. You can put whatever you'd like into that function. So find a menu that you'd like to use in it, and then put the html code in their in the same format as it is. The only way to learn is to try. :)

SiGnatureâ„¢

#2
(I don't get what you mean... does this script or code whatever work with HTML - So if I copy and paste this code, will it work fine on my HTML site?)

That's the thing... I don't know where to find this index.template.php - Look, it will be better off if someone can fecth me this code and tell me where to put it instead of me doing it ('cause im so new to this lol) because I'm only gonna need it once in my life! :)

Ianedres

index.template.php resides in the directory for your theme; such as domain.com/forum root directoryThemes/>themename</index.template.php.

If, by chance, the theme does not have its own version of the file, it defaults to the SMF version, located as domain.com/forum root directory/Themes/default/index.template.php.

This is, technically, a SMF-related question. I'll refer you to this set of docs:

http://docs.tinyportal.co.uk/index.php?topic=115.0

IchBin

The $current_action array is something that SMF builds when it loads. Your frontpage isn't loaded within SMF so you cannot use the $current_action array. Looking at your site it looks like you've just coded some sort of template and made it look like you are using SMF when you are not. Don't know how you can expect us to do all this work for you. And for your reference, I would appreciate it if you didn't PM me without an invitation. I get enough PM's from noobies looking for something,  that I've added the line to my sig for a reason.

SiGnatureâ„¢

noo... the SMF is being coded at the moment by another guy so I'm using a demo theme style to show him what I want it to look like... I just want my nav links somehow act like the SMF ones.

This website is proudly hosted on Crocweb Cloud Website Hosting.