Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 8.1
Author Message
gunit86
New Member
New Member



Joined: Apr 23, 2008
Posts: 13

PostPosted: Mon May 12, 2008 9:19 am Reply with quote

In PHPnuke registration, I don't want the retype email field to be there. I just want the email to insert once and not 2 times. So at the coding, I've deleted this
Code:
 echo "<tr><td bgcolor='$bgcolor2'>"._RETYPEEMAIL.":</td><td bgcolor='$bgcolor1'><input type='text' name='ya_user_email2' size='30' maxlength='255'></td></tr>\n";



After I did this, the textbox for entering is gone but I guess I need to change more at this section:
Code:
echo "<form action='modules.php?name=$module_name' method='post'>\n";

    echo "<tr><td bgcolor='$bgcolor2'>"._NICKNAME.":</td><td bgcolor='$bgcolor1'><input type='text' name='ya_username' size='30' maxlength='".$ya_config['nick_max']."'><br><font class='tiny'>("._YA_NICKLENGTH.")</font></td></tr>\n";
    echo "<tr><td bgcolor='$bgcolor2'>"._EMAIL.":</td><td bgcolor='$bgcolor1'><input type='text' name='ya_user_email' size='30' maxlength='255'></td></tr>\n";
    echo "<tr><td bgcolor='$bgcolor2'>"._RETYPEEMAIL.":</td><td bgcolor='$bgcolor1'><input type='text' name='ya_user_email2' size='30' maxlength='255'></td></tr>\n";
   
   $result = $db->sql_query("SELECT * FROM ".$user_prefix."_cnbya_field WHERE (need = '2') OR (need = '3') ORDER BY pos");
       while ($sqlvalue = $db->sql_fetchrow($result)) {
         $t = $sqlvalue[fid];
        $value2 = explode("::", $sqlvalue[value]);
        if (strpos($sqlvalue[name],"_")==0) eval( "\$name_exit = $sqlvalue[name];"); else $name_exit = $sqlvalue[name];
        if (count($value2) == 1) {
          echo "<tr><td bgcolor='$bgcolor2'>$name_exit</td><td bgcolor='$bgcolor3'><input type='text' name='nfield[$t]' size='20' maxlength='$sqlvalue[size]'></td></tr>\n";
         } else {
          echo "<tr><td bgcolor='$bgcolor2'>$name_exit</td><td bgcolor='$bgcolor3'>";
         echo "<select name='nfield[$t]'>\n";
            for ($i = 0; $i<count($value2); $i++) {
          echo "<option value=\"".trim($value2[$i])."\">$value2[$i]</option>\n";
          }
         echo "</select>";
         echo "</td></tr>\n";
        }
      }


And one more thing there is 3 new_user.php file. Do changes have to be made to all this file. I think this should be easy but I have little knowledge in php. Can I get help from you guys. tks...
 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Mon May 12, 2008 2:56 pm Reply with quote

Looking at your sample code is this the default nuke 8.1 Your Account module? It looks like CNBYA.
I don't use this module but the chances are that the form would not work any way simly bu removing that line of code as the validation part of script would be checking to see that both fields matched so you would have to remove that as well.
If it is CNBYA, I think, depending on the version, you can actually turn that requirement of in the CNBYA administration.
 
View user's profile Send private message Send e-mail
gunit86







PostPosted: Tue May 13, 2008 6:41 am Reply with quote

Yup, I forgot to say that. It is cnbya that i use. I cdn't find that option from the cnbya administration.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 8.1

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©