1

Topic: Guest Search Redirect to Register not Login

Currently I have guest search set to no. When a guest does a search they are redirected to Login. I want them to be redirected to the register form. Does anyone know what needs to be changed to accomplish this?

2

Re: Guest Search Redirect to Register not Login

Play with lib.search.php, line ~78:

        redirect(VIR_PATH . ($PREFS->conf['fancy_urls'] ? "account/login/" : "index.php?m=account_login"), 1);
www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com/radioact - my profile at vldCrowd

3

Re: Guest Search Redirect to Register not Login

Thanks radioact !!!

4

Re: Guest Search Redirect to Register not Login

find this code:

redirect(VIR_PATH . ($PREFS->conf['fancy_urls'] ? "account/login/" : 
"index.php?m=account_login"), 1);

and replace with:

redirect(VIR_PATH . ($PREFS->conf['fancy_urls'] ? "account/register/" : 
"index.php?m=account_register"), 1);
Give the world the best you have, and the best will come to you.
Tutorials and Mods for VldPersonals  Add CometChat to your vldPersonals site

5

Re: Guest Search Redirect to Register not Login

and you need to change the errormessages smile

find this:

$TEMPLATE->set_message("error", ($LANG['core']['not_loggedin']), 0, 0);

replace with:

$TEMPLATE->set_message("error", ($LANG['core']['not_registered']), 0, 0);
Give the world the best you have, and the best will come to you.
Tutorials and Mods for VldPersonals  Add CometChat to your vldPersonals site