vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Warnings System Hack v2.1 (https://vborg.vbsupport.ru/showthread.php?t=43265)

Chris M 09-07-2002 02:41 PM

Great!:)

*installs*

Satan

LOD-squa 09-07-2002 02:44 PM

Looks good I might upgrade mines.

[D]Vincent 09-07-2002 03:00 PM

I will definately upgrade mine soon ^^

BTW just wondering but they have to write something down in the comment box right? because I liked that.

g-force2k2 09-07-2002 03:02 PM

[D]Vincent no they don't have to... but it'll just put No Comment in place then... if you want comments to exist i'll show you how to do it... but you do have the reason that is set and the post to view... regards...

g-force2k2

Okiewan 09-07-2002 03:03 PM

This has got to be one of the most useful hacks I've seen! Thanks for the effort!

I installed the first version, everything worked well. Trying to up grade, I'm having difficulty with changing functions.php.

Instructions say:
Code:

find: (1)

unset($templatecache);

under it add:

require('warnconfig.php');

I'm using an older version, that line does not exist. This is what I found that comes close:
Code:

  // cache templates
  while ($temp=$DB_site->fetch_array($temps)) {
    $templatecache["$temp[title]"]=$temp['template'];
  }
  unset($temp);
  $DB_site->free_result($temps);

}

Any suggestions where to insert the require line?

Thanks in advance!

g-force2k2 09-07-2002 03:07 PM

you're correct Okiewan thats not a change its a new line included so you don't have to make any changes from the installation_txt.php ... should be like the tenth line of the admin/functions.php (its very close to the top) regards...

g-force2k2

Kmaster 09-07-2002 03:17 PM

version 2~~looks more perfect, You'd a good job, thanks for your shared

regards,

KISS 09-07-2002 03:18 PM

thanks upgraded with no problems

Chris M 09-07-2002 03:25 PM

Works like a charm:)

Im just testing the points thingy out...

http://www.darkblazes.com/forums/warn.php

Satan

Okiewan 09-07-2002 03:26 PM

I'm sorry I don't understand your reply???
I need to insert
Code:

require('warnconfig.php');
in the functions file, but per the upgrade instructions, I can't find
Code:

unset($templatecache);
is that more clear?


All times are GMT. The time now is 09:50 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.01491 seconds
  • Memory Usage 1,734KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete