vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Doublepost = Not counted in user's post count (https://vborg.vbsupport.ru/showthread.php?t=42611)

Xenon 08-23-2002 06:18 PM

you can use it, but it's not perfect ;)
or as g-force said: not perfect in MY opinion ;)

Austin Dea 08-23-2002 06:19 PM

I don't think dates and stuff should matter. By double posting, I mean just that someone has two posts in a row. Not they clicked the link twice or whatever.

Boofo 08-23-2002 06:27 PM

Ok, but do I need it? Do I need anything in the newreply.php? Will the hack work ok for the count without it? I think I have a way of taking care of the attachment problem. I just won't allow you to add an attachment if it is a double post. Will that work?

Quote:

Originally posted by Xenon
you can use it, but it's not perfect ;)
or as g-force said: not perfect in MY opinion ;)


Xenon 08-23-2002 06:32 PM

yes it'll work
no you don'T NEED some extra changes to newreply.php after using g-forces ;)

Austin Dea 08-23-2002 06:39 PM

Well, part of the point of this hack was to make it so people could do multiple attachments, only without adding onto their post count.

Xenon 08-23-2002 06:45 PM

then you should take out the attachement conditions from my editpost.php part ;)

Austin Dea 08-23-2002 06:45 PM

Why would this not work?

PHP Code:

        $postcounted="";
            if (
$threadinfo[lastposterid]!=$bbuserinfo[userid]) {
                
$postcounted="1";
            } else {
                
$postcounted="0";
            }
          
$DB_site->query("UPDATE user SET
          "
.iif ($foruminfo[countposts],"posts=posts+$postcounted,","")."
          
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'"); 

Instead of the iif()'s g-force had.

Boofo 08-23-2002 06:47 PM

g-force2k2, this is the line I have in my newreply.php that I need to replace.

Code:

".iif ($foruminfo[countposts], incrementposts($bbuserinfo['userid']), '')."
How do I replace it with the following?

Code:

// doublepost = no count hack
".iif ($foruminfo[countposts],"posts=posts+'".iif($threadinfo[lastposter] == "$bbuserinfo[username]",'0','1')."',","")."
// end doublepost = nocount hack


Xenon 08-23-2002 06:48 PM

it would work, but iif looks better ;)

Austin Dea 08-23-2002 08:42 PM

Quote:

Originally posted by Boofo
g-force2k2, this is the line I have in my newreply.php that I need to replace.

Code:

".iif ($foruminfo[countposts], incrementposts($bbuserinfo['userid']), '')."
How do I replace it with the following?

Code:

// doublepost = no count hack
".iif ($foruminfo[countposts],"posts=posts+'".iif($threadinfo[lastposter] == "$bbuserinfo[username]",'0','1')."',","")."
// end doublepost = nocount hack


Is incrementposts() a functions in your functions.php? If so, you'd need to edit that function...


All times are GMT. The time now is 05:42 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.01269 seconds
  • Memory Usage 1,744KB
  • 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)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
  • (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