Not Solved [How To?] Show Thread Start Date and Last Post Date/Owner in Showthread Template?
#1
Not Solved
Hello there. I'd like to show thread's start date, last post date and last post owner's username in showthread template. Wonder if it's possible? Thanks!
Reply
#2
Not Solved
Any help?
Reply
#3
Not Solved
Hi , so ?

[Image: 2021-10-17-150713.jpg]
Reply
#4
Not Solved
I need these informations to be displayed in showthread template, above the postbit in a thread. So people can always see these informations (thread's start date, last post date and last post owner's username) easily at whatever page they're currently on.
Reply
#5
Not Solved
(2021-10-17, 02:24 PM)timelord Wrote: I need these informations to be displayed in showthread template, above the postbit in a thread. So people can always see these informations (thread's start date, last post date and last post owner's username) easily at whatever page they're currently on.

<html>
<head>
<title>{$thread['subject']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
	var quickdelete_confirm = "{$lang->quickdelete_confirm}";
	var quickrestore_confirm = "{$lang->quickrestore_confirm}";
	var allowEditReason = "{$mybb->settings['alloweditreason']}";
	lang.save_changes = "{$lang->save_changes}";
	lang.cancel_edit = "{$lang->cancel_edit}";
	lang.quick_edit_update_error = "{$lang->quick_edit_update_error}";
	lang.quick_reply_post_error = "{$lang->quick_reply_post_error}";
	lang.quick_delete_error = "{$lang->quick_delete_error}";
	lang.quick_delete_success = "{$lang->quick_delete_success}";
	lang.quick_delete_thread_success = "{$lang->quick_delete_thread_success}";
	lang.quick_restore_error = "{$lang->quick_restore_error}";
	lang.quick_restore_success = "{$lang->quick_restore_success}";
	lang.editreason = "{$lang->postbit_editreason}";
// -->
</script>
<!-- jeditable (jquery) -->
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1804"></script>
<script src="{$mybb->asset_url}/jscripts/jeditable/jeditable.min.js"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1813"></script>
{$mentionScript}<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/thankyoulike.min.js"></script>
<script type="text/javascript">
<!--
	var tylEnabled = "{$mybb->settings['g33k_thankyoulike_enabled']}";
	var tylDisplayGrowl = "{$mybb->settings['g33k_thankyoulike_displaygrowl']}";
	var tylCollapsible = "{$mybb->settings['g33k_thankyoulike_collapsible']}";
	var tylUser = "{$mybb->user['uid']}";
	var tylSend = "{$lang->tyl_send}";
	var tylRemove = "{$lang->tyl_remove}";
// -->
</script>
</head>
<body>
	{$header}
	{$threadnotesbox}
	{$pollbox}
	<div class="float_left">
		{$multipage}
	</div>
	<div class="float_left">
		{$newreply}
	</div>
	{$ratethread}
	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder tfixed clear">
		<tr>
			<td class="thead">
				<div class="float_right">
					<span class="smalltext"><strong><a href="javascript:void(0)" id="thread_modes">{$lang->thread_modes}</a>{$threadnoteslink}</strong></span>
				</div>
				<div>
					<strong>{$thread['threadprefix']}{$thread['subject']}</strong>
				</div>
			</td>
		</tr>
<tr><td id="posts_container">
	<div id="posts">
		{$posts}
	</div>
</td></tr>
		<tr>
			<td class="tfoot">
				{$search_thread}
				<div>
					<strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
				</div>
			</td>
		</tr>
	</table>
	<div class="float_left">
		{$multipage}
	</div>
	<div style="padding-top: 4px;" class="float_left">
		{$newreply}
	</div>
	<br class="clear" />
	{$socialbookmarks}{$quickreply}
	{$threadexbox}
	{$similarthreads}
	<br />
	<div class="float_left">
		<ul class="thread_tools">
			<li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
			{$sendthread}
			{$addremovesubscription}
			{$addpoll}{$addexpoll}
		</ul>
	</div>

	<div class="float_right" style="text-align: right;">
		{$moderationoptions}
		{$forumjump}
	</div>
	<br class="clear" />
	{$usersbrowsing}
	{$footer}
	<div id="thread_modes_popup" class="popup_menu" style="display: none;"><div class="popup_item_container"><a href="showthread.php?mode=linear&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}" class="popup_item">{$lang->linear}</a></div><div class="popup_item_container"><a href="showthread.php?mode=threaded&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}" class="popup_item">{$lang->threaded}</a></div></div>
	<script type="text/javascript">
	// <!--
		if(use_xmlhttprequest == "1")
		{
			$("#thread_modes").popupMenu();
		}
	// -->
	</script>
	<script type="text/javascript">
		$(".author_avatar img").error(function () {
			$(this).unbind("error").closest('.author_avatar').remove();
		});
	</script>
</body>
</html>
Reply
#6
Not Solved
Why did you send me the whole showthread template?
Reply
#7
Not Solved
(2021-10-17, 06:43 PM)timelord Wrote: Why did you send me the whole showthread template?

this is mine, you can see my modifications so if you like it use it
Reply
#8
Not Solved
Thank you but I still don't understand exactly where you did these modifications that answer my problem.
Reply
#9
Not Solved
Anyone?
Reply
#10
Not Solved
I looked at it briefly. I don't see where the submitted showthread template will do what you ask.

So I started looking at the forumdisplay templates and underlying code. Because I know the info you seek is presented there. But I was called away and did not find a full answer yet.

At this point, I don't think showthread pulls that info specifically, but with a query and a variable or two it could. Perhaps there's a plugin already.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)