Viewtopic Birthday

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

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
CJ1985
Registered User
Posts: 225
Joined: Sun Apr 05, 2009 8:48 am

Re: Viewtopic Birthday

Post by CJ1985 »

Anyone have a solution to my problem post above?
CJ1985
Registered User
Posts: 225
Joined: Sun Apr 05, 2009 8:48 am

Re: Viewtopic Birthday

Post by CJ1985 »

eviL<3 wrote:Replace the language with this:

Code: Select all

'VIEWTOPIC_BIRTHDAY'   => 'Happy Birthday %s',
And in viewtopic.php, replace this:

Code: Select all

'BIRTHDAY_IMG'		=> $user_cache[$poster_id]['viewtopic_birthday'] ? $user->img('icon_birthday', 'VIEWTOPIC_BIRTHDAY') : false,
With:

Code: Select all

'BIRTHDAY_IMG'		=> $user_cache[$poster_id]['viewtopic_birthday'] ? $user->img('icon_birthday', sprintf($user->lang['VIEWTOPIC_BIRTHDAY'], $user_cache[$poster_id]['username'])) : false,
See how that goes. :)

I am currently trying to get where someone goes in and views the birthday boy/girl's profile and scrolls over the image and it says Happy Birthday %s as well, however it only shows Happy Birthday %s until I did some tweaking. However, after doing some tweaking I can only get Happy Birthday to show up. This is what I have so far:

memberlist.php
replaced the following:

Code: Select all

		// viewprofile birthday
		'BIRTHDAY_IMG'	=> $viewprofile_birthday ? $user->img('icon_birthday', 'VIEWTOPIC_BIRTHDAY') : false,
with:

Code: Select all

// viewprofile birthday
		'BIRTHDAY_IMG'	=> $viewprofile_birthday ? $user->img('icon_birthday', sprintf($user->lang['VIEWTOPIC_BIRTHDAY'], $user_cache[$poster_id]['username'])) : false,
How do I get it so that the image in the person's profile shows up as Happy Birthday %s

What part did I do wrong when tweaking it?
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 29002
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier

Re: Viewtopic Birthday

Post by Paul »

MOD Updated to version 1.0.1
See first post for Download Link
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 29002
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier

Re: Viewtopic Birthday

Post by Paul »

MOD Updated to version 1.0.1.a
See first post for Download Link

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