PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Installs and Upgrade - vBulletin 3.6x (http://www.photopost.com/forum/installs-upgrade-vbulletin-3-6x/)
-   -   Relative vs absolute path ? (http://www.photopost.com/forum/installs-upgrade-vbulletin-3-6x/135497-relative-vs-absolute-path.html)

alpha February 20th, 2008 01:48 AM

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.

Chuck S February 20th, 2008 07:28 AM

You always use absolute paths if your talking about full urls in the gallery settings and full server paths where asked in admin.

alpha February 20th, 2008 08:55 AM

Ok, so you mean in my style manager I can use relative paths ?

Chuck S February 20th, 2008 09:05 AM

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. ;)

alpha February 20th, 2008 09:33 AM

I will try with full server paths - thanks

Chuck S February 20th, 2008 10:31 AM

No problem glad to help

alpha February 21st, 2008 03:23 AM

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 ?

alpha February 21st, 2008 05:19 AM

A little more detail - the forum itself the style include looks like this:

Code:

Content visible to verified customers only.
And at the gallery it looks like this:

Code:

Content visible to verified customers only.
What I would like is to include the style at the gallery the same way as the forum itself, relative path.

Thanks

Luciano February 22nd, 2008 11:28 PM

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

alpha February 23rd, 2008 04:16 PM

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97