Posted: Thu Oct 12, 2006 9:54 am Post subject: BBToNuke: Confirmation Code
Getting the confirmation code to work on
modules.php ?name=Forums&file=profile&mode=register
Make sure first that your forums template has the confirmation code in profile_add_body.tpl
Next, we need usercp_confirm.php in its correct path. Move it out of modules/Forums/usercp_confirm.php into includes/usercp_confirm.php
Finally it tries to load the phpNuke template around the page when the image is called. To get it to work, we have to modify
includes/sessions.php
Code:
in function append_sid
FIND
if ($userdata['user_level'] > 1) {
BEFORE, ADD
if (stristr($url,'file=profile&mode=confirm')) $url .= "&popup=1";
Activate the confirmation code in your Forums Configuration and it should display now _________________ Evaders99 Webmaster Administrator Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -
Finally, if you are getting the error
"Could not delete stale confirm data"
you need to create the nuke_confirm table
Run this in phpMyAdmin:
Code:
CREATE TABLE `nuke_bbconfirm` (
`confirm_id` char(32) NOT NULL default '',
`session_id` char(32) NOT NULL default '',
`code` char(6) NOT NULL default '',
PRIMARY KEY (`session_id`,`confirm_id`)
) ENGINE=MyISAM;
Or this sql.php script from your Nuke root:
(place code between the opening PHP tags)
Code:
include_once('mainfile.php');
$result = $db->sql_query("CREATE TABLE `" . $prefix . "_bbconfirm` (
`confirm_id` char(32) NOT NULL default '',
`session_id` char(32) NOT NULL default '',
`code` char(6) NOT NULL default '',
PRIMARY KEY (`session_id`,`confirm_id`)
) ENGINE=MyISAM;");
if (!$result) { echo "Cannot create ".$prefix."_bbconfirm table (likely already exists, which is fine)<br><br>\n"; } else { echo "Created ".$prefix."_bbconfirm table<br><br>\n"; }
_________________ Evaders99 Webmaster Administrator Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -
If the confirmation code does not display on the Forums Register screen, it may not be activated in the Forums Config. Otherwise, it is a template issue
in your template file
modules/Forums/templates/YOURTEMPLATE/profile_add_body.tpl
_________________ Evaders99 Webmaster Administrator Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum