PDA

View Full Version : Code Question


SEShady
02-25-2004, 05:19 PM
This is a hack that logic made. I am trying to get it to redirect to the login page. I don't want it to go to the register page. I am currently running 2.3.4. Here is the code in his original hack:

// start
if ($bbuserinfo[userid]==0) {
eval("standardredirect(\"".gettemplate("redirect_gotoregister")."\",\"register.php?s=$session[sessionhash]&action=signup\");");
}
// end

Can someone give me some help?

Thanks,
shady

Zachery
02-25-2004, 05:27 PM
This is a hack that logic made. I am trying to get it to redirect to the login page. I don't want it to go to the register page. I am currently running 2.3.4. Here is the code in his original hack:

Can someone give me some help?

Thanks,
shadyYour best off asking in the correct thread, and please either remove the code or put it into a code / php box

SEShady
02-25-2004, 06:06 PM
Roger that, but could you explain how to put it into a code/php box? The reason I asked it here, was because I wanted it to do something different than what is was originally meant to do, and wonderd if anyone could tell me.

Thanks,
Shady

Zachery
02-25-2004, 07:12 PM
Roger that, but could you explain how to put it into a code/php box? The reason I asked it here, was because I wanted it to do something different than what is was originally meant to do, and wonderd if anyone could tell me.

Thanks,
Shady
Becaise guests can see the code so we put it into the box.

SEShady
02-26-2004, 05:56 PM
How, not why. I figured it out though.

Thanks,
Shady