![]() |
Custom Page O utside Directory Issues
Is there a way to get the relative links and images to work in a custom vbulletin page outside the directory without having to go into the style and edit all the paths.
Edit: I have found a rudimentary solution to solve the image issue. Code:
$headinclude = str_replace('images', $vbulletin->options['bburl'] . '/images', $headinclude); --------------- Added [DATE]1218559131[/DATE] at [TIME]1218559131[/TIME] --------------- Code:
$headinclude = str_replace('href="', 'href="' . $vbulletin->options['bburl'] . '/', $headinclude); |
Place this code IN the custom page...
PHP Code:
|
If he is getting those template values in the first place then he already has that worked out and it won't fix his problem. Actually if you look at the code he's replacing all relative paths with full paths
Try adding a base url in the head tag of your custom page/template... <base href="http://YOURFORUMURL" /> |
All times are GMT. The time now is 01:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|