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 largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!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:27 Mar 2005 06:24 pm
Username ->[]
But in the template scripts it's just refered to as:27 Mar 2005
06:24 pm
Username ->[]
{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.
★ Neil Hillman - Web Developer, Pixel Pusher...
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:
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.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)); }
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
Originally Posted by Mr.Domains
Bookmarks