![]() |
Nobody can help me with the last bit? :)
|
Create a new plugin:
Product: vBulletin Hook Location: forumhome_complete Name: Restore ForumHome Stats Execution Order: 5 Plugin PHP Code: Code:
function stripcomma($string){ Code:
$num_deleted_threads =10000; |
Hi Dartho,
Thanks for your help. I followed your instructions and set the following, which were the stats for our forum prior to the board cleanup... Quote:
|
no commas!
BTW - don't put in the totals, put in teh number you deleted. eg. if now (after the clean up) you have 5000 threads and previously you had 25627, then $num_deleted_threads=20627; etc ... |
Quote:
I'll give it a shot now and see how I go, thanks again :) ETA: Ok, I altered the amounts to reflect the deletions: Quote:
|
1 Attachment(s)
I tested on my live site - let me just check that I haven't missed a vital point...
[Edit] Tested and working on my site... I exported teh plugin so it is definately identical - try uploading the attached (disable/delete the one you created manually first) |
Ok I just worked out whats going on :D The default display for our forum stats (ie. at the foot of the forum) is right ie. the plugin is working correctly :) Its the VBAdvanced forum stats box in the left side column thats still wrong :rolleyes:
I don't suppose there is an easy fix to get it working for that too? :) Its not a huge issue if not, I am grateful for your help regardless Dartho :) Just means I'll have to either edit/remove that box, since its not the same! Let me know :) |
You could create another plugin with the same code and put it on
Product: vBadvanved CMPS Hook Location: vba_cmps_module_stats (vbacmps) Title: vBadvanced Stats |
Got it :D Its all fixed!!!
Thank you so much for all your help!!! I really appreciate it :) Our forum is nice and tidy now - and taking up a lot less database space :) Cheers :D ETA: Bugger, spoke too soon... the VBA stats work on all forum pages except for the index page - which goes blank when this plugin is active :S |
All times are GMT. The time now is 08:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|