PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
gunit86
New Member
New Member


Joined: Apr 23, 2008
Posts: 13

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

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: 6373
Location: Vsetin, Czech Republic

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

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 Visit poster's website
gunit86
New Member
New Member


Joined: Apr 23, 2008
Posts: 13

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

Yup, I forgot to say that. It is cnbya that i use. I cdn't find that option from the cnbya administration.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum