The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Number Change Help
I previously ran a ProBoards forum and unfortunately discovered that there is no ProBoards to vBulletin converter. Of course I am much happier with vBulleting but I am hoping it is possible to do the following.
My ProBoards forum had over 60, 000 threads and over 700,000 posts. Is it possible to reflect these numbers in my newly created forum? Basically I would like to change the Threads: Posts: number so it starts off at 60,000 and 700,000. (as well as the global statistics at the bottom of the site) Is this possible? And how do I go about doing it Thanks the1rabbits |
#2
|
||||
|
||||
Unfortuntely, the totalthreads and totalposts variable has been formatted by the time you get to the forumhome_complete hook, so you would have to actually edit these lines to add it in in the forum.php file:
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
Thanks for your response Lynne
Sorry though I am not an advanced user when it comes to PHP coding so I will need a bit of extra help. I would like to add those respective amount to one particular sub forum and the total statistics at the bottom of the page. With what you have suggested above does that fix both of what I am looking to do. Thanks Lynne |
#4
|
||||
|
||||
The above code only fixes it for the total on the bottom of the forum.php page. If you need to add to the total for a specific forum, you can try a plugin (look in the manual if you need help) using the hook location "forumbit_display" and this code (change x to your forumid):
PHP Code:
|
#5
|
|||
|
|||
So would this be correct if I were to re-upload my forum.php like this:
PHP Code:
|
#6
|
||||
|
||||
Yes, I think that code looks correct. Upload it to your test site first if you are not sure - that is what they are for.
As for the plugin code, here is the section in the manual about plugins - Plugin System |
#7
|
|||
|
|||
Quote:
Just a quick question on the plugin... Does it matter what number I place in the 'Execution Order' field? |
#8
|
||||
|
||||
You need to create a test site. There are instructions in the Home tab over on vbulletin.com on how to create one. You don't *need* one, but I would certainly never run a site without one. I always test any modifications on my test site first.
Just leave the execution order alone. Usually it doesn't matter. It only matters if you have another plugins running that uses the same hook location and they are not playing nice with each other unless you run one before the other. |
#9
|
|||
|
|||
Thank you very much Lynne. I'll set up my test site soon
If I have any more questions I will be sure to come back and post here. Thankyou --------------- Added [DATE]1302838155[/DATE] at [TIME]1302838155[/TIME] --------------- Thank you Lynne I have set up my test site and successfully implemented the changes there. I then implemented them on my LIVE site and all is good. Thank you for your assistance |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|