The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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); $header = str_replace('images', $vbulletin->options['bburl'] . '/images', $header); $footer = str_replace('images', $vbulletin->options['bburl'] . '/images', $footer); --------------- Added [DATE]1218559131[/DATE] at [TIME]1218559131[/TIME] --------------- Code:
$headinclude = str_replace('href="', 'href="' . $vbulletin->options['bburl'] . '/', $headinclude); $header = str_replace('href="', 'href="' . $vbulletin->options['bburl'] . '/', $header); $footer = str_replace('href="', 'href="' . $vbulletin->options['bburl'] . '/', $footer); $headinclude = str_replace('action="', 'action="' . $vbulletin->options['bburl'] . '/', $headinclude); $header = str_replace('action="', 'action="' . $vbulletin->options['bburl'] . '/', $header); $footer = str_replace('action="', 'action="' . $vbulletin->options['bburl'] . '/', $footer); |
#2
|
||||
|
||||
![]()
Place this code IN the custom page...
PHP Code:
|
#3
|
|||
|
|||
![]()
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" /> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|