Welcome, Guest. Please Login or Register.
May 15, 2025, 02:52:55 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  How to change post structure and some problems with birth dates « previous next »
Pages: [1] Reply Ignore Print
Author Topic: How to change post structure and some problems with birth dates  (Read 754 times)
VoSK
Noobie
*
Posts: 2


I'm a llama!

How to change post structure and some problems with birth dates
« on: December 19, 2003, 05:44:14 PM »
Reply with quote

YaBB SE Version: 1.5.4
Link to Forum: http://forum.theprodigy.ru/

Problem Description:
Hi! We've just upgraded our forum to the YabbSE.
First question is how to change the structure of the posts? We want user's Sex and Number Of Posts to be shown UNDER avatar, but not above it.
Secondly, we have some troubles with users' birth dates, after the convertion all the users that did not have their birth dated in profiles were automatically assigned today's day as birthday, how can we fix it?
Thanks much!

p.s. Great forum! ;)
« Last Edit: December 19, 2003, 07:46:40 PM by VoSK » Logged
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:How to change post structure and some problems with birth dates
« Reply #1 on: December 19, 2003, 08:06:39 PM »
Reply with quote

Quote from: VoSK on December 19, 2003, 05:44:14 PM
Hi! We've just upgraded our forum to the YabbSE.
First question is how to change the structure of the posts? We want user's Sex and Number Of Posts to be shown UNDER avatar, but not above it.

Search Display.php for:

      if ($muserID != '-1')
      {
         $userinfo .= '
                  ' . $star . '<br /><br />
                  ' . $online . '
                  ' . $userprofile[$mname]['gender'] . '
                  ' . $postinfo . '
                  ' . $userprofile[$mname]['avatar'] . '
                  ' . $userprofile[$mname]['personalText'] . '
                  ' . $userprofile[$mname]['ICQ'] . ' ' . $icq. ' ' . $msn . ' ' . $yim . ' ' . $userprofile[$mname]['AIM'] . '<br />
                  ' . implode($menusep, $profileButtons);
      }


And replace with:

      if ($muserID != '-1')
      {
         $userinfo .= '
                  ' . $star . '<br /><br />
                  ' . $online . '
                  ' . $userprofile[$mname]['avatar'] . '
                  ' . $userprofile[$mname]['gender'] . '
                  ' . $postinfo . '
                  ' . $userprofile[$mname]['personalText'] . '
                  ' . $userprofile[$mname]['ICQ'] . ' ' . $icq. ' ' . $msn . ' ' . $yim . ' ' . $userprofile[$mname]['AIM'] . '<br />
                  ' . implode($menusep, $profileButtons);
      }


QuoteSecondly, we have some troubles with users' birth dates, after the convertion all the users that did not have their birth dated in profiles were automatically assigned today's day as birthday, how can we fix it?

Should be a simple MySQL query, but I'll need to take a look and get back to you on that one!
Logged

Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:How to change post structure and some problems with birth dates
« Reply #2 on: December 19, 2003, 08:17:20 PM »
Reply with quote

Quote from: Peter Duggan on December 19, 2003, 08:06:39 PM
QuoteSecondly, we have some troubles with users' birth dates, after the convertion all the users that did not have their birth dated in profiles were automatically assigned today's day as birthday, how can we fix it?

Should be a simple MySQL query, but I'll need to take a look and get back to you on that one!

UPDATE members SET birthdate = '0000-00-00' WHERE birthdate = 'xxxx-xx-xx';

NB xxxx-xx-xx should be whatever your problem date is eg. 2003-12-19 for today!
Logged

VoSK
Noobie
*
Posts: 2


I'm a llama!

Re:How to change post structure and some problems with birth dates
« Reply #3 on: December 19, 2003, 08:54:32 PM »
Reply with quote

thank you very much ;)
if we get any other problems we'll post them here later :)
thanks one more time....
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  How to change post structure and some problems with birth dates « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.027 seconds with 20 queries.