MyBB Community Forums

Full Version: Would anyone know how to fix link in last post
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
HI i seem to have a small problem, i can't seem to click on the last post link.  Can someone here provide me in detail where to go and what to do to fix this small problem. Much appreciated.

[attachment=41909]
Hi,

if I click in the "Last Post:" text  it works as intended, so maybe it's a cache thing or similar.

Try to refresh your browser with Ctrl + F5
(2019-06-18, 04:31 PM)NoRules Wrote: [ -> ]Hi,

if I click in the "Last Post:" text  it works as intended, so maybe it's a cache thing or similar.

Try to refresh your browser with Ctrl + F5

Ok thank you it actually was the browser but its partially working

i would still like the name to be beside the last post link just like in the below picture


[attachment=41910]
Anyone out there?
(2019-06-20, 03:12 AM)canadacommunity Wrote: [ -> ]Anyone out there?

This is a section from your view source:

<td class="trow2 forumdisplay_regular" style="white-space: nowrap; text-align: right;">
<span class="lastpost smalltext"><div class="avatarep_fd"><a href="javascript:void(0)" title="Desmond's Avatar" onclick="if (!window.__cfRLUnblockHandlers) return false; MyBB.popupWindow('User-Desmond?action=avatarep_popup', null, true); return false;" data-cf-modified-71120e28cf123d536b7d8d67-=""><script src="https://ajax.cloudflare.com/cdn-cgi/scripts/a2bd7673/cloudflare-static/rocket-loader.min.js" data-cf-settings="71120e28cf123d536b7d8d67-|49"></script><img src="https://canadacommunity.org/uploads/avatars/avatar_10.jpg?dateline=1529813967" class="avatarep_img" alt="Desmond" onerror="this.src=\'images/default_avatar.png\'" /></a></div>03-28-2019, 01:53 AM<br />
<a href="Thread-Geoengineering-Watch-Global-Alert-News-December-30-2017-125-Dane-Wigington--28037?action=lastpost">Last Post</a>: <br /><a href="https://canadacommunity.org/User-Desmond"><span style="background: url(images/sparks.gif); color: #0000FF; text-shadow: 0 0 9px #0000FF;"><strong><em>Desmond</em></strong></span></a></span>
</td>
</tr>

Notice the <br /> after last post. Needs to be removed. Last Poster Avatar does not do that as far as i am aware, so must be something else. Check your forumdisplay_thread template.
(2019-06-20, 03:40 AM)Ashley1 Wrote: [ -> ]
(2019-06-20, 03:12 AM)canadacommunity Wrote: [ -> ]Anyone out there?

This is a section from your view source:

<td class="trow2 forumdisplay_regular" style="white-space: nowrap; text-align: right;">
<span class="lastpost smalltext"><div class="avatarep_fd"><a href="javascript:void(0)" title="Desmond's Avatar" onclick="if (!window.__cfRLUnblockHandlers) return false; MyBB.popupWindow('User-Desmond?action=avatarep_popup', null, true); return false;" data-cf-modified-71120e28cf123d536b7d8d67-=""><script src="https://ajax.cloudflare.com/cdn-cgi/scripts/a2bd7673/cloudflare-static/rocket-loader.min.js" data-cf-settings="71120e28cf123d536b7d8d67-|49"></script><img src="https://canadacommunity.org/uploads/avatars/avatar_10.jpg?dateline=1529813967" class="avatarep_img" alt="Desmond" onerror="this.src=\'images/default_avatar.png\'" /></a></div>03-28-2019, 01:53 AM<br />
<a href="Thread-Geoengineering-Watch-Global-Alert-News-December-30-2017-125-Dane-Wigington--28037?action=lastpost">Last Post</a>: <br /><a href="https://canadacommunity.org/User-Desmond"><span style="background: url(images/sparks.gif); color: #0000FF; text-shadow: 0 0 9px #0000FF;"><strong><em>Desmond</em></strong></span></a></span>
</td>
</tr>

Notice the <br /> after last post. Needs to be removed. Last Poster Avatar does not do that as far as i am aware, so must be something else. Check your forumdisplay_thread template.

@Ashley1

Thank you so much for your reply, here is the code in forumdisplay_thread   anything that i must do here

<tr class="inline_row">
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><span class="thread_status {$folder}" title="{$folder_label}">&nbsp;</span></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
	<td class="{$bgcolor}{$thread_type_class}">
		<avatarep_uid_[{$thread['uid']}]>{$thread['avatarep']}{$attachment_count}
		<div>
          <span>{$prefix} {$gotounread}{$thread['threadprefix']}<span class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}"><a href="{$thread['threadlink']}">{$thread['subject']}</a></span>{$thread['multipage']}</span>
			<div class="author smalltext">{$thread['description']}{$thread['profilelink']}</div>
		</div>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
	{$rating}
	<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
		<span class="lastpost smalltext"><avatarep_uid_[{$thread['lastposteruid']}]>{$lastpostdate}<br />
		<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$avbr}{$lastposterlink}</span>
	</td>
{$modbit}
</tr>
Try:

<tr class="inline_row">
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><span class="thread_status {$folder}" title="{$folder_label}">&nbsp;</span></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
	<td class="{$bgcolor}{$thread_type_class}">
		<avatarep_uid_[{$thread['uid']}]>{$thread['avatarep']}{$attachment_count}
		<div>
          <span>{$prefix} {$gotounread}{$thread['threadprefix']}<span class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}"><a href="{$thread['threadlink']}">{$thread['subject']}</a></span>{$thread['multipage']}</span>
			<div class="author smalltext">{$thread['description']}{$thread['profilelink']}</div>
		</div>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
	{$rating}
	<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
		<span class="lastpost smalltext"><avatarep_uid_[{$thread['lastposteruid']}]>{$lastpostdate}<br />
		<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
	</td>
{$modbit}
</tr>
(2019-06-20, 09:23 AM)Ashley1 Wrote: [ -> ]Try:

<tr class="inline_row">
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><span class="thread_status {$folder}" title="{$folder_label}">&nbsp;</span></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
	<td class="{$bgcolor}{$thread_type_class}">
		<avatarep_uid_[{$thread['uid']}]>{$thread['avatarep']}{$attachment_count}
		<div>
          <span>{$prefix} {$gotounread}{$thread['threadprefix']}<span class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}"><a href="{$thread['threadlink']}">{$thread['subject']}</a></span>{$thread['multipage']}</span>
			<div class="author smalltext">{$thread['description']}{$thread['profilelink']}</div>
		</div>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
	{$rating}
	<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
		<span class="lastpost smalltext"><avatarep_uid_[{$thread['lastposteruid']}]>{$lastpostdate}<br />
		<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
	</td>
{$modbit}
</tr>

@Ashley1

Nope I tried it and still no change would there be anything else you would 
recommend? By the way Thank You so much for trying to help me out! I really appreciate it.
The <br /> is clear in you view source. That's what causing it. And it must be something you added.

What variable is this {$avbr} ?
(2019-06-20, 02:44 PM)Ashley1 Wrote: [ -> ]The <br /> is clear in you view source. That's what causing it. And it must be something you added.

What variable is this {$avbr} ?

@Ashley1
I believe {$avbr} is related to the plugin "Last poster avatar"  Huh
Pages: 1 2