[RC] 2.0.4/2.0.5 : Profile Controle Panel v 1.0.1

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Deriel
Registered User
Posts: 164
Joined: Tue Aug 27, 2002 5:16 pm
Location: Curitiba/PR - Brasil
Contact:

Post by Deriel »

Ptirhiik - RPGnet-fr wrote: I assume "Birthday today" is a list of people having their birthday today, and age in viewtopic their age under the name ?

It shouldn't be hard to add, there is already a button on each post of a user having his anniversary today, near profile, and the age is a simple compute on the date.

Is the function realdate() directly applied to the database field ? If so, this will be a piece of cake to migrate it ;).


Apparently, yes:

Code: Select all

$birthday = mkrealdate($b_day,$b_md,$b_year);
and in the query

Code: Select all

user_birthday='$birthday'
and realdate appears to be the inverse of mkrealdate. Calculating the age of a user:

Code: Select all

			$poster_age = $this_year - realdate ('Y',$postrow[$i]['user_birthday']); 
			if ($this_date < $poster_birthdate) 
				$poster_age--; 
			$poster_age = $lang['Age'] . ':' . $poster_age .' '; 

And I will reinforce: this is one of the (very) few MODs that make me "WOW". And I really know very many MODs, baby 8)
User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik »

Niel's mod are of great quality, I agree (except this ugly category name qualification in the global announce mod ;)) :).
Deriel
Registered User
Posts: 164
Joined: Tue Aug 27, 2002 5:16 pm
Location: Curitiba/PR - Brasil
Contact:

Post by Deriel »

Deriel wrote: And I will reinforce: this is one of the (very) few MODs that make me "WOW". And I really know very many MODs, baby 8)


I don't make myself clear, sorry :oops:

Your Mod (Profile Mod) is the one I'm talking about ;)
User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik »

:) Some of Niel's mod made me feels the same ;)


Here is a converter from Niel's birthday field to pcp field. I couldn't test it in real condition, so bugs may remain (the data will be saved in user_birthday_sav anyway, and the prog will stop if it encountered an error, so the risks are low). It supposed to be installed in the root forum dir, and execute by an admin. If someone can give me feedback on it :


[edit : link to the converter removed : it's now included in the zip pack :)]
Last edited by Ptirhiik on Sat May 10, 2003 6:59 pm, edited 2 times in total.
Deriel
Registered User
Posts: 164
Joined: Tue Aug 27, 2002 5:16 pm
Location: Curitiba/PR - Brasil
Contact:

Post by Deriel »

I'll test.

One more thing. To change my username the Profile ask me to change the password two... entering the actual pass won't be ok?
User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik »

Deriel wrote: One more thing. To change my username the Profile ask me to change the password two... entering the actual pass won't be ok?
Yep it will be : it's only a check the one doing the change has the ability to perform this and do it on the right profile. Admin (and moderators if granted) aren't supposed to enter users passwords to validate, but the anti-robotic code is required.

[edit]there is a wrong redirection after validation anyway, you return to your profile as admin, in place of returning to the user profile.
Last edited by Ptirhiik on Sat May 10, 2003 7:00 pm, edited 1 time in total.
Deriel
Registered User
Posts: 164
Joined: Tue Aug 27, 2002 5:16 pm
Location: Curitiba/PR - Brasil
Contact:

Post by Deriel »

With 30+ users the page load is more than 20 s
User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik »

Deriel wrote: With 30+ users the page load is more than 20 s
Which page ? index.php ?
User avatar
anor
Registered User
Posts: 48
Joined: Mon Apr 29, 2002 11:18 pm
Location: The Netherlands

Post by anor »

I have to say this is a great mod, i am running a phpnuke (yeah yeah i know you guys hate them) site which runs with phpbb (intergrated), so i edited most of the code to make it work with my site and i hope you don't mind it. Now my question is i saw on your test site the rules body under the register now my question is how do i do that :), thanks in advance.
User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik »

Very simply : you write a topic with this rules, then you go to the admin panel, general configuration, and put the topic number in the field dedicated (just below DST management) ;).
User avatar
anor
Registered User
Posts: 48
Joined: Mon Apr 29, 2002 11:18 pm
Location: The Netherlands

Post by anor »

Doh forgot to upload the board_config_body.tpl that i modified :) Sorry bout that :)
User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik »

hehe :). I always forget one by my side when I put a mod to the product environement ;).
Deriel
Registered User
Posts: 164
Joined: Tue Aug 27, 2002 5:16 pm
Location: Curitiba/PR - Brasil
Contact:

Post by Deriel »

My provider seems to be experimenting an Apache overload :(

Index with the user on-line ~20 s
Index withou the user on-line ~8 s
User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik »

Deriel wrote: My provider seems to be experimenting an Apache overload too.

Index with the user on-line ~20 s
Index withou the user on-line ~6 s
Ok, so there's something elsewhere : 6s is to high with less resquest than vanilia phpBB (what is without reading the who's online). I think there is a conflict with something reading your database, user or buddy if you have already a buddy list. Now let's do another check : first re-activate the who's online feature, and do this

Code: Select all

#
#---[ OPEN ]-----------------
#
includes/page_header.php
#
#---[ FIND ]-----------------
#
	if (count($user_ids) > 0)
#
#---[ REPLACE WITH ]----------
#
//-- mod : profile cp : test
//-- delete
//	if (count($user_ids) > 0)
//-- add
	if (false)
//-- fin mod : profile cp : test
#
#---[ SAVE AND CLOSE ALL FILES ]--------
# EoM
The next step will be to inhibate also the birthday today list, which is probably the cause of the loss of performance (the field format beeing changed). I will start to study a birthday today list for the pcp.
Deriel
Registered User
Posts: 164
Joined: Tue Aug 27, 2002 5:16 pm
Location: Curitiba/PR - Brasil
Contact:

Post by Deriel »

I retired the Niel's Birthday MOD section from index.php and...

Code: Select all

Page generation time: 0.450778 seconds
8O
Locked

Return to “[2.0.x] MODs in Development”