I am having an awful lot of trouble trying to work out addon forumhome hack which is downloaded from here -
https://vborg.vbsupport.ru/showthrea...06#post201406.
I have done exactly as the instructions have stated but nothing has changed on my homepage.
I noticed that others have had this problem,
First -
https://vborg.vbsupport.ru/showthrea...821#post213821
Now the solution mentioned here is something about changing
PHP Code:
al("\$vbstats = \"".gettemplate('vbstats_forumhome')."\";");
Something about the 'external' name of this 'bit' was actually $vbstats and not $vbstats_forumhome as I tried to insert before into forumhome template
I tryed changing the above code to
PHP Code:
eval("\$vbstats = \"".gettemplate('$vbstats')."\";");
Still nothing changed on my forum homepage.
So i began my search again and i found this,
Second -
https://vborg.vbsupport.ru/showthrea...465#post232465
Bane mentioned something about adding $vbstats in the forumhome template?
I really dont understand....
Could someone help me.... id really really appreciated it, i have spent hours going through the posts 1 by 1 and after about 60 and racking my brain to try to understand the solution i am near to giving up.
Can anyone help ...?
Problem Fixed, for anyone wishing to display the stats on their homepage this is what you do - in clear instructions
1) Goto this post and download the attachment ( addon forumhome.zip ) -
https://vborg.vbsupport.ru/showthrea...06#post201406.
2) Inside the instructions, you must add some code to your index.php file. Add the code and now search for - // Today [FireFly]
Just after that code insert
PHP Code:
$tltoday=time()-(86400);
( if you dont, it means your 24 stats on your homepage wont work properly.
3) Follow the instructions in the attachment and make the template vbstats_forumhome with the code provided.
4) Now here comes the confusing part - it also was not mentioned in the instructions - Find the template forumhome ( under the Forum Home Page Templates catagory ) . At this point it is important to point out that forumhome is
NOT the same template as the one you just made in the instructions.
5) In the forumhome template add $vbstats where you want your stats to appear on your forum homepage. For people not familiar with php code, some good advice is to find $birthdaybits and add $vbstats below this.
6) Now go to your forum and you can see how the stats have been added. Even for people that do not know php code, you should be able to work out how to change where the stats appear by going back to the forumhome template and changing the location of $vbstats
7) Be pleased you did not spent 20 hours plus working this out like i did

gre: