vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=135623

Absolute path for vbulletin CSS file
by deathemperor
05 Jan 2007 16:44

2 Attachment(s)
This hack was coded by me when I got problems when using "Store CSS Stylesheets as Files?" and use hacks that are placed outside of my vbulletin forum root (e.g: vbadvanced). Using "Store CSS Stylesheets as Files?" reduce my bandwidth and load speed so can't miss it (and I think you should not either).

This hack is created 15mins ago for my need, I thought some of you may need it too (many people use vbadvanced) so I decided to post here.

This hack is useless if you have "Store CSS Stylesheets as Files?" option set to No.

Although I think this hack does not need a demo, here is it anyway: http://download.holvn.org

Installations:

there is no queries run, no db changes, no template edit, just upload "Absolute path for vbulletin CSS file.xml" as a new plugin and everything is done. Simple !

CHANGES: 13 - Jan - 2007: fix the problem when using it with vbadvanced cmps. please reupload the plugin to fix.

dj_melayu 05 Jan 2007 17:20

Installed! What is the purpose for this hacks anyway..I just install and take a test drive..My 'Store CSS Stylesheets as Files' is set to yes..What doest it do? I'm newbie here

bashy 05 Jan 2007 21:07

You installed this not knowing what it is and the purpose?

ZacUSNYR 05 Jan 2007 21:22

Quote:

Originally Posted by dj_melayu (Post 1151382)
Installed! What is the purpose for this hacks anyway..I just install and take a test drive..My 'Store CSS Stylesheets as Files' is set to yes..What doest it do? I'm newbie here

Such a simple idea that is needed when running stuff like Photopost or vbadvanced gallery while using external style sheets. Instead of using a relative path to forum root for the .CSS it uses an absolutely (http://www.mydomainname.com/forum/style.css) so it'll display.

ConqSoft 05 Jan 2007 21:30

vBAdvanced Gallery and CMPS does this automatically....

deathemperor 06 Jan 2007 01:09

Quote:

Originally Posted by ConqSoft (Post 1151510)
vBAdvanced Gallery and CMPS does this automatically....

you're right, I didn't realize that :P but the other hacks do need this when moving outsite of the forum.

Qwest 06 Jan 2007 17:46

I nominate this as one of the contenders for most useless hacks of 2007.

Happy New Year.

kall 07 Jan 2007 20:45

Quote:

Originally Posted by Qwest (Post 1151976)
I nominate this as one of the contenders for most useless hacks of 2007.

Happy New Year.

It will contend nicely with your threadsoup mod then. :P

This modification is highly useful for people who have integrated other applications that reside outside of the forum directory... when Zachery released it for 3.0.x, it was one of the most useful mods available.. and it continues to be so.

ConqSoft 07 Jan 2007 20:48

You should update this to work for the .js references as well.

Smoothie 08 Jan 2007 02:02

Quote:

Originally Posted by Qwest (Post 1151976)
I nominate this as one of the contenders for most useless hacks of 2007.

Happy New Year.

LOL.

alahnae 08 Jan 2007 03:48

loaded,
all it did was strip the css from the page...it didnt work.

so i went in and unchecked them..theres seems to be two of them ..might have already added this once.? or maybe it added the two

Absolute path for $style[css]
Absolute path for $style[css]

entrys in the plugin list..

we run the vbadvanced and the photopost so..thought maybe it would help someplace..

there is a huge lag when people click on to the gallery though..thats been there for some time now..

I was hoping this would have an effect to fix that..

but nah..
just striped the css off the site..

btw, yes we have 'Store CSS Stylesheets as Files' checked.

thanks anyway.

Qwest 08 Jan 2007 20:49

Quote:

Originally Posted by kall (Post 1152813)
It will contend nicely with your threadsoup mod then. :P

This modification is highly useful for people who have integrated other applications that reside outside of the forum directory... when Zachery released it for 3.0.x, it was one of the most useful mods available.. and it continues to be so.

If all you say about it's usefulness is true then I now totally understand the blistering pace of it's install rate and rapid ascention to MOTM.... :D

sabret00the 09 Jan 2007 18:51

Quote:

Originally Posted by Qwest (Post 1153879)
If all you say about it's usefulness is true then I now totally understand the blistering pace of it's install rate and rapid ascention to MOTM.... :D

Don't be a twit.

Taking a look at Zachery's profile
[3.5.5] Prefix url if storing CSS as a files // 41
[3.0.6] prefix url if store CSS as a file // 17

that's more than all of your installs added together.

deathemperor 13 Jan 2007 14:56

I've updated this hack so that it won't effect the vbadvanced CMPS. With the photopost gallery this hack has nothing to do with. I'm not sure how it is with vbadvanced gallery tho.

Thanks for those who like this hack and click installed. It is very likely that you don't use a hack on your board not to mention a hack that is outside vbulletin forum directory so of course it's useless to you. As I mentioned above this hack is useful for me, I released it because I thought one or any of the users here may find it useful too. If you think this hack should be removed you can contact a vbulletin.org moderator to remove it for you, I have no problem with that at all :).

thincom2000 06 Feb 2007 05:43

This came in very handy for me since I use two domain names for the same forum, and my stylesheets weren't parsing on the second domain as long as they were stored as files.

Thanks to another hack I was using that wouldn't use vBulletin styles properly unless the CSS was stored in the filesystem, I was in a jam, and the forum was on two domains: one looked awesome, the other white and Times New Roman.

Thanks for this!


All times are GMT. The time now is 17:11.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.