SW:Rebellion NetworkHosted by the SW:Rebellion Network
Welcome to Evaders Squadron Coding [ESC]
Did you know that... this site runs with your support! Please donate to our Paypal!
Home Forums Nuke Patched Core Coding Services Webmaster Services Personal
  Login/Create an Account    

Forums
· Forums FAQ
· Search
· Usergroups
· Profile
· Private Messages

Support Us
This site runs with your support. Please donate:

User Info/Login
Welcome, Anonymous
Nickname
Password
Security Code: Security Code
Type Security Code

(Register)
Membership:
Latest: AndoRook
New Today: 0
New Yesterday: 0
Overall: 6768

People Online:
Visitors: 9
Members: 0
Total: 9

Link to Us

Affliates
RPG Boards Hosting

Evaders Squadron Coding [ESC] :: View topic - BBToNuke: Confirmation Code
BBToNuke: Confirmation Code

 
Post new topic   Reply to topic    Evaders Squadron Coding [ESC] Forum Index -> Coding Services
View previous topic :: View next topic  
Author Message
Evaders99



Joined: Jan 11, 2002
Posts: 3049
Location: USA

PostPosted: Thu Oct 12, 2006 9:54 am    Post subject: BBToNuke: Confirmation Code Reply with quote

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
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! Administrator

Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -

The cake is a lie.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Evaders99



Joined: Jan 11, 2002
Posts: 3049
Location: USA

PostPosted: Thu Oct 12, 2006 11:30 am    Post subject: Reply with quote

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
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! Administrator

Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -

The cake is a lie.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Evaders99



Joined: Jan 11, 2002
Posts: 3049
Location: USA

PostPosted: Thu Oct 12, 2006 11:37 am    Post subject: Reply with quote

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

or

themes/YOURTHEME/forums/profile_add_body.tpl


Code:

FIND (something like this...)

   <tr>
     <td class="row1"><span class="gen">{L_CONFIRM_PASSWORD}: * </span><br />
      <span class="gensmall">{L_PASSWORD_CONFIRM_IF_CHANGED}</span></td>
     <td class="row2">
      <input type="password" class="post" style="width: 200px" name="password_confirm" size="25" maxlength="32" value="{PASSWORD_CONFIRM}" />
     </td>
   </tr>

AFTER, ADD

   <!-- Visual Confirmation -->
   <!-- BEGIN switch_confirm -->
   <tr>
      <td class="row1" colspan="2" align="center"><span class="gensmall">{L_CONFIRM_CODE_IMPAIRED}</span><br /><br />{CONFIRM_IMG}<br /><br /></td>
   </tr>
   <tr>
     <td class="row1"><span class="gen">{L_CONFIRM_CODE}: * </span><br /><span class="gensmall">{L_CONFIRM_CODE_EXPLAIN}</span></td>
     <td class="row2"><input type="text" class="post" style="width: 200px" name="confirm_code" size="6" maxlength="6" value="" /></td>
   </tr>
   <!-- END switch_confirm -->

_________________
Evaders99
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! Administrator

Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -

The cake is a lie.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Evaders Squadron Coding [ESC] Forum Index -> Coding Services All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

^Top
Home Your Account Forums Downloads F.A.Q. Submit News Hosting Contact Us

© 2005 - 2007 by Evaders99. All Rights Reserved.
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters.
You can syndicate our news using the file backend.php
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL.
PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.41 Seconds