avatar generator & gender & birthday

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

avatar generator & gender & birthday

Beitrag von Blisk »

I did installed yesterday an avatar generator mod, but after that when I change in profile an avatar and add avatar with avatar generator, than my gender and birthday dissapear and if I click update profile, than I get message this board require birthday and gender.

So if I want to change avatar and add avatar from avatar generator I must setup avatar and than again birthday and gender (because ti was reased) and then submit changes.

what could be wrong that avatar generator erase birthday and gender?

I notice in code this!

In file was this line

Code: Alles auswählen

$params = array('coppa', 'user_id', 'username', 'email', 'current_email', 'cur_password', 'new_password', 'password_confirm', 'icq', 'aim', 'msn', 'skype', 'yim', 'website', 'location', 'user_flag', 'occupation', 'interests', 'signature', 'viewemail', 'notifypm', 'allow_mass_pm', 'popup_pm', 'slidemenue', 'notifyreply', 'attachsig', 'setbm', 'allowhtml', 'allowbbcode', 'allowsmilies', 'hideonline', 'style', 'language', 'timezone', 'rankset', 'dateformat', 'user_allow_mass_email', 'user_absence_mode', 'user_absence', 'user_absence_text', 'birthday', 'gender');
in avatar generator mod is this line

Code: Alles auswählen

$params = array('coppa', 'user_id', 'username', 'email', 'current_email', 'cur_password', 'new_password', 'password_confirm', 'icq', 'aim', 'msn', 'yim', 'website', 'location', 'occupation', 'interests', 'signature', 'viewemail', 'notifypm', 'popup_pm', 'notifyreply', 'attachsig', 'allowhtml', 'allowbbcode', 'allowsmilies', 'hideonline', 'style', 'language', 'timezone', 'dateformat');
and again in avatar generator mod

Code: Alles auswählen

function display_avatar_generator($mode, &$avatar_filename, &$avatar_image, &$avatar_text, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popup_pm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$birthday, &$gender, &$session_id)
should I add in this lines all missing words?
like

Code: Alles auswählen

user_allow_mass_email', 'user_absence_mode', 'user_absence', 'user_absence_text', 'birthday', 'gender')
and

Code: Alles auswählen

&$user_allow_mass_email, &$user_absence_mode, &$user_absence, &$user_absence_text, &$birthday, &$gender)
Zuletzt geändert von Blisk am Di 19.Dez, 2006 14:23, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Yes, add here all fields which are needed by the gender and birthday mods...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

only gender and birthday, or all whicha are missing?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

All fields which are missing.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

If I add all which are missing, than when I click on avatar generator I get sign menu.
something totaly differend.

If I add only gender and birthday than it works.

Strange!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

I think, "missing" must be defined here on detail to get an errorfree workflow...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

Ok peroblem is because avatar generator doesn't have all variables, so when I update profile with new avatar from avatar generator it resets some settings in users profile.

so this variables are in usercp_register.php
for avatar

Code: Alles auswählen

display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, &$new_password, &$cur_password, $password_confirm, $icq, $aim, $msn, $skype, $yim, $website, $location, $user_flag, $occupation, $interests, $signature, $viewemail, $notifypm, $allow_mass_pm, $games_block_pm, $popup_pm, $slidemenue, $notifyreply, $attachsig, $setbm, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $rankset, $user_dateformat, $user_allow_mass_email, $user_absence_mode, $user_absence, $user_absence_text, $birthday, $gender, $userdata['session_id']);
for avatar generator is this

Code: Alles auswählen

	display_avatar_generator($mode, $avatar_filename, $avatar_image, $avatar_text, $user_id, $email, $current_email, $coppa, $username, $email, $new_password, $cur_password, $password_confirm, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $viewemail, $notifypm, $popup_pm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat, $userdata['session_id']);
in usercp_avatr.php
is this for avatar

Code: Alles auswählen

$params = array('coppa', 'user_id', 'username', 'email', 'current_email', 'cur_password', 'new_password', 'password_confirm', 'icq', 'aim', 'msn', 'skype', 'yim', 'website', 'location', 'user_flag', 'occupation', 'interests', 'signature', 'viewemail', 'notifypm', 'allow_mass_pm', 'popup_pm', 'slidemenue', 'notifyreply', 'attachsig', 'setbm', 'allowhtml', 'allowbbcode', 'allowsmilies', 'hideonline', 'style', 'language', 'timezone', 'rankset', 'dateformat', 'user_allow_mass_email', 'user_absence_mode', 'user_absence', 'user_absence_text', 'birthday', 'gender');
and for avatar generator

Code: Alles auswählen

function display_avatar_generator($mode, &$avatar_filename, &$avatar_image, &$avatar_text, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popup_pm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$session_id)

So wwhat I did is, add for avatar generator in lines this

Code: Alles auswählen

, 'birthday', 'gender'
and this

Code: Alles auswählen

, &$birthday, &$gender
so when I select avatar from avatar generator there is no problem, it works, but it resets other settings in profile, like GMT time, user flag, and other settings.

If I copy all missing, than doesn't works, it reset gender settings too and give for birthday date 1.1.1970, so can you just tell me which I must copy?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Check all variables, the usercp_register.php will use and save and insert them here, too.
Like e. g. the missing for time, flag, etc...

And be sure, each variable will be in the same order at all places!
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

Ok, what I did was just copying line from avatar to avatar generator from userID and forward, before userID I left like it is and now happend that when I click avatar generator and click selected avatar, give me a edit sign windows and not a profile.

In user_avatar.php I didn't do nothing else just added in line birthday and gender.
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Zuletzt geändert von Blisk am Do 21.Dez, 2006 12:55, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

.......

Remaining:
You had insert the missing fields for gender and birthdays.
And other fields are resetted after leaving the avatar generator/gallery.
So insert only these fields in the lines you've still posted in your first post.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I do something wrong.
first I don't understand if there are some variables for avatar, than it should be the same for avatar generator, only the ones which are added for generator is differend, but that doesn't work.

Now I added variables one by one and a fev settings are stil reseted and don't know why.
but cannot add all, because than some are still reseted or instead of submitting avatar I get edit signature.
first is
Allow Mass Email from Administrator:
Absent:
Kind of absence:
Hide your online status:
Notify on mass PM:
Set bookmark automatically when posting:
Block PM's from the Arcade:
Slide Menue aktive::

:(
Zuletzt geändert von Blisk am Fr 22.Dez, 2006 09:54, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Waht do you have changed for now?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I added gender, birthday, flag, skype
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

And are there other fields which are resetted after using the avatar generator?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

yes they are, I named it above.
I tested I put it all to yes, and than change avatar wtih awatar generator, and see which are reseted and than all to no, and check it again.
I think all of the fields are reseted.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Again:
Find the variables of these fields and insert them like you already done it with gender and birthday to keep the status of them...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

[quote="oxpus";p="67939"]Again:
Find the variables of these fields and insert them like you already done it with gender and birthday to keep the status of them...[/quote]

I did, like I mention before it happends that when I click submit in avatar generator I get signature edit page.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

... Please attach your profile.php to check it out ...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

all changes I made is in usercp_register.php and usercp_avatar.php
here is profile.php
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, try these files and do the following modification:

Code: Alles auswählen

#
#-----[ OPEN ]-----
#
includes/usercp_viewprofile.php

#
#-----[ FIND ]-----
#
$profiledata = get_userdata($HTTP_GET_VARS[POST_USERS_URL]);

#
#-----[ AFTER, ADD ]-----
#
$album_root_path = $phpbb_root_path.'album_mod/';
include ($album_root_path.'album_constants.'.$phpEx);
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

no sorri doesn't work, still resets almost all fields.
I set all fields to NO, after subimtting avatar from avatar generator it is all messed up.
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Zuletzt geändert von Blisk am So 31.Dez, 2006 12:44, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

...

I've no more idea to check it...
I think that the generator will not reset all values after leaving it.

How do you return to the profile settings? Will the generator have a link/button to return to the standard profile settings?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

at the bottom of profile is button to get avatar generator, when I pres it, i get a new page where I select avatar, after I selecet I click submit to return to profile page and after that all settings in profile is changed so if than click in profile to accept new avatar and settings are settings are changed.

So if I select and avatar from avatar generator I must than again set all settings in my profile if I wan them to be set ok.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

And if you choose an avatar from the gallery, too?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

[quote="oxpus";p="68078"]And if you choose an avatar from the gallery, too?[/quote]

no only when I select avatar from avatar generator!
all other variations works ok.
Antworten