PDA

View Full Version : How to hide link parameters in address bar?


vooood
05-26-2008, 04:44 PM
I know this is possible for some pages but was wondering if it is possible for vBulletin. I want the address bar to always show my homepage root (i.e. http://www.page.com) no matter what or where the user is clicked. Is this possible and how?

On the other hand if a user clicks a link that passes some request parameters and then refresh the page the parameters will be sent again and the action repeated. Is there a way to somehow prevent this in vBulletin?

stelthius
05-26-2008, 04:47 PM
i have just the soloution for you give me two minutes to dig it out my friend :)

vooood
05-26-2008, 04:49 PM
i have just the soloution for you give me two minutes to dig it out my friend :)

yay.. thank you very much! :)

stelthius
05-26-2008, 04:56 PM
If i understood what you were saying correctly here is the code you need to use :)


$remove = "index.php";
$mod_dir = str_replace($remove,$replace,$galleryUrl);
$next_dir = str_replace($mod_dir,$mod_dir.'thumbs/',$mod_dir);
$dir = str_replace($next_dir,'/home/ghanson3/public_html/'.$next_dir, $next_dir);

vooood
05-27-2008, 12:39 PM
I'm not really sure where I have to put this code..?

GameWizard
05-27-2008, 03:33 PM
I believe you create a hook with the data above and use the "global_start" hook.