![]() |
Relative vs absolute path ? Does Photopost vBGallery requiere us to use absolute path instead of relative URL for the image settings in vBulletin ? I read somewhere that absolute paths in website should not be used, since it requieres more work the server, donīt know if that is true though. |
You always use absolute paths if your talking about full urls in the gallery settings and full server paths where asked in admin. |
Ok, so you mean in my style manager I can use relative paths ? |
Not really no since images are not existing in the gallery directory. You can edit the style directly and set full server paths to the images directories or use the tool in your vbgallery admin to correct image paths. Your question sounded like a settings question not a style question. ;) |
I will try with full server paths - thanks |
No problem glad to help |
Well, I´m using relative paths now in the styles, the forum works fine this way, but I see that the gallery has absolute paths for the style.css files, can I change this, so the styles includes are relative instead ? |
A little more detail - the forum itself the style include looks like this: Code: Content visible to verified customers only.Code: Content visible to verified customers only.Thanks |
well you could.. but you will be subject to errors... AND it would depend of your installation.. AND you could not use some addons.. it works this way.. because some people have different istallation types... some have gallery inside the forum directory.. others outside the forum directory.. I myself use gallery outside my forum directory.. Most common installation: example: gallery url: http://www.myforums.com/gallery forum url: http://www.myforums.com/forums the stylesheet used will be in both cases: http://www.myforums.com/forums/clien...31f4-00029.css It seems by your example that u are using gallery inside your forums directory.. gallery url: http://www.myforums.com/gallery forum url: http://www.myforums.com/ gallery works as it does.. so people can setup gallery both ways as they wish.. (I would never want gallery inside my forums) so for your forums the relative path would be: clientscript/vbulletin_css/style-030231f4-00029.css for your gallery it would be something like: ../clientscript/vbulletin_css/style-030231f4-00029.css but you could modify the replacement somewhere in gallery_global.php (search for "clientscript" in your gallery_global.php) but I only see drawbacks doing that.. 1. you would have to apply the change of phpcode at every gallery update.. 2. your gallery will not work if you use vbseo or any other url replacement software as vbseo requires full path for doing replacements outside the forum directory.. 3. and depending on your server configuration you would have to use full urls for all the imageurls INSIDE your stylesheet.. (as a difference to what chuck wrote.. I personally use relative urls INSIDE my stylesheet and it works.. but i had to play around a little with ../../../images directory AND - but that is my choice - my installation will not work anymore without saving the stylesheet as file) luc |
Thanks a lot, I will see what I can do. |
| All times are GMT -5. The time now is 03:26 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0