vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Problems with Birtday in UserCP ! (https://vborg.vbsupport.ru/showthread.php?t=42962)

bommelchen 08-30-2002 06:17 PM

Problems with Birtday in UserCP !
 
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

g-force2k2 08-30-2002 07:34 PM

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

bommelchen 08-30-2002 07:40 PM

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

g-force2k2 08-30-2002 07:44 PM

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

g-force2k2

bommelchen 08-30-2002 07:49 PM

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

g-force2k2 08-30-2002 08:01 PM

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

bommelchen 08-30-2002 08:14 PM

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

Greeting Bommelchen

wastegate 10-17-2002 07:55 PM

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.


All times are GMT. The time now is 06:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01504 seconds
  • Memory Usage 1,767KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete