2
   

New field in profile hack help

 
 
Reply Sat 10 Jan, 2004 03:33 pm
Hi Craven -

So here is the new topic - as I mentioned, in the registration page, the new field is set on "no" instead of "yes". I'd like to change it to yes. I believe it needs to be changed in the "usercp_register" page. The code is below:

Code:// Run some validation on the optional fields. These are pass-by-ref, so they'll be changed to
// empty strings if they fail.
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);

$viewemail = ( isset($HTTP_POST_VARS['viewemail']) ) ? ( ($HTTP_POST_VARS['viewemail']) ? TRUE : 0 ) : 0;
$option = ( isset($HTTP_POST_VARS['option']) ) ? ( ($HTTP_POST_VARS['option']) ? TRUE : 0 ) : 0;
$allowviewonline = ( isset($HTTP_POST_VARS['hideonline']) ) ? ( ($HTTP_POST_VARS['hideonline']) ? 0 : TRUE ) : TRUE;
$notifyreply = ( isset($HTTP_POST_VARS['notifyreply']) ) ? ( ($HTTP_POST_VARS['notifyreply']) ? TRUE : 0 ) : 0;
$notifypm = ( isset($HTTP_POST_VARS['notifypm']) ) ? ( ($HTTP_POST_VARS['notifypm']) ? TRUE : 0 ) : TRUE;
$popup_pm = ( isset($HTTP_POST_VARS['popup_pm']) ) ? ( ($HTTP_POST_VARS['popup_pm']) ? TRUE : 0 ) : TRUE;


I think this is the code you need. I am really not sure. If its not what you need, let me know. Thanks.
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 2 • Views: 1,113 • Replies: 6
No top replies

 
Craven de Kere
 
  1  
Reply Sat 10 Jan, 2004 03:43 pm
Can you also post the template code?
0 Replies
 
nnowakow
 
  1  
Reply Sat 10 Jan, 2004 03:53 pm
I am taking a wild guess here at what you mean by "template code": I had to modify the code for profile_add_bdy.tpl by adding:

Code:<tr>
<td class="row1"><span class="gen">Would you like to subscribe to bi-monthly WetDawg E-Newsletter:</span></td>
<td class="row2">
<input type="radio" name="option" value="1" {OPTION_YES} />
<span class="gen">{L_YES}</span>  
<input type="radio" name="option" value="0" {OPTION_NO} />
<span class="gen">{L_NO}</span></td>
</tr>


I also had to modify the code for profile_view_bdy.tpl:

Code:<tr>
<td valign="top" align="right"><span class="gen">E-Newsletter:</span></td>
<td> <b><span class="gen">{OPTION}</span></b></td>
</tr>
0 Replies
 
Craven de Kere
 
  1  
Reply Sat 10 Jan, 2004 04:17 pm
Try changing:

Code:
$option = ( isset($HTTP_POST_VARS['option']) ) ? ( ($HTTP_POST_VARS['option']) ? TRUE : 0 ) : 0;


to

Code:$option = ( isset($HTTP_POST_VARS['option']) ) ? ( ($HTTP_POST_VARS['option']) ? TRUE : 0 ) : TRUE;


Let me know if that works.
0 Replies
 
nnowakow
 
  1  
Reply Sun 11 Jan, 2004 01:26 am
it works
Hi -

It worked! Thanks so much. I have one quick question - I was studying google's guidelines tonight and I came across where they listed types of pages they index (ie asp, etc). I found that php wasn't listed. Does google index php-based pages? I sure hope so!

Tash
0 Replies
 
Craven de Kere
 
  1  
Reply Sun 11 Jan, 2004 03:06 am
They sure do! I have 70,000 + PHP pages indexed.
0 Replies
 
nnowakow
 
  1  
Reply Sun 11 Jan, 2004 02:32 pm
excellent
Most excellent. Many thanks.

Natasha
0 Replies
 
 

Related Topics

In How much time a website can be developed? - Question by aussiejumpingcastle
Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » New field in profile hack help
Copyright © 2021 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 07/23/2021 at 11:27:25