Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Sunday, May 19 2013 @ 08:57 PM EDT


 Forum Index > Extensions > Plugins New Topic Post Reply
 New Theme
   
destr0yr
 09/20/03 12:44AM (Read 2017 times)  
+++++
Full Member

Status: offline


Registered: 07/06/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
 
Profile Email Website
 Quote
Dirk
 09/20/03 04:27AM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
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

 
Profile Email Website
 Quote
destr0yr
 09/20/03 06:27AM  
+++++
Full Member

Status: offline


Registered: 07/06/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
 
Profile Email Website
 Quote
destr0yr
 09/20/03 01:53PM  
+++++
Full Member

Status: offline


Registered: 07/06/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
 
Profile Email Website
 Quote
os
 09/20/03 07:27PM  
++---
Junior

Status: offline


Registered: 04/11/02
Posts: 27
Cool Big Grin

 
Profile Email Website
 Quote
destr0yr
 09/22/03 10:09PM  
+++++
Full Member

Status: offline


Registered: 07/06/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
 
Profile Email Website
 Quote
samstone
 09/22/03 10:45PM  
+++++
Full Member
angelic

Status: offline


Registered: 09/29/02
Posts: 820
How about Tabby?

Sam

 
Profile Email
 Quote
destr0yr
 09/22/03 11:38PM  
+++++
Full Member

Status: offline


Registered: 07/06/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
 
Profile Email Website
 Quote
Content generated in: 0.82 seconds
New Topic Post Reply

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