![]() |
Different Styles and Headers. help!
I have designed a Default Style for my board which has a banner in the header and custom buttons for Register, My Profile etc...
Now.. I created a new Template (so members can have a choice) but after creating a new Replacement Set and Template I lost the look of my board (its got custom menus etc..) So. I made it run off the oringinal templates BUT it wont change colours then! eek. What I want to do... is have 2 (maybe more) different styles with different Headers in them. Is this possible? do I need a hack? A little help please folks! Thanx! Jon |
hmm, must it be ASAP or can you wait?
because vb3 has divided the header and footer from the templateset , so you can create new styles with different headers and footers, but they all use the same normal templates |
If theres a way I can do it now, it would be good. I am reopening my site next Saturday you see.
When is vb3 due out? |
no dateline is set...
well you can hack the gettemplate function to always use the same templateset id except for header/footer btw. colorchanges have nothing to do with differen templatesets if you've set up the colors in your style. templates just use replacementvars to get the right colors... |
Thanx for your help.
Is there a thread that explains how to hack gettemplate ? (new to vb u see. :D) |
hmm, i think there isn't one out as i know..
you have to change two things or your queryammount would rise.. ok, open admin/functions.php find PHP Code:
PHP Code:
PHP Code:
PHP Code:
then you can create new styles with new templatesets. every template you make custom in your new set would be taken from the new set, everyone you let be original would take from templatesetid=1. if there isn't one it'll use the global one |
Brilliant!
Thankyou so much. It works. Thanks for your time. :) :) |
:)
you're welcome |
Thanks for this Xenon. :)
|
you're welcome :)
|
Hmmmm doesn't seem to be working when I tried to implement it. It's just creating sets as normal.
|
well it should, as you can see at obiwan.
be sure your maintemplateset has the lowest setid of the templatesets |
I don't understand what you mean...
|
ORDER BY templatesetid
that's why your default templatesetid must be the lowest. all custom header/footer templatesets must have a higher setid |
Right, I installed this hack and my default style started using the global style. I don't understand? :(
Hmmm great, just realised my default style has now been deleted [of which I have no backup]. |
huh?
try to reverse sort order: ORDER BY templatesetid DESC |
That mean's nothing to me I'm sorry... How do I do that? And the style is gone from my database.
|
you have to change the ORDER part in the query into the new part
|
All times are GMT. The time now is 02:20 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|