vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Can somebody convert this hack to be used with 2.0.3? please. (https://vborg.vbsupport.ru/showthread.php?t=34600)

Gutspiller 01-29-2002 05:41 PM

https://vborg.vbsupport.ru/showthrea...light=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

Quote:

Originally posted by Lesane
Wich line in index.php doesnt exist?
PHP Code:


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

PHP Code:


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

PHP Code:


// 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:

PHP Code:

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

Line 239:

PHP Code:

if (!$forumperms['canview']) { 

or
Line 236: :)
PHP Code:

$forumperms['canview']=1

Line 303:

PHP Code:

}// 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? :(


All times are GMT. The time now is 01:01 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01951 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete