If you're customizing your own CSS, you can do whatever you want. There's no limitations there. But if you mean using the different styles in your Style Manager, then that's a little trickier. You can just put the style ID in the link to those pages, but that would set each user's options to that style each time they visited. I know forums can be set to force use a style without doing that, but I'm unfamiliar with how to do that for a custom page.
|
Thanks @Digital for the information.
I guess I will have to find a way to force the general style to forum pages while the custom style is used for custom pages. now I believe I need to look around the net to digg more for this issue. Thanks again. That was very helpful |
You should be able to do something like that at in a plugin on hook style_fetch
PHP Code:
|
Quote:
I found this thread also talking about the same thing I'm after: https://vborg.vbsupport.ru/showthread.php?t=267775 The one who asked the question in that thread mentioned the solution which is this code: Code:
if (STYLEID == 1){ as you know in the custom page, which is html or php and the template that I can create from vb admin cp.... so where exactly should I insert that code? looking forward to hearing from you :) |
That particular link is not the same thing that cellarius posted. That's a plugin that would only execute when a particular style is used. Not the other way around.
In your Admin CP in Plugins & Products, you'll see the Add New Plugin option. You put the code there in a new plugin, and select the hook cellarius mentioned. You should remember what THIS_SCRIPT is, as it's what you changed one of the test lines to when you created your custom page. |
Is there anything that has changed in vB4 over its progression that would cause the original code on the first page to not work?
I've used this as my starting point for an upgrade script I've had for years, but it stopped working and I'm trying to track down why. I'm having the exact same problem on a clean local install of vBulletin. Thanks! Brandon |
There isn't anything in the first post code that has changed. If you need us to take a look at your exact code, you should make a thread in the vB4 Programming forum and post your php code and template code and let us have a link to your page so we can see what is going on.
|
Quote:
That was clear. I followed the steps you mentioned, but it seems there is something wrong with the style. I have tested the style on vb pages, but the custom page shows weird styling.... :confused: it is like interaction between main style and other style. by the way, in your code Code:
if (THIS_SCRIPT == "test") any idea what's going on here? Thanks |
Remember in your custom page, where you changed the text in green?
Quote:
Can you link us to your page so we can see exactly what you mean by interacting? |
Quote:
for the style, I made actually a little mistake.... forgot to clear the browser cache and that's why the style was messy.... :D Thanks again. That was very helpful P.S: I found here at vbulletin.org a mod that let admin to use a global custom footer, any idea if this can replace $footer or {vb:raw footer} |
All times are GMT. The time now is 01:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|