Welcome to Geeklog Thursday, May 19 2022 @ 08:23 am EDT

Geeklog Forums

New Theme


Status: offline

destr0yr

Forum User
Full Member
Registered: 06/07/02
Posts: 324
I\'m trying to create a new theme with \"tabs\" at the top, and i want the tabs to be automagically updated depending on what the user clicks and what page they are on. ie: [ home ] [ forums ] [ links ] if the user is in the forums, that tab would be set to \"selected\" and have a coloured background while home and links would not. Is there anything i can use to build a theme like this?
-- destr0yr "I love deadlines. I like the whooshing sound they make as they fly by." -- Douglas Adams
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
As you probably know, you can embed PHP in the site\'s header. So you could check what the current URL is ($PHP_SELF etc. may help) and emit different class names (or different pieces of HTML) for your links / tabs, depending on what the current URL is. If you need longer pieces of PHP code, you should put them in the theme\'s functions.php file. bye, Dirk
 Quote

Status: offline

destr0yr

Forum User
Full Member
Registered: 06/07/02
Posts: 324
Thanks Dirk... I am using embeded PHP in the header for the menu, so that when a user logs in they will see preferences, and logout options... I\'m not all that familiar with PHP, so i guess i will be doing some research on $PHP_SELF and how to impliment it... Geek
-- destr0yr "I love deadlines. I like the whooshing sound they make as they fly by." -- Douglas Adams
 Quote

Status: offline

destr0yr

Forum User
Full Member
Registered: 06/07/02
Posts: 324
Here\'s a screener of the new theme. Screener ~ 91KB (92,837 bytes)
-- destr0yr "I love deadlines. I like the whooshing sound they make as they fly by." -- Douglas Adams
 Quote

Status: offline

os

Forum User
Junior
Registered: 11/04/02
Posts: 27
Cool Big Grin
 Quote

Status: offline

destr0yr

Forum User
Full Member
Registered: 06/07/02
Posts: 324
I need a name for it... my creativity is lacking... go to www.destr0yr.com(its only 60KBps upstream so be patient)
-- destr0yr "I love deadlines. I like the whooshing sound they make as they fly by." -- Douglas Adams
 Quote

Status: offline

samstone

Forum User
Full Member
Registered: 29/09/02
Posts: 820
angelic
How about Tabby? Sam
 Quote

Status: offline

destr0yr

Forum User
Full Member
Registered: 06/07/02
Posts: 324
Quote by samstone: How about Tabby?
why \"Tabby\"?
-- destr0yr "I love deadlines. I like the whooshing sound they make as they fly by." -- Douglas Adams
 Quote

All times are EDT. The time is now 08:23 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content