vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Something simple that would help me greatly (https://vborg.vbsupport.ru/showthread.php?t=188254)

AmandaB 08-15-2008 08:47 PM

Something simple that would help me greatly
 
I've posted a few times and no one has a good answer. I need to change minimum posts per day day THREADs per day. I just need to do this for my arcade as people are coming on and giving a few half-hearted posts to play in the arcade all day. If I can change this to threads atleast I will be generating new material.

Does one know how to do this? The last thing I want to do is go into the php and mess up a variable.

MrZeropage 08-20-2008 08:20 PM

please try this:


open /arcade/modules/mod_arcade.php

search for
Code:

        if( $this->user['ppd_require'] )
        {
        $posts_today_time = mktime(0,0,0,date("m"),date("d"),date("Y"));
            $DB->query("SELECT COUNT(postid) AS amount FROM ibf_post WHERE dateline>".$posts_today_time." AND userid=".$this->user['id']);
            $posts_today = $DB->fetch_row();
            $this->user['posts_today'] = $posts_today['amount'];
        }

replace with

Code:

        if( $this->user['ppd_require'] )
        {
        $posts_today_time = mktime(0,0,0,date("m"),date("d"),date("Y"));
            $DB->query("SELECT COUNT(threadid) AS amount FROM ibf_thread WHERE dateline>".$posts_today_time." AND postuserid=".$this->user['id']);
            $posts_today = $DB->fetch_row();
            $this->user['posts_today'] = $posts_today['amount'];
        }

Just modified "out of the brain", untested - but I guess this is a good try ;)


All times are GMT. The time now is 02:25 PM.

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.01011 seconds
  • Memory Usage 1,709KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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