The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Nobody can help me with the last bit?
|
#12
|
|||
|
|||
Create a new plugin:
Product: vBulletin Hook Location: forumhome_complete Name: Restore ForumHome Stats Execution Order: 5 Plugin PHP Code: Code:
function stripcomma($string){ $string = str_replace(',', '', $string); return $string; } /* Enter in the figures you need to. Suggest you make notes too for your own future reference Deleted 10,000 users, threads and posts on December 23 2008 added back in here */ $num_deleted_threads =10000; $num_deleted_posts=10000; $num_deleted_users=10000; $totalthreads=vb_number_format(stripcomma($totalthreads)+$num_deleted_threads); $totalposts=vb_number_format(stripcomma($totalposts)+$num_deleted_posts); $numbermembers=vb_number_format(stripcomma($numbermembers)+$num_deleted_users); Code:
$num_deleted_threads =10000; $num_deleted_posts=10000; $num_deleted_users=10000; |
#13
|
||||
|
||||
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:
|
#14
|
|||
|
|||
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 ... |
#15
|
||||
|
||||
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:
|
#16
|
|||
|
|||
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) |
#17
|
||||
|
||||
Ok I just worked out whats going on 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
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 |
#18
|
|||
|
|||
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 |
#19
|
||||
|
||||
Got it 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 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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|