Quote:
Originally Posted by dartho
It will require adding a plugin. Edit the following code and change the "XX" for the styleid number of your mobile style and also change teh maxposts and maxthreads values to what you need, copy and save it as a file called maxposts-plugin.xml and then import the plugin in your AdminCP "Plugins & Products", Download / Upload Plugins" GO to the end of the page and browse for the file you just saved then click Import.
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<plugins>
<plugin active="1" executionorder="5" product="vbulletin">
<title>Set Max Posts per Thread</title>
<hookname>style_fetch</hookname>
<phpcode><![CDATA[if ($styleid == xx){
$vbulletin->options['maxposts'] = 5;
$vbulletin->options['maxthreads'] = 5;
}]]></phpcode>
</plugin>
</plugins>
I've also attached the plugin file so you can save and then edit.
Thanks to Kirk Y for the help.
|
Great job, simple and working. From BAD I could have FAIR for all my pages even having the HEAVY unicode character set like Armenian.
I would suggest you to releas this as a mod "Limiting Number of threads and posts per Stlye"