flasher33
10-04-2009, 10:03 PM
Hi there I always like to use custom styles and many times i get hacked (forumhome) template get changed by the hacker.
I have found this thread that gives an Idea on how to protect your forumhome template from being changed.
still I have a few questions that I like help with.
ok here goes.
upload the attached text named (forumhome.txt) file to your vb folder
go to your vb folder >> includes>>functions.php
look for // use legacy postbit if necessary
before it add
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ADD BY MGHOOL - A
if ($templatename == 'FORUMHOME' AND @file_exists('FORUMHOME.txt')) {
return @file_get_contents('FORUMHOME.txt');
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ADD BY MGHOOL - V
the good Idea about this is even if your forumhome template is changed the template will be called from the .txt file
this is a good Idea but when applying it some plug-ins stopped working (cyb 24x visitors & statistics ) I tried to delete the content of the forumhome.txt and pasted my forums own forumhome template but with no luck.
is there a way to manage this successfully ?
is yes this would be a grate idea to protect my forumhome template from being changed.
Note: thanx to Majhool he's the one qho came up with this idea.
quoted from here (http://www.3hood.org/t-96353.html)
I have found this thread that gives an Idea on how to protect your forumhome template from being changed.
still I have a few questions that I like help with.
ok here goes.
upload the attached text named (forumhome.txt) file to your vb folder
go to your vb folder >> includes>>functions.php
look for // use legacy postbit if necessary
before it add
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ADD BY MGHOOL - A
if ($templatename == 'FORUMHOME' AND @file_exists('FORUMHOME.txt')) {
return @file_get_contents('FORUMHOME.txt');
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ADD BY MGHOOL - V
the good Idea about this is even if your forumhome template is changed the template will be called from the .txt file
this is a good Idea but when applying it some plug-ins stopped working (cyb 24x visitors & statistics ) I tried to delete the content of the forumhome.txt and pasted my forums own forumhome template but with no luck.
is there a way to manage this successfully ?
is yes this would be a grate idea to protect my forumhome template from being changed.
Note: thanx to Majhool he's the one qho came up with this idea.
quoted from here (http://www.3hood.org/t-96353.html)