Welcome to Geeklog Sunday, May 19 2013 @ 08:57 PM EDT
|
||||||||
![]() |
Forum Index > Extensions > Plugins |
New Topic
|
Post Reply
|
New Theme |
|||
| destr0yr |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| Dirk |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| destr0yr |
|
||||||
![]() ![]() ![]() ![]() ![]() 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...
-- destr0yr "I love deadlines. I like the whooshing sound they make as they fly by." -- Douglas Adams |
||||||
|
|||||||
| destr0yr |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 07/06/02 Posts: 324 |
-- destr0yr "I love deadlines. I like the whooshing sound they make as they fly by." -- Douglas Adams |
||||||
|
|||||||
| os |
|
||||||
![]() ![]() ![]() ![]() ![]() Junior ![]() Status: offline ![]() Registered: 04/11/02 Posts: 27 |
Cool
|
||||||
|
|||||||
| destr0yr |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| samstone |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() ![]() Status: offline ![]() Registered: 09/29/02 Posts: 820 |
How about Tabby?
Sam |
||||||
|
|||||||
| destr0yr |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| Content generated in: 0.82 seconds |
|
|
|