1.8.x

Auto Post URL

Submitted by Ascerton, , Thread ID: 51616

Thread Closed
Ascerton
Closed Account
Level:
0
Reputation:
0
Posts:
82
Likes:
5
Credits:
106
16-10-2017, 09:42 PM
This post was last modified: 16-10-2017, 09:43 PM by Ascerton
#1
Auto Post URL
Installation:

Upload everything from upload folder to your forum root (where index.php, forumdisplay.php etc. are located).
Install and activate plugin in ACP -> Configuration -> Plugins.
Configure it.

Templates troubleshooting:


Postbit - add class="post_anchor" href="{$post['postlink']}#pid{$post['pid']}" title="{$post['subject_title']}" to the starting post URL and <a name="bottompid{$post['pid']}" id="bottompid{$post['pid']}"></a> at the end of postbit and postbit_classic templates
Showthread - add:
Code:
<script type="text/javascript">
<!--
var autoposturl_newclass = '{$sanitized_class}';
var autoposturl_bbname = '{$sanitized_bbname}';
//-->
</script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/auto_post_url.js?ver=1"></script>

to the <head> section of the showthread template

Note 1: the class specified in the setting needs to be manually added to global.css or an other stylesheet that covers showthread, e.g.:
Code:
.autoposturl
{
background-color: #CFC;
}

Note 2: changing the URL may not work in older browsers, you can replace the commented code in jscripts/auto_post_url.js with history.js or anything similar if you need support for them


Download

Users browsing this thread: 1 Guest(s)