View Full Version : Prefix url if storing CSS as a files
Zachery
09-30-2005, 10:00 PM
Update to my original by use of a plugin.
https://vborg.vbsupport.ru/showthread.php?t=63520
THE FILE IS A PLUGIN NOT A PRODUCT!
Nice one ;)
I've been using this since you released the 3.0.x version Zach.. I am most pleased to see that my 'port' was exactly the same as this. :)
Zachery
10-01-2005, 09:21 PM
I've been using this since you released the 3.0.x version Zach.. I am most pleased to see that my 'port' was exactly the same as this. :)
Its not exactly any huge code changes, just some small varible updates and some {} around one of them :)
Boofo
10-01-2005, 11:55 PM
What does this do exactly?
What does this do exactly?
If you store your css in a file, by default you will have difficulties getting the style to be called when not in your /forums directory.
If you apply Zachs plugin, it will prefix the output of $[css] with $vboptions[bburl]. :)
Boofo
10-11-2005, 01:31 PM
If you store your css in a file, by default you will have difficulties getting the style to be called when not in your /forums directory.
If you apply Zachs plugin, it will prefix the output of $[css] with $vboptions[bburl]. :)
Ok, either this didn't work for me or I am missing something. :(
Zachery
10-11-2005, 04:35 PM
Ok, either this didn't work for me or I am missing something. :(
Are you already storing CSS as files bob?
monstergamer
10-11-2005, 04:45 PM
nice work :)
Boofo
10-11-2005, 04:56 PM
Are you already storing CSS as files bob?
Yes, I are? ;)
Zachery
10-12-2005, 04:25 PM
Yes, I are? ;)
It should add a full url infront of path then...
Are you sure its not working?
Boofo
10-12-2005, 05:11 PM
It should add a full url infront of path then...
Are you sure its not working?
Where would I see that at?
Zachery
10-12-2005, 05:38 PM
Where would I see that at?
View the source bob
the path to the css file should be prefixed with your domain name.
Give me a link to your site so I can take a look :
Neutral Singh
10-13-2005, 05:15 AM
mine is also not working.
http://www.sikhphilosophy.net/sikhphilosophy/blog/
Boofo
10-13-2005, 05:20 AM
View the source bob
the path to the css file should be prefixed with your domain name.
Give me a link to your site so I can take a look :
Ahhh, ok, then it's working right. I just checked the View Source and the full path to the css file is there. I was thinking it was supposed to be a part of the file name which didn't make sense to me. Sorry about that. ;)
Oreamnos
10-13-2005, 07:33 AM
Simple & extremely useful! Thanks! :)
bangthebook
10-13-2005, 04:24 PM
I think this is what I am looking for but I am not sure how to use it.
If you visit my site www.bangthebook.com the homepage header uses the css file for the background etc. How do I get this to happen in the forum as well. If I understand right this plugin does it yet I cant get it to work. What am I missing.
Sorry if I am way off here
Thanks
Ryan
Oreamnos
10-13-2005, 09:51 PM
it looks like you have at least 2 style sheets, one for your index.php page and one for your forum. if that's ok with with you then you don't need this plugin.
this plugin is useful if you have pages outside of your forum/ directory and you wantto apply your vb styles to them. this plugin allows any page outside of your forum/ directory to access the css file.
for example, notice on expatbars.com that the index page has the same style as expatbars.com/forums/ and expatbars.com/gallery/ and if you view the source you can see that the css file is linked with the complete URL, not just "clientscript/vbulletin_css/123.css
hope that helps
eric
bangthebook
10-13-2005, 10:52 PM
yes it does. Thanks. Any ideas how I can get the reverse of this for my header? Its driving me nuts to have two different ones
Zachery
10-14-2005, 12:17 AM
mine is also not working.
http://www.sikhphilosophy.net/sikhphilosophy/blog/
You are not storing CSS as files.
Oreamnos
10-14-2005, 12:20 AM
yes it does. Thanks. Any ideas how I can get the reverse of this for my header? Its driving me nuts to have two different ones
i'm not sure i understand what you want to do?
Do you want to have only one css file?
Logikos
04-06-2006, 03:57 AM
Thank you for this Zach. I didn't know you released untill I requested that Jelsoft put the option back in the admincp. :)
http://www.vbulletin.com/forum/showthread.php?t=181076
* Logikos clicks install ;)
Cky47
05-01-2006, 09:42 AM
Does anyone know what the heck is wrong with my site? I have it set to store as files, and I have this plugin installed. But when I lookedat my source, it isnt showing it as a file. I would really like some help, becasue I hate seeing the css in the code.
Zachery
05-01-2006, 04:21 PM
vbulletin can't write the css files to the directory, ensure that it has the proper permissions and disable/reneable the option.
Cky47
05-01-2006, 07:02 PM
Which directory? I thougth I did that...
Cky47
05-01-2006, 08:54 PM
I didnt know what permissions to give it, but I gave it to them, and now its working.
What number should I have set?
Zachery
05-02-2006, 06:10 AM
777 ;) just like the instructions say
imranbaig
06-23-2006, 07:17 PM
its really nice Thanks, reduces page size :)
Zachery
08-21-2006, 04:48 PM
Still working in 3.6
Gastongr
08-26-2006, 07:00 AM
Awesome!.
thanks Zachery
abenoking
01-14-2007, 07:29 PM
This appears to be exactly what I am looking for, but excuse my niavety: how do you actually call this URL in an integrated non-vb page?
lostgirl815
03-21-2007, 06:34 PM
Forgive my ignorance, but is this what you'd use to be able to have your normal non-forum web pages be the same CSS style as your forum's style? Or is this something else?
blindMoe
08-30-2007, 10:53 PM
First off, this is an awesome plug in.. I installed the Groups Commune package and it pointed me here as this is a required plug in if you are using the "store css as files" option and you want the Groups Commune to work.
I love this plug in and now I am wondering if the same could be done for <img> tags. Some components that reside in subdirectories have issues with templates that don't link to their images correctly. I am having a problem where the author of a template did not put in a leading '/' in the src='' statements ( ie: src="TemplateName/whatever.png" ). So the result is all my images are dead when I am in a subdirectory. ( ie: http://www.example.com/groups/ )
This is just an idea I had, I figured I may try writing it but seeing as I don't have much experience with VB plug ins I though I would leave it to the pro's. Time for me to go fix templates :(
Thanks again for helping out the community with this great plug in!
Jay-MOB
09-19-2007, 08:52 PM
how do you use this?
I don't get it.
I installed it, what then?
Zachery
12-11-2007, 04:25 PM
Then nothing, it works or you're not storing CSS as a file.
ekool
12-09-2009, 06:56 PM
Anyone tested this with 3.8?
Zachery
12-10-2009, 09:40 PM
Works just fine.
webmastersitesi
02-24-2011, 02:57 PM
i tested works fine 3.8.6.1
yahooooh
03-13-2011, 10:28 AM
it is not work for 4.1.2
could you update it plz
Zachery
03-14-2011, 04:58 PM
vB4 does this by default with the base url option.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.