• Welcome to DNForum.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars
    If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the oldest global domain name community on the internet and continues to grow every day. There are over 45,000 domainers on DNForum doing everything from buying domains, selling domains, using our free in-house built tools, learning about domains and discussing domains. Take a minute and Register.

Wanted: Service 200 DNF$ if you know phpBB well

Status
Not open for further replies.

Mr.Domains

DNF Addict
The Originals
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.
 
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.
Back
Top Bottom