vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Please help me!! >.< (https://vborg.vbsupport.ru/showthread.php?t=49938)

Koutaru 03-11-2003 12:19 AM

Please help me!! >.<
 
I have a pretty active forum but place strict rules over them. However, some members are asking for a "spam forum" The only problem is, I have a "gil" hack from Bitsys's battle hack and I don't want them to gain any points or posts for every post they place in the spam forum...

Can someone help me??
Thanks!! :glasses:

Erwin 03-11-2003 12:22 AM

Just make posts in that forum not count. Then edit the newthread.php and newreply.php files to exclude that forum from gaining points.

Koutaru 03-20-2003 10:03 PM

Sorry for being a newbie but how exactly do I edit newthread.php and new reply.php

The PHP part is this:
PHP Code:

  // Itemshop code by Mewtwo and Battle Code by Bitsys
  
if($foruminfo[countposts]) {
  
$options=$DB_site->query_first("SELECT padd,pointfield,lesanestore FROM items_options");
  if(!
$options[2]) {
    
$pointfield="$options[pointfield]";
    if(
$pointfield) {
      
$points $DB_site->query_first("SELECT $pointfield FROM userfield WHERE userid='$bbuserinfo[userid]'");
      
$DB_site->query("UPDATE userfield SET $pointfield=$points[0]+$options[padd] WHERE userid=$bbuserinfo[userid]");
    }
  }
  
$battleopt $DB_site->query_first("SELECT givepostexp, expperpost FROM battle_options");
  If(
$battleopt[givepostexp] == && $battleopt[expperpost] > 0)
        
$DB_site->query("UPDATE user SET xp=xp+$battleopt[expperpost] WHERE userid='$bbuserinfo[userid]'");
  }
  
// End Itemshop code by Mewtwo and Battle Code by Bitsys 


Xenon 03-20-2003 10:08 PM

the code is correct already:

Code:

if($foruminfo[countposts]) {
so just disable count posts in that forum via your acp and it won't add points to a users postcount also


All times are GMT. The time now is 11:20 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.01609 seconds
  • Memory Usage 1,724KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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