PhotoPlog

Go Back   PhotoPlog > PhotoPlog.com > Feedback & Suggestions
Screens Demo Purchase Download Register

Reply
Attention: Last reply in this thread was more than 18 Years ago
 
Thread Tools
  #1  
Old 08-03-2006, 09:03 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
Orange Plog
 
Join Date: Jun 2006
Posts: 104
Gallery: 2
Comments: 1
Default relative links

Morgan,

I'd often wondered why the need for the relative / absolute links deal in the Plog options. Now that I'm creating my own vB project (rebuilding my ISP user provisioning system inside vB) which resides in a subfolder, I discovered the various issues with relative versus absolute links.

However, I seem to have found a way of overcoming this without having to do any manual link replacement. I hesitate to mention this, because I'm sure you already know about this, and there's probably other reasons for the way you are handling the relative links issue ... but ...

What I'm doing is, right at the top of the headinclude template I have:

Code:
Content visible to registered users only.
... where IN_CHEESE is defined in my global.php, just before the usual chdir to forum root. As long as I handle my own links correctly, this magically resolves all the other relative link problems on the navbar, footer, etc.

Anyway, as I said, I'm sure you already know about this base href trick, but just in case ...

-- hugh
Reply With Quote
  #2  
Old 08-04-2006, 04:35 AM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Thanks, the BASE tag can work well, assuming user agents interpret it correctly, but it won't work on some JavaScript in PhotoPlog like 'switch mode' though it could cut down on the number of items in the Relative/Absolute settings.

If anyone wants to try it, edit the vB headinclude template like cheesegrits says:
Code:
Content visible to registered users only.
Then remove entries piecewise from the Relative/Absolute settings, testing as you go along, to determine what can be removed and what needs to stay. The action, href, src, and url lines should be able to be removed.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #3  
Old 08-04-2006, 06:33 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
Orange Plog
 
Join Date: Jun 2006
Posts: 104
Gallery: 2
Comments: 1
Default

Thanks for the heads up about certain JS scripts, I'll watch out for that.

Luckily for me, the main app I'm creating is strictly private, for use by our staff only, so I have control over the browsers. IE is the only guarrantee, FireFox is "best effort" but if something doesn't work, tough.

I'm just glad I found that base href thing, even if it may not solve all my link problems (although so far it has done the job). That whole relative / absolute link issue was driving me nuts! I thought I was going to spend half my life editing templates and writing URL substitution code.

-- hugh
Reply With Quote
Reply

« Previous Thread | Next Thread »
Thread Tools

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with links... Traxdata Troubleshooting & Problems 3 01-26-2006 12:12 PM


All times are GMT. The time now is 04:04 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.