PDA

View Full Version : Can somebody convert this hack to be used with 2.0.3? please.


Gutspiller
01-29-2002, 05:41 PM
https://vborg.vbsupport.ru/showthread.php?s=&threadid=1029&highlight=favorite

It's a favorite forum hack. I ran into problems when the instructions were telling me to edit the index.php.

When it says to search for a certain line, that line doesn't exist. I think a lot of it, is it just needs to be run through and found out where the code is suppose to be placed and make sure that place is in a 2.0.3 index.php

Can somebody help me?

If this shoulda been posted in the request forum, then please move it. I wasn't sure since it's not a request for a full hack. :confused:

Anybody that can help me with this hack i would greatly appreciate it. This hack would serve my forum well. :up:

Lesane
01-30-2002, 09:02 AM
Wich line in index.php doesnt exist?

Gutspiller
01-30-2002, 02:40 PM
Originally posted by Lesane
Wich line in index.php doesnt exist?



$categorys=$DB_site->query("SELECT categoryid,title,displayorder FROM category WHERE displayorder<>0 ORDER BY displayorder");





if ($getperms[canview]==1) {





} // if can view
} // while forums



Those are all the places in the instructions that are in the index.php and of course, my index.php has none of them. :(

Can somebody please help.

Lesane
01-30-2002, 02:56 PM
Do you have 2 replace the lines or do you have 2 add some code above or under the lines?

The only similiar code that i can find is:

Line 161:

$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder');

Line 239:

if (!$forumperms['canview']) {
or
Line 236: :)
$forumperms['canview']=1;

Line 303:

}// END if can view

Gutspiller
01-30-2002, 04:20 PM
I don't have the top and the last line that you said are the closest thing you have. :( Looks like I am going to need somebody to really write this hack over.

Anybody out there up to the task to rewriting this hack to make it 2.0.3 compliant? :(