2011-06-09, 12:03 AM
On the main forum page, all of the links point to the thread urls and contain ?action=lastpost
Is there a way to turn of "?action=lastpost"
I don't want any of my links from the forum main page to contain this action (or any action)
I'm using google seo, so the "?action=lastpost" has a slight performance impact on redirecting, I want to reduce this impact.
Okay, I've made my own custom hack
update the functions_forumlist.php file where it says:
add the flowing lines:
now in the ACP update the template: forumbit_depth2_forum_lastpost
to:
Is there a way to turn of "?action=lastpost"
I don't want any of my links from the forum main page to contain this action (or any action)
I'm using google seo, so the "?action=lastpost" has a slight performance impact on redirecting, I want to reduce this impact.
Okay, I've made my own custom hack
update the functions_forumlist.php file where it says:
$lastpost_profilelink = build_profile_link($lastpost_data['lastposter'], $lastpost_data['lastposteruid']);
$lastpost_link = get_thread_link($lastpost_data['lastposttid'], 0, "lastpost");
add the flowing lines:
// custom hack to not have ?action=lastpost on the front page
$pos = strrpos($lastpost_link, "?action");
$thispost_link = substr($lastpost_link , 0, $pos);
now in the ACP update the template: forumbit_depth2_forum_lastpost
to:
<span class="smalltext">
<a href="{$thispost_link}" title="{$full_lastpost_subject}"><strong>{$lastpost_subject}</strong></a>
<br />{$lastpost_date} {$lastpost_time}<br />{$lang->by} {$lastpost_profilelink}</span>