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)
-   -   Post Quality Points System! [megahack] (https://vborg.vbsupport.ru/showthread.php?t=48991)

MartynJ 02-25-2003 06:27 PM

If it helps, this is the part of the instruction file that I am having probs with (been trhough it twice now and no change)

PHP Code:

<--------------------------------------------------------------------------------------------------------->
Find:
<--------------------------------------------------------------------------------------------------------->

  
if ($ctEnable == and $customtext) {// Custom Titles are ON, Make sure user can actually use them and isn't trying to manipulate them through forms
     
$ctShowTitle 0;
     if (
ismoderator() and $ctAdmin == 1) {// Allow mods to use titles no matter what
        
$ctShowTitle 1;
     } else {
        if (
$ctEitherOr==0)  {// Allow titles if Posts are ok OR JoinDate is ok
           
if ( ($bbuserinfo[posts] >= $ctPosts) or ( ($bbuserinfo[joindate] <= (time()-($ctDays*86400))) or ($ctDays==0)) ) {
              
$ctShowTitle 1;
           }
<--------------------------------------------------------------------------------------------------------->
Replace it with:
<--------------------------------------------------------------------------------------------------------->

  
if ($ctEnable == and $customtext) {// Custom Titles are ON, Make sure user can actually use them and isn't trying to manipulate them through forms
     
$ctShowTitle 0;
     if (
$qpct == and $ctEnable == and ($bbuserinfo[qualitypoints] >= $minqpct) ) {
        
$ctShowTitle 1;
       } elseif (
ismoderator() and $ctAdmin == 1) {// Allow mods to use titles no matter what
        
$ctShowTitle 1;
     } else {
        if (
$ctEitherOr==0)  {// Allow titles if Posts are ok OR JoinDate is ok
           
if ( ($bbuserinfo[posts] >= $ctPosts) or ( ($bbuserinfo[joindate] <= (time()-($ctDays*86400))) or ($ctDays==0)) ) {
              
$ctShowTitle 1;
           } 


MartynJ 02-25-2003 06:33 PM

Found out what it was, sorry, my fault, I had copied and pasted wrong.

Vivi Ornitier 02-26-2003 04:33 PM

nice

Sun Boy 03-01-2003 04:14 PM

Nice work

But, waht's about the quick reply box ? :)

N9ne 03-01-2003 04:44 PM

I think it works with that automatically as QRB uses newreply.php...

Lord Man 03-01-2003 04:45 PM

ERORR! :(

You have an error in your SQL syntax near 'INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,op' at line 2

N9ne 03-01-2003 05:22 PM

Which file is that? forum.php in the admin folder? Make sure you followed the instructions very carefully and make sure that you entered the code in the right places.

Lord Man 03-02-2003 10:56 AM

in phpmyadmin

when i insert the sql queries :(

N9ne 03-02-2003 12:01 PM

Insert each one separately.

007 03-07-2003 07:30 PM

That store integration idea didn't work... I would think it would but I don't know why it didn't. :(


All times are GMT. The time now is 12:17 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.01027 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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