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)

Okiewan 09-07-2002 03:28 PM

In addition, the templates were not created because my template set is "12" :( (I created them manually from the install file).

Chris M 09-07-2002 03:32 PM

I just noticed something g-force...

In the postbit template, it says "Warning Level"...Shouldnt it say "Warning Points"?

Satan

Chris M 09-07-2002 03:36 PM

If you want to change "Warning Level:" in the Posbit to "Warning Points:", just edit :

template : warn_seelink
Replace :
Code:

<b>Warning Level:</b> $post[warninglvl]
with:
Code:

<b>Warning Points:</b> $post[warninglvl]
Satan

Brandon 09-07-2002 03:50 PM

I upgraded and now my pages dont load at all, just a white page.

I've gone through and done everything correctly...I'm a little confused :confused:

g-force2k2 09-07-2002 04:00 PM

hellsatan just a matter of preference i guess ;)

Okiewan: can you paste the first twenty lines of admin/functions.php? thanks

BrandonC: what other hacks do you have installed?

g-force2k2

Okiewan 09-07-2002 04:02 PM

Code:

<?php
error_reporting(7);

// start prep shutdown function
$noshutdownfunc = 0; // #CHANGE ME IF YOU CAN'T USE register_shutdown_function
$ourtimenow = time(); // Make this available to all files

// Defined constants used for user field.
// Hope to convert all user fields into one integer.
define ("SHOWSIGNATURES", 1);
define ("SHOWAVATARS", 2);
define ("SHOWIMAGES", 4);
define ("SHOWVBCODE", 8);

// ###################### Start getpagenav #######################
// template-based page splitting system from 3dfrontier.com :)
function getpagenav($results,$address) {
        global $perpage,$pagenumber,$pagenavpages;

        if ($results <= $perpage) {
                return "";
        }

        $totalpages = ceil($results/$perpage);

        if ($pagenumber>1) {
                $prevpage = $pagenumber-1;
                eval("\$prevlink = \"".gettemplate("pagenav_prevlink")."\";");
        }
        if ($pagenumber<$totalpages) {
                $nextpage = $pagenumber+1;
                eval("\$nextlink = \"".gettemplate("pagenav_nextlink")."\";");
        }
        while ($curpage++<$totalpages) {
                if ( ( $curpage <= $pagenumber-$pagenavpages || $curpage >= $pagenumber+$pagenavpages ) &&

$pagenavpages!=0 ) {
                        if ($curpage==1) {
                                eval("\$firstlink = \"".gettemplate("pagenav_firstlink")."\";");
                        }
                    if ($curpage==$totalpages) {
                                eval("\$lastlink = \"".gettemplate("pagenav_lastlink")."\";");
                        }
                } else {
                        if ($curpage==$pagenumber) {
                                eval("\$pagenav .= \"".gettemplate("pagenav_curpage")."\";");
                        } else {
                                eval("\$pagenav .= \"".gettemplate("pagenav_pagelink")."\";");
                        }
                }
        }
        eval("\$pagenav = \"".gettemplate("pagenav")."\";");
        return $pagenav;

}

I'm using 2.21

FFMania 09-07-2002 04:04 PM

Does this version run more queries than the first one? ;)

Chris M 09-07-2002 04:05 PM

@Brandon - This shouldnt cause it to happen...

Perhaps you need to make sure you didnt overwrite any templates?

Satan

Brandon 09-07-2002 04:05 PM

Quote:

Originally posted by g-force2k2
BrandonC: what other hacks do you have installed?

g-force2k2

Oh god this list could go on forever...
[list=a][*][RELEASE v2] Run a SQL query directly from your admin contorl panel[*]Welcome Panel[*]Away Message[*]Blink PM Bar On New PM![*]Users Browsing Forum (like vB.org)[*]Who Downloaded this Attachment?[*]vBStats[*]vBProArcade[*]vBMoods[*]Buddy Messenger v1.1 [*]vbMicroStats: page load time, queries, GZIP and PHP version [/list=a]

Im sure there are more, but I forget to push the install button sometimes. Those were the major ones though...

Quote:

@Brandon - This shouldnt cause it to happen...
Yes, but it didnt do this until I upgraded, thats why I posted it :) ...

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

Okiewan:

find:

PHP Code:

define ("SHOWIMAGES"4);
define ("SHOWVBCODE"8); 

under that add:

PHP Code:

require('warnconfig.php'); 

BrandonC i know it has to do with the require... i will look into it... maybe conficts with the proarcade but im not sure...

FFMania not really no ;) regards...

g-force2k2


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.01394 seconds
  • Memory Usage 1,750KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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