2012-10-06, 01:08 PM
2012-10-06, 01:31 PM
2012-10-06, 01:48 PM
^^ i already have latest threads on index by using lebrocca's sideboxes plugin, just want want them to take me to lastpage instead of first page of thread.
any help ??
any help ??
2012-10-07, 02:00 PM
You need to change the link to be to the last post (look in your portal templates). It might work, otherwise you would have to edit the plugin file and I am not sure what labrocca's policy is on that
2012-10-08, 06:31 AM
yes, i would like to know where to edit in portal template ??
2012-10-08, 07:34 AM
Well, portal_latestthreads_thread already has it on default :
You need to check if the index side box is pulling from the portal templates - if it is then that should work. If it is not then you will need to edit the index side box template to have the last poster link as in the portal code.
<tr>
<td class="{$altbg}">
<strong><a href="{$mybb->settings['bburl']}/{$thread['threadlink']}">{$thread['subject']}</a></strong>
<span class="smalltext"><br />
<a href="{$thread['lastpostlink']}">{$lang->latest_threads_lastpost}</a> {$lastposterlink}<br />
{$lastpostdate} {$lastposttime}<br />
<strong>» </strong>{$lang->latest_threads_replies} {$thread['replies']}<br />
<strong>» </strong>{$lang->latest_threads_views} {$thread['views']}
</span>
</td>
</tr>
You need to check if the index side box is pulling from the portal templates - if it is then that should work. If it is not then you will need to edit the index side box template to have the last poster link as in the portal code.
2012-10-08, 09:14 AM
it is pulling from portal template only, i will check and then reply.
thanks.
here in :-
<strong><a href="{$mybb->settings['bburl']}/{$thread['threadlink']}">{$thread['subject']}</a></strong>
that is thread link is like:-
http://cricketlife.net/Thread-Requests-O...rd-Preview
i want to make it:-
http://cricketlife.net/Thread-Requests-O...rd-Preview?action=lastpost
thanks.
here in :-
<strong><a href="{$mybb->settings['bburl']}/{$thread['threadlink']}">{$thread['subject']}</a></strong>
that is thread link is like:-
http://cricketlife.net/Thread-Requests-O...rd-Preview
i want to make it:-
http://cricketlife.net/Thread-Requests-O...rd-Preview?action=lastpost
2012-10-08, 10:58 AM
At the moment the link is to newpost, not last post, but that is usually the same thing from a user perspective:
This is using the ?action=lastpost tagged on the url
This is taking you to the newpost:
This is using the ?action=lastpost tagged on the url
<strong><a href="{$mybb->settings['bburl']}/{$thread['threadlink']}?action=lastpost">{$thread['subject']}</a></strong>
This is taking you to the newpost:
<strong><a href="{$mybb->settings['bburl']}/{$thread['lastpostlink']}">{$thread['subject']}</a></strong>
2012-10-08, 02:02 PM
^^ thank you so much leefish, time to close this thread now.