Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
Sedo

Wanted: Service 200 DNF$ if you know phpBB well

Status
Not open for further replies.

Mr.Domains

DNF Addict
Legacy Exclusive Member
Joined
Sep 29, 2004
Messages
1,417
Reaction score
29
Do you know the phpBB scripts very well?

In the "Last Post" column the format is always like:
27 Mar 2005 06:24 pm
Username ->[]
I want to add a line break between the Date and Time like so:
27 Mar 2005
06:24 pm
Username ->[]
But in the template scripts it's just refered to as:
{catrow.forumrow.LAST_POST}

I will donate 200 DNF$ to anyone who can tell me where this variable is set, and how I can add a line break between the Date and Time.
 
Dynadot - Expired Domain Auctions

ToolGuy

Level 1
Legacy Platinum Member
Joined
Feb 10, 2004
Messages
6
Reaction score
0
Well I am not a programmer but this is what I have came up.
There is a "create_date" function that is called to output the date wherever you see it on your forum. The function to create the date is found on the /includes/functions.php page and looks like this:

Code:
// Create date/time from format and timezone
//
function create_date($format, $gmepoch, $tz)
{
	global $board_config, $lang;
	static $translate;

	if ( empty($translate) && $board_config['default_lang'] != 'english' )
	{
		@reset($lang['datetime']);
		while ( list($match, $replace) = @each($lang['datetime']) )
		{
			$translate[$match] = $replace;
		}
	}

	return ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * $tz)), $translate) : @gmdate($format, $gmepoch + (3600 * $tz));
}

I am not sure what you would need to give it the line break you are after but if you do figure it out then be aware that it will be like that on all pages so look around before hand to see what will happen to the layout of your forums.
One idea may be to creat a second "create_date" function with the line break in it and then on the main page call that function instead.
I hope this at least helps a little.
Toolguy


Mr.Domains said:
Do you know the phpBB scripts very well?

In the "Last Post" column the format is always like:

I want to add a line break between the Date and Time like so:

But in the template scripts it's just refered to as:
{catrow.forumrow.LAST_POST}

I will donate 200 DNF$ to anyone who can tell me where this variable is set, and how I can add a line break between the Date and Time.
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 2) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Sedo - it.com Premiums

IT.com

Premium Members

MariaBuy

Upcoming events

New Threads

Our Mods' Businesses

UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom