Birthdays

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
151
66%
Very Good
39
17%
Good
21
9%
Fair
5
2%
Poor
12
5%
 
Total votes: 228

TerraFrost
Former Team Member
Posts: 5957
Joined: Sun Dec 26, 2004 3:40 am
Location: Austin, TX

Post by TerraFrost » Thu Nov 24, 2005 9:48 pm

I have no idea why ya'll are experiencing the problems that ya'll are. As such, if someone could perhaps provide me with a temp. FTP account with which I might diagnose / fix the problem, that'd be helpful. The alternative - debugging via proxy - is a long, teddious, and annoying process.

d3rutat
Registered User
Posts: 107
Joined: Thu Oct 27, 2005 7:34 pm
Contact:

Post by d3rutat » Thu Nov 24, 2005 9:54 pm

here's my forum, where i have problems : www.bonsaiclub.ro...You can create a user acount and see

TerraFrost
Former Team Member
Posts: 5957
Joined: Sun Dec 26, 2004 3:40 am
Location: Austin, TX

Post by TerraFrost » Thu Nov 24, 2005 10:15 pm

Being able to see the problem isn't enough. I need to be able to alter the code to better understand / fix the problem. I've been unable to reproduce the problem on my own computers, too, hence my asking if someone could (via PM) provide me with temp. FTP account...

d3rutat
Registered User
Posts: 107
Joined: Thu Oct 27, 2005 7:34 pm
Contact:

Post by d3rutat » Thu Nov 24, 2005 10:19 pm

well i guess you could download the local .tpl files?? i guess the problem should either be in edit_profile.tpl or the topic .php

User avatar
3Di
Former Team Member
Posts: 14477
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Post by 3Di » Thu Nov 24, 2005 11:34 pm

TerraFrost wrote: Being able to see the problem isn't enough. I need to be able to alter the code to better understand / fix the problem. I've been unable to reproduce the problem on my own computers, too, hence my asking if someone could (via PM) provide me with temp. FTP account...


The issue with date happens also to me, i have a live test board i use to improve my IP Country Flag MOD, i was born the 14th of Avril, i've set it right im my profile edit screen (where it is displayed right, though).. but if you click on my nickname on index my birthday shows as 13th of Avril instead..

I'm on GMT+1 (Italy), my server stays in Germany.

I can give you FTP access, feel free to PM me if you need it.
Thank you.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
3Di
Former Team Member
Posts: 14477
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Post by 3Di » Fri Nov 25, 2005 12:07 am

In the meantime, cross-browsers compatibility need also TITLE not only ALT, so.. in templates/subSilver/index_body.tpl

find

Code: Select all

	<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_VIEW_BIRTHDAYS}" /></td>
replace with

Code: Select all

	<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_VIEW_BIRTHDAYS}" title="{L_VIEW_BIRTHDAYS}"/></td>
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
3Di
Former Team Member
Posts: 14477
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Post by 3Di » Fri Nov 25, 2005 12:56 am

a contribution for my IP Country Flag 2.1.0 (Vanilla version) http://www.phpbb.com/phpBB/viewtopic.php?t=302434

Code: Select all

#
#-----[ OPEN ]------------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------------
#
	$sql = "SELECT user_id, username, user_birthday
#
#-----[ IN-LINE FIND ]----------------------------------------
#
user_birthday
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, user_cf_iso3661_1
#
#-----[ FIND ]------------------------------------------------
#
	while ( $row = $db->sql_fetchrow($result) )
	{
#
#-----[ AFTER, ADD ]------------------------------------------
#
		$birthday_flag = $row['user_cf_iso3661_1'];
#
#-----[ FIND ]------------------------------------------------
#
		$user_birthdays[] = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '">' . $row['username'] . '</a>' . $age;
#
#-----[ REPLACE WITH ]----------------------------------------
#
		$user_birthdays[] = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"><img src="images/flags/small/' . $birthday_flag . '.png" width="14" height="9" alt="' . $lang['IP2Country'][$birthday_flag] . '" title="' . $lang['IP2Country'][$birthday_flag] . '" border="0" />&nbsp;' . $row['username'] . '</a>' . $age;
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

TerraFrost
Former Team Member
Posts: 5957
Joined: Sun Dec 26, 2004 3:40 am
Location: Austin, TX

Post by TerraFrost » Fri Nov 25, 2005 1:03 am

3Di wrote: I can give you FTP access, feel free to PM me if you need it.

I'd appreciate that! :)

Also, thanks for the title suggestion (a Google search revealed more informaiton) and for the code contribution! I'll add 'em to the next release! :)

User avatar
3Di
Former Team Member
Posts: 14477
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Post by 3Di » Fri Nov 25, 2005 1:11 am

TerraFrost wrote:
3Di wrote:I can give you FTP access, feel free to PM me if you need it.

I'd appreciate that! :)

Also, thanks for the title suggestion (a Google search revealed more informaiton) and for the code contribution! I'll add 'em to the next release! :)


Oky, i'm also working on the Cat. Hierarchy version (about my IP Country Flag MOD but in the meantime i'll try fo fit it also elsewhere).

I'm writing a little txt file to PM you with the infos required to access my FTP..

Greets
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

TerraFrost
Former Team Member
Posts: 5957
Joined: Sun Dec 26, 2004 3:40 am
Location: Austin, TX

Post by TerraFrost » Fri Nov 25, 2005 4:24 am

Thanks to 3Di, I believe I have a fix. Can anyone else experiencing problems with their birthday being a day early try doing this?:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
	$birthday = create_date($birthday_format, mktime(0,0,0,$bday_month,$bday_day), $board_config['board_timezone']);
#
#-----[ REPLACE WITH ]------------------------------------
#
	$birthday = create_date($birthday_format, mktime(0,0,0,$bday_month,$bday_day)+date('Z')+60*60*date('I'), $board_config['board_timezone']);
EDIT: REPLACE WITH was originally AFTER, ADD.
Last edited by TerraFrost on Fri Nov 25, 2005 7:01 am, edited 1 time in total.

Scorpiuscat1
Registered User
Posts: 103
Joined: Mon Jul 18, 2005 1:55 am

Post by Scorpiuscat1 » Fri Nov 25, 2005 4:38 am

TerraFrost wrote: Thanks to 3Di, I believe I have a fix. Can anyone else experiencing problems with their birthday being a day early try doing this?:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
	$birthday = create_date($birthday_format, mktime(0,0,0,$bday_month,$bday_day), $board_config['board_timezone']);
#
#-----[ AFTER, ADD ]------------------------------------
#
	$birthday = create_date($birthday_format, mktime(0,0,0,$bday_month,$bday_day)+date('Z')+60*60*date('I'), $board_config['board_timezone']);


I made the modification and can confirm that it does NOT work. It still displays a day early than what is actually entered.

Example, I entered 11/23 and in my profile it displays as 11/22
Visit Sci-Fi Website

Now featuring Over 500 Free Games!!!

TerraFrost
Former Team Member
Posts: 5957
Joined: Sun Dec 26, 2004 3:40 am
Location: Austin, TX

Post by TerraFrost » Fri Nov 25, 2005 5:39 am

Okay... then try undoing that modification, and try this:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
	$birthday = create_date($birthday_format, mktime(0,0,0,$bday_month,$bday_day), $board_config['board_timezone']);
#
#-----[ REPLACE WITH ]------------------------------------
#
	$birthday = create_date($birthday_format, gmmktime(0,0,0,$bday_month,$bday_day)+date('Z')+60*60*date('I'), $board_config['board_timezone']);
If that doesn't work, then undo the above, and try this, instead:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
	$birthday = create_date($birthday_format, mktime(0,0,0,$bday_month,$bday_day), $board_config['board_timezone']);
#
#-----[ REPLACE WITH ]------------------------------------
#
	$birthday = create_date($birthday_format, gmmktime(0,0,0,$bday_month,$bday_day), $board_config['board_timezone']);
If neither of those work (all three work on 3Di's board), then it would help if someone for whom neither the orig. code nor the code I presented in my previous post works could provide me (via PM) with a temp. FTP account. I can post modifications all day, but there really is no substitute for in-person debugging. Plus, when modifications are posted, I have to wait much longer than I would have otherwise had to wait (ie. I wouldn't have to wait) to see what the results of a change are.

User avatar
DaMnY
Registered User
Posts: 51
Joined: Sun Jan 26, 2003 10:09 am
Location: The Netherlands
Contact:

Post by DaMnY » Fri Nov 25, 2005 1:58 pm

Thnx TerraFrost, it works now!
Know Thyself

TerraFrost
Former Team Member
Posts: 5957
Joined: Sun Dec 26, 2004 3:40 am
Location: Austin, TX

Post by TerraFrost » Fri Nov 25, 2005 5:14 pm

Which one? Based on a usenet post I made, I'd speculate that the best one is the one that does just gmmktime.

Anyway, I'm planning on releasing a new version, soon. In the mean time, it'd really be nice it if those experiencing problems would report back, saying which of the solutions I presented worked for them...

babydoll2u
Registered User
Posts: 214
Joined: Sun Sep 18, 2005 11:26 pm
Contact:

Post by babydoll2u » Fri Nov 25, 2005 6:24 pm

TerraFrost wrote:
babydoll2u wrote:no no hun, I mean over to the left here... under the username, avatar, rank, etc etc etc

That actually wasn't part of the design, either (viewtopic_body.tpl and viewtopic.php would have to be modified; they aren't) I can make it do that, though, when I get a chance. (Actually, what I'll probably do is make an ACP option where you can decide what gets displayed where).


that's fine hun, it doesn't have to be there... I was just wondering if it was supposed to be there ;)
It's really not necessary and probably most people prefer that it not show
thanks!
Never, ever, argue with an idiot. They'll drag you down to their level and beat you with experience

Post Reply

Return to “[2.0.x] MOD Database Releases”