![]() |
i found a bug !
example : forum installed at: /forum i have a script thats installed at and uses the forum engine .... /forum/links/links.php my script shows up in the whos online fine and is clickable before i add the new custom discription. once i add it... it shows up and displays fine . however the link is not pointing to the correct location the link tried to take me to : /forum/links.php not /forum/links/links.php can you please fix .... |
ok i fixed it myself already !
heres how.... in : functions_online.php find: Code:
if ($value['showlink'] == 1) replace with: Code:
if ($value['showlink'] == 1) great hack ! Quote:
|
Quote:
|
Quote:
--------------------------------------------------------- if ($value['showlink'] == 1) { require_once('./includes/functions_login.php'); $userinfo['location'] = stripslashes(fetch_replaced_session_url(htmlspecia lchars_uni(stripslashes($useri nfo['location'])))); $userinfo['location'] = ereg_replace('&','&',$userinfo[location]); $userinfo['where'] = "<a href=\"$userinfo[location]\">$value[where]</a>"; } --------------------------------------------------------- That is not a bug in the script, all this does is compare filenames which im using vbulletins method. No way would i Include (functions_login.php) a Whole other functions file into the login functions.. a much easier way to do it im sure. |
exactly what i need ! No need to manualy edit php's :)
|
Acido ,
you must have already installed his hack inorder to find the code ...... if you havent installed the hack itself then the code will not be there. |
Awesome, I'll take a look at this when 3.0.2 is released.. :)
I don't want to do any more modifying when there is another upgrade just around the corner. |
Quote:
ok i altered it so you it dont use the include any longer ...... this is the code im using now and it works just the same without the include . Code:
if ($value['showlink'] == 1) hope this works for everyone else |
Just so I'm clear before installing... will this work for indexing php pages outside the VB main directory? For example, an integrated application like a gallery script.
|
Quote:
|
All times are GMT. The time now is 11:59 PM. |
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:
|