Welcome to Welcome to DNF.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 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!

Results 1 to 2 of 2
  1. #1
    DNF Addict
    Mr.Domains's Avatar
    Join Date
    Sep 2004
    Location
    Geneva, Switz.
    Posts
    1,868
    Country

    Great Britain
    DNF$
    3,238
    Bank
    6,090
    Total DNF$
    9,328
    Donate  

    200 DNF$ if you know phpBB well

    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.
    Neil Hillman - Web Developer, Pixel Pusher...

  2. #2
    Gold Lifetime Member

    Join Date
    Feb 2004
    Posts
    6
    DNF$
    145
    Bank
    0
    Total DNF$
    145
    Donate  

    Re: 200 DNF$ if you know phpBB well

    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


    Quote Originally Posted by Mr.Domains
    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.

Similar Threads

  1. 200 DNF$ to post
    By Dr. Domaining in forum DNF$ Sales/Domain Auctions
    Replies: 2
    Last Post: 03-25-2005, 11:50 PM
  2. DNF points stuck
    By mole in forum Gold Cafe
    Replies: 13
    Last Post: 08-28-2004, 05:31 AM
  3. Get 200 DNF$ FREE !
    By NameWolf in forum DNF$ Sales/Domain Auctions
    Replies: 15
    Last Post: 05-02-2004, 07:26 PM
  4. Stop a DOS/Script attack ?
    By Whois-Search in forum Help Wanted!
    Replies: 2
    Last Post: 10-25-2003, 08:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com