Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Problems with Birtday in UserCP ! Details »»
Problems with Birtday in UserCP !
Version: , by bommelchen bommelchen is offline
Developer Last Online: Dec 2002 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-30-2002 Last Update: Never Installs: 0
 
No support by the author.

Please help, the problem is user cant edit his birthday in usercp. In AdminCP i can change it and it is OK ! I dont have make any changes in member.php for bithday part or something like this.

Any idears ?

bommelchen

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-30-2002, 08:34 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

open member.php and find this line of code:

PHP Code:
UPDATE user SET 
and paste that whole line of coding here and i'll see what i can do... regards...

g-force2k2
Reply With Quote
  #3  
Old 08-30-2002, 08:40 PM
bommelchen's Avatar
bommelchen bommelchen is offline
 
Join Date: Nov 2001
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here my lines
PHP Code:
if ($bbuserinfo[userid]!=and $bbuserinfo[userid]!=-1) {
    
$DB_site->query("UPDATE user SET lastactivity='".(time()-$cookietimeout)."',lastvisit='".time()."' WHERE userid='$bbuserinfo[userid]'");
  }


    
$DB_site->query("UPDATE user SET lastactivity='".time()."',lastvisit='".time()."' WHERE userid='$bbuserinfo[userid]'");
  } else {
    
vbsetcookie("bblastvisit",time());
  }
  eval(
"standardredirect(\"".gettemplate("redirect_markread")."\",\"index.php?s=$session[sessionhash]\");");
}


  
$DB_site->query("UPDATE user SET password='".addslashes(md5($newpassword))."' WHERE userid=$userinfo[userid]");

    eval(
"\$message = \"".gettemplate("email_resetpw",1,0)."\";");
    eval(
"\$subject = \"".gettemplate("emailsubject_resetpw",1,0)."\";");

    
mail ($userinfo[email],$subject,$message,"From: \"$bbtitle Mailer\" <$webmasteremail>");

  eval(
"standarderror(\"".gettemplate("error_resetpw")."\");");

}


$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='".addslashes($signature)."',customtitle='".intval($customtitle)."',usertitle='".addslashes($customtext)."',email='".addslashes(htmlspecialchars($email))."',parentemail='".addslashes(htmlspecialchars($parentemail))."',coppauser='$coppauser',homepage='".addslashes(htmlspecialchars($homepage))."',icq='".addslashes(htmlspecialchars($icq))."',aim='".addslashes(htmlspecialchars($aim))."',yahoo='".addslashes(htmlspecialchars($yahoo))."',usergroupid='$bbuserinfo[usergroupid]$awaysql WHERE userid='$bbuserinfo[userid]'");


  
$DB_site->query("UPDATE user SET password='".addslashes(md5($newpassword))."',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'");

  eval(
"standardredirect(\"".gettemplate("redirect_updatethanks")."\",\"usercp.php?s=$session[sessionhash]\");");

}


  
$DB_site->query("UPDATE user SET avatarid='".addslashes($avatarid)."',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'");

  eval(
"standardredirect(\"".gettemplate("redirect_updatethanks")."\",\"usercp.php?s=$session[sessionhash]\");");


this are my lines with UPDATE user SET in member php !!

hope you find an error !!!

THX bommelchen
Reply With Quote
  #4  
Old 08-30-2002, 08:44 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm... the coding looks alright to me... does it update everything else and not just the birthday? regards...

g-force2k2
Reply With Quote
  #5  
Old 08-30-2002, 08:49 PM
bommelchen's Avatar
bommelchen bommelchen is offline
 
Join Date: Nov 2001
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

everything will update but not the birtdays !
here are my register birtday_template :
[php]<tr>
<td bgcolor="$bgcolor"><normalfont><b>Geburtstag:</b></normalfont><br>
<smallfont>Wenn Du Deinen Geburtstag angibst, können ihn andere Benutzer im Kalender und in Deinem Profil einsehen. Die Angabe des Geburtsjahres ist freiwillig.</smallfont></td>
<td bgcolor="$bgcolor" valign="top">

<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="center"><smallfont>Tag</smallfont></td>
<td align="center"><smallfont>Monat</smallfont></td>
<td align="center"><smallfont>Jahr</smallfont></td>
</tr>
<tr>
<td><smallfont><select name="day">
<option value="-1" $daydefaultselected></option>
<option value="1" $day01selected>1</option>
<option value="2" $day02selected>2</option>
<option value="3" $day03selected>3</option>
<option value="4" $day04selected>4</option>
<option value="5" $day05selected>5</option>
<option value="6" $day06selected>6</option>
<option value="7" $day07selected>7</option>
<option value="8" $day08selected>8</option>
<option value="9" $day09selected>9</option>
<option value="10" $day10selected>10</option>
<option value="11" $day11selected>11</option>
<option value="12" $day12selected>12</option>
<option value="13" $day13selected>13</option>
<option value="14" $day14selected>14</option>
<option value="15" $day15selected>15</option>
<option value="16" $day16selected>16</option>
<option value="17" $day17selected>17</option>
<option value="18" $day18selected>18</option>
<option value="19" $day19selected>19</option>
<option value="20" $day20selected>20</option>
<option value="21" $day21selected>21</option>
<option value="22" $day22selected>22</option>
<option value="23" $day23selected>23</option>
<option value="24" $day24selected>24</option>
<option value="25" $day25selected>25</option>
<option value="26" $day26selected>26</option>
<option value="27" $day27selected>27</option>
<option value="28" $day28selected>28</option>
<option value="29" $day29selected>29</option>
<option value="30" $day30selected>30</option>
<option value="31" $day31selected>31</option>
</select></smallfont></td>
<td><smallfont><select name="month">
<option value="-1" $monthdefaultselected></option>
<option value="1" $month01selected>Januar</option>
<option value="2" $month02selected>Februar</option>
<option value="3" $month03selected>März</option>
<option value="4" $month04selected>April</option>
<option value="5" $month05selected>Mai</option>
<option value="6" $month06selected>Juni</option>
<option value="7" $month07selected>Juli</option>
<option value="8" $month08selected>August</option>
<option value="9" $month09selected>September</option>
<option value="10" $month10selected>Oktober</option>
<option value="11" $month11selected>November</option>
<option value="12" $month12selected>Dezember</option>
</select></smallfont></td>
<td><smallfont><input type="text" class="bginput" name="year" value="$year" size="4" maxlength="4"></smallfont></td>
</tr>
</table>

</td>
</tr>[php]

and my time format in vbulletin options are for
Birthday Format: F j, Y
Birthday Format #2: F j

bommelchen
Reply With Quote
  #6  
Old 08-30-2002, 09:01 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

still looks alright... you said you didn't make any changes to the member.php... but at the end of the update sql is says $awaysql... is that for the away hack? regards...

g-force2k2
Reply With Quote
  #7  
Old 08-30-2002, 09:14 PM
bommelchen's Avatar
bommelchen bommelchen is offline
 
Join Date: Nov 2001
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes it is !!! but i have make no changes for birthday or somethink like this !

Greeting Bommelchen
Reply With Quote
  #8  
Old 10-17-2002, 08:55 PM
wastegate wastegate is offline
 
Join Date: Mar 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got a similar problem, but at the time my php files were stock running 2.2.8 on redhat 8, mysql 3.23.53, php 4.3.2

Got VB Support staff stumped..

You put in your birthday in the user cp but it saves it as 00-00-0000 in the database. VB Staff "think" it might be something to do with the new mysql version but it's been doing this in an older version for a while.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04764 seconds
  • Memory Usage 2,305KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete