doubleclick
02-03-2011, 12:43 PM
Hello -
I've been trying to learn how to use templates outside the forum directory by duplicating the online.php page, and putting it a level up.
I added chdir('forum'); to the top of the page.
I created a new template in the admincp for the WHOSONLINE and added /forum/ in front of all links there.
Added eval('print_output("' . fetch_template('WHOSONLINE-external') . '");'); to the end of the externalonline.php file.
All links and data are working correctly except the location link, which refuses to add "forum" to the path. This comes from the $onlinebits which is in the copy of the template I made, and I've tried a number of ways to point to a level down to the forum directory, but no luck.
Interestingly enough, when I hover over a user's location, the alt-text correctly shows the correct information.
THis is probably a very simple fix, but I've tried and errored a fix for too long. Any ideas?
Thanks,
dc
I've been trying to learn how to use templates outside the forum directory by duplicating the online.php page, and putting it a level up.
I added chdir('forum'); to the top of the page.
I created a new template in the admincp for the WHOSONLINE and added /forum/ in front of all links there.
Added eval('print_output("' . fetch_template('WHOSONLINE-external') . '");'); to the end of the externalonline.php file.
All links and data are working correctly except the location link, which refuses to add "forum" to the path. This comes from the $onlinebits which is in the copy of the template I made, and I've tried a number of ways to point to a level down to the forum directory, but no luck.
Interestingly enough, when I hover over a user's location, the alt-text correctly shows the correct information.
THis is probably a very simple fix, but I've tried and errored a fix for too long. Any ideas?
Thanks,
dc