PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old February 20th, 2008, 01:48 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Posts: 72
Question 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.
alpha is offline   Reply With Quote
Old February 20th, 2008, 07:28 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
You always use absolute paths if your talking about full urls in the gallery settings and full server paths where asked in admin.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 20th, 2008, 08:55 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Posts: 72
Ok, so you mean in my style manager I can use relative paths ?
alpha is offline   Reply With Quote
Old February 20th, 2008, 09:05 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 20th, 2008, 09:33 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Posts: 72
I will try with full server paths - thanks
alpha is offline   Reply With Quote
Old February 20th, 2008, 10:31 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
No problem glad to help
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 21st, 2008, 03:23 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Posts: 72
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 is offline   Reply With Quote
Old February 21st, 2008, 05:19 AM   #8 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Posts: 72
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
alpha is offline   Reply With Quote
Old February 22nd, 2008, 11:28 PM   #9 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
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

Last edited by Luciano; February 22nd, 2008 at 11:36 PM.
Luciano is offline   Reply With Quote
Old February 23rd, 2008, 04:16 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Posts: 72
Thanks a lot, I will see what I can do.
alpha is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Relative links sean9715 Photopost Pro How Do I...? 1 January 4th, 2008 01:18 PM
showproduct.php image/spacer.gif relative urls(FIXED) Arnie ReviewPost Bug Reports 6 August 31st, 2005 11:47 AM
Remote path?!!?!? jfreels How Do I? - vBulletin 3.0.X 5 April 12th, 2005 03:39 PM
RC3 using URLs relative to gallery not forums imported_DougM Installs and Upgrade - vBulletin 3.0.X 14 February 9th, 2005 09:35 PM


All times are GMT -5. The time now is 02:56 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0