Solved: 3 Years, 6 Months, 2 Weeks ago Hooks and Addons
#2
Solved: 3 Years, 6 Months, 2 Weeks ago
Do you mean in postbit or forum display? Because on forum display you could show when the thread was created and by who also time.

(2009-05-21, 01:33 PM)Tomm M Wrote: I've actually done something like this on my new website. I'm planning on making it into a plugin but for the mean time, I modified forumdisplay.php. Around line 799, you'll find this:

		else
		{
			$thread['profilelink'] = build_profile_link($thread['username'], $thread['uid']);
		}

Add after this:

		$thread['created'] = my_date($mybb->settings['dateformat'], $thread['dateline']).", ".my_date($mybb->settings['timeformat'], $thread['dateline']);

Then, in the forumdisplay_thread template, find:

<div class="author smalltext">{$thread['profilelink']}</div>

...and replace it with:

<div class="author smalltext">By {$thread['profilelink']} &raquo; {$thread['created']}</div>

Feel free to modify. Works on 1.4.6 (which you should really think about upgrading too, or at least, performing the custom edits, to protect your board).

This does work on 1.8 I've tested it.
Do NOT PM me for support unless I ask you on your support thread.
Reply


Messages In This Thread
Hooks and Addons - by KaSo - 2017-10-24, 03:27 PM
RE: Hooks and Addons - by Livewire - 2017-10-24, 08:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)