Quote:
Originally posted by wajones
Thought I'd share this, a few of my users wanted to include tubedogg's last10 hack on a vbulletin page and this is what I came up with...
In a copy of the last10.php script comment out or delete the following
require("$path/config.php");
$db=mysql_connect($servername,$dbusername,$dbpassw ord) or die("Can't open connection to MySQL");
mysql_select_db($dbname) or die("Can't select database");
now add this to the phpinclude template
ob_start();
include_once("./last10.php");
$last10 = ob_get_contents();
ob_end_clean();
Then I was able to add $last10 into any vbulletin template to display the last10 table. Saved a lot of work trying to create templates and changing his code, plus if he changes it, it's simple to upgrade.
|
I tried this and when I put the $last10 in my forum header it limited the number of threads to show on a normal forum page to 10. How can I get it to show 10 in the $last10, but not limit the number of threads shown in a forum??
Please help.