• [MOD] Birthday Mod v1.0 5 0 5 1
Currently:  

Author Topic: [MOD] Birthday Mod v1.0  (Read 213073 times)

0 Members and 1 Guest are viewing this topic.

Offline drastx

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: [MOD] Birthday Mod v1.0
« Reply #105 on: February 28, 2007, 07:40:29 AM »
Can anybody remake this mod for 1.7.2 ?

Offline Isucks

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [MOD] Birthday Mod v1.0
« Reply #106 on: April 02, 2007, 12:42:42 AM »
Hi, echt super Mod. Habe aber leider ein kleines Problem. Wenn man sich neu registriert kann man alles einstellen, so wie es sein soll. Aber nach dem Login kann man unter dem Kontrollzentrum sein Geburtstagsdatum nicht ändern. Er zeigt zwar die 2 Pfeile an wo man den Monat und den Tag auswählt, jedoch sind diese Felder komplett weiß. Es ist auch nciht möglich andere Details im eigenen Profil zu verändern. dak ommt immer die fehlermeldung "Korrektes Geburtstagsdatum eintragen". Was könnte das sein?! Habe die installation schon 3mal überprüft :(

Offline jimpike

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] Birthday Mod v1.0
« Reply #107 on: July 26, 2007, 08:31:20 PM »
Great MOD! Works great, and even put in the Zodiacs. :-)

I do have a question that I hope someone can answer.
I live in the USA, and we read our dates differently. 
On the profile page, you have it set as Day.Month Year.

 I would like to set it as Month Day, Year  (Example: January 01, 2000)

I tried changing this code:
Code: [Select]
$user_birthday = $birthday[2].".".$lang['months'][sprintf("%02d",$birthday[1])];
To

Code: [Select]
$user_birthday = $lang['months']."%020".$birthday[2].", "[sprintf("%02d",$birthday[1])];
But that just gave me a parse error.  Any ideas? Thanks.

Offline masterred

  • Sr. Member
  • ****
  • Posts: 494
    • View Profile
Re: [MOD] Birthday Mod v1.0
« Reply #108 on: July 30, 2007, 07:06:25 AM »
hello as I can add the MOD birthday to the user profile, can i use tags of home.html, but like me to be able to use when the user turns years, a special dedication, like when they envian a birthday postcard

Cuando es dia del cumpleaños sale la felicitacion en el index.php, entonces me gustaria saber si se puede poner en el perfil de ese mismo usuario lo mismo, una felicitacion en su perfil, pero con una imagen con dedicatoria especial. algo como esto en su perfil


 
« Last Edit: August 01, 2007, 05:41:18 PM by masterred »
Apache/2.2.21 (Win32)
PHP/5.3.5
Mysql Version: 5.5.19
4images Version: 1.7.?



Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Birthday Mod v1.0
« Reply #109 on: July 30, 2007, 01:17:06 PM »
Quote
$user_birthday = $lang['months']."%020".$birthday[2].", "[sprintf("%02d",$birthday[1])];

change to:

Quote
$user_birthday = $lang['months'] . REPLACE_EMPTY . $birthday[2].", "[sprintf(REPLACE_EMPTY, $birthday[1])];

Should work. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline jimpike

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] Birthday Mod v1.0
« Reply #110 on: July 30, 2007, 05:47:27 PM »
Quote
$user_birthday = $lang['months']."%020".$birthday[2].", "[sprintf("%02d",$birthday[1])];

change to:

Quote
$user_birthday = $lang['months'] . REPLACE_EMPTY . $birthday[2].", "[sprintf(REPLACE_EMPTY, $birthday[1])];

Should work. ;)

Thanks, but it gave me an parse error. Guess I'll just deal with the date being reversed. LOL. Oh well.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Birthday Mod v1.0
« Reply #111 on: July 30, 2007, 07:13:20 PM »
My bad.

Quote
$user_birthday = $lang['months'] . REPLACE_EMPTY . $birthday[2].", "[sprintf(REPLACE_EMPTY, $birthday[1])];

Change to:

Quote
$user_birthday = $lang['months'] . REPLACE_EMPTY . $birthday[2].", [" . sprintf(REPLACE_EMPTY, $birthday[1]) . "]";

Should work now. 8)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Birthday Mod v1.0
« Reply #112 on: July 31, 2007, 07:45:30 PM »
What you wish with birthday and memberlist ? Check birthday, calculate age or calculate countdown from memberlist ?

<< Just found - post on wrong topic. Sorry. >>
« Last Edit: July 31, 2007, 08:04:54 PM by thunderstrike »
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

rinaldos

  • Guest
Re: [MOD] Birthday Mod v1.0
« Reply #113 on: November 05, 2007, 09:54:47 AM »
Hello,
I have insert this mod for a long time. Now i want to change the input fields. I want change the dropdown fields into text fields. Is this possible, and what i have to change?

Thanks in advance.

Ingo

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Birthday Mod v1.0
« Reply #114 on: November 05, 2007, 12:29:59 PM »
Yes ... you need edit includes/db_field_definitions.php file and install Dropdown for custom database field from V@no. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

rinaldos

  • Guest
Re: [MOD] Birthday Mod v1.0
« Reply #115 on: November 05, 2007, 02:49:54 PM »
Hi Thunderstrike,
thanks for the hint.

Ingo

Offline UFOSWORLD

  • Full Member
  • ***
  • Posts: 102
    • View Profile
Re: [MOD] Birthday Mod v1.0
« Reply #116 on: January 03, 2008, 02:42:00 AM »
Cooler Mod.

Aber ich hab da wieder ein paar Fragen, bzw Probleme.

Erstes: Betrifft das Jahresfeld bei der Registrierung.
Hierzu hab ich eine Graphik von meiner Registrierung angehängt.  kann es sein das die Textfeldgrösse irgendwo zentral gespeichert ist.

weil im Code steht ja 
Code: [Select]
<td><input class="input" name="user_birthday_year" value="{user_birthday_year}" maxlength="4" size="5" type="text">Also Grösse 5  aber das is genauso lang wie die Felder darüber und da steht bei size="30" 

Zweitens: Hat jemand einen fertigen Umbau, so das ich das Textfeld durch ein Dropdownfeld ersetzen kann. Muss ja eigentlich nur z.b. von 1950 - zum aktuellen Jahr gehn)   (auch soll dadurch die Eingabe von Buchstaben verhindert werden, um mögliche Fehlerquellen auszuschliessen... )  (Hab da nämlich ein kleines Anzeigeproblem wenn die Mail Adresse schon vergeben is... aber das wann anders...)


Drittens:  Ist es möglich die Anzeige wer Geburtstag hat dauernd anzuzeigen, auch wenn keiner hat.
Und zwar deshalb weil ich z.b zusätzlich anzeigen lassen möchte.
Mitglied  XY hat in 20 Tagen den 25 Geburtstag  (wobei schöner wäre wenn man schreiben könnte "Mitglied XY hat in 20 Tagen seinen 25 Geburtstag" , bzw "...ihren 25 Geburtstag" ...  abhängig vom user_sex aus dem Mod ???  der mit user_sex 

Merci und wieder ein toller Mod

gruss UFO



Offline Jasi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Re: [MOD] Birthday Mod v1.0
« Reply #117 on: January 28, 2008, 09:42:50 PM »

@ IcEcReaM
@ Thunderstrike


Hallo Thunderstrike,

vielen Dank für diesem tollen MOD ;)

Frage:

Ich möchte nicht das ganze Geburtsdatum im Profil anzeigen lassen sondern nur das Alter des Mitglieds, was muss ich ändern, bzw. wie geht das?

Danke dir schon mal und viele liebe Grüße

Jasi
« Last Edit: January 28, 2008, 10:41:33 PM by Jasi »
LG Jasi

Offline Jasi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Re: [MOD] Birthday Mod v1.0
« Reply #118 on: January 28, 2008, 10:49:38 PM »
Code: [Select]
[quote author=UFOSWORLD link=topic=11558.msg108441#msg108441 date=1199324520]
Cooler Mod.

Aber ich hab da wieder ein paar Fragen, bzw Probleme.

Erstes: Betrifft das Jahresfeld bei der Registrierung.
Hierzu hab ich eine Graphik von meiner Registrierung angehängt.  kann es sein das die Textfeldgrösse irgendwo zentral gespeichert ist.

weil im Code steht ja  [code]<td><input class="input" name="user_birthday_year" value="{user_birthday_year}" maxlength="4" size="5" type="text">
Also Grösse 5  aber das is genauso lang wie die Felder darüber und da steht bei size="30"  

Zweitens: Hat jemand einen fertigen Umbau, so das ich das Textfeld durch ein Dropdownfeld ersetzen kann. Muss ja eigentlich nur z.b. von 1950 - zum aktuellen Jahr gehn)   (auch soll dadurch die Eingabe von Buchstaben verhindert werden, um mögliche Fehlerquellen auszuschliessen... )  (Hab da nämlich ein kleines Anzeigeproblem wenn die Mail Adresse schon vergeben is... aber das wann anders...)


Merci und wieder ein toller Mod

gruss UFO

[/quote]

@ UFOSWORLD

schau mal auf den diesen Post im Thread von V@no:


Code: [Select]
[EDIT]
in member.php and register.php below:

Code: [Select]
$birthday_year_options = "<option value=\"\">--</option>\n";
  $end = date("Y");
  $start = $end-100;
  for ($i=$start;$i<=$end;$i++)
  {
    $birthday_year_options .= "<option value=\"".$i."\"".(($i == $user_birthday_year) ? "selected" : "").">".$i."</option>\n";
  }
  $user_birthday_year = $birthday_year_options;


und führe die Schritte durch... !!!

Ich habe es als Dropdownfeld dann bei mir in der register_form.html und member_editprofil.html dann so umgesetzt und funktioniert 1A

Code: [Select]
<select name="user_birthday_year" value="{user_birthday_year}">{user_birthday_year_options}</select>[/code]
« Last Edit: August 31, 2015, 08:17:10 PM by Jasi »
LG Jasi

Offline ClickyMouse

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Re: [MOD] Birthday Mod v1.0
« Reply #119 on: January 29, 2008, 06:07:17 PM »
What's wrong?
Code: [Select]
Parse error: syntax error, unexpected T_ELSE in /www/110mb.com/g/r/u/p/o/s/c/o/gruposcout508/htdocs/fotos/member.php on line 1067
Here you got my member.php, from line 1055 to line 1074
Code: [Select]
    if (!empty($additional_user_fields)) {
      $additional_field_array = array();
      foreach ($additional_user_fields as $key => $val) {
        $additional_field_array[$key] = (!empty($user_row[$key])) ? format_text($user_row[$key], 1) : REPLACE_EMPTY;
        $additional_field_array['lang_'.$key] = $val[0];
      }
      if (!empty($additional_field_array)) {
        $site_template->register_vars($additional_field_array);
      }
    }
    $content = $site_template->parse_template("member_profile");
  }
  else {
    $content = $lang['invalid_user_id'];
  }
}

//-----------------------------------------------------
//--- Send Password -----------------------------------
//-----------------------------------------------------

Hope you can give me some advice

Thanks!