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)

Boofo 08-23-2002 08:46 PM

Increments is for the hack that allows you to make a users post count go backwards instead of forward. :)

Quote:

Originally posted by Austin Dea


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


Austin Dea 08-23-2002 09:07 PM

Ok, I have it now. If you use g-force's first edit to newreply.php (post#9) and Xenon's editpost.php edit (post#13) it works perfectly. Thanks again guys. I really learned a lot from this whole 'fiasco' as g-force put it. I'll put this in Full release, but all the credit totally goes to you g-force2k2 and you Xenon.

Boofo 08-23-2002 09:10 PM

It works perfect for me without adding the code for the newreply.php. :)

Quote:

Originally posted by Austin Dea
Ok, I have it now. If you use g-force's first edit to newreply.php (post#9) and Xenon's editpost.php edit (post#13) it works perfectly. Thanks again guys. I really learned a lot from this whole 'fiasco' as g-force put it. I'll put this in Full release, but all the credit totally goes to you g-force2k2 and you Xenon.

Austin Dea 08-23-2002 09:20 PM

But wouldn't that keep adding the posts?

Also, I don't understand what the attachment problem is. :confused:

Boofo 08-23-2002 09:26 PM

It didn't when I did a bunch of double posts. It only added 1 post count for the first one and no more for any double posts after that. And when I deleted them all it only took the post count down by 1. It has me curious, too. :) But isn't a double post basically just editing the message that is already there?

The attachment thing, I have no idea what Xenon means with that. But if he brought it up, then it must mean something, somewhere. :)

Quote:

Originally posted by Austin Dea
But wouldn't that keep adding the posts?

Also, I don't understand what the attachment problem is. :confused:


Austin Dea 08-23-2002 09:29 PM

I think you guys are thinking of doublepost to literally. I just mean multiple posts in a row in a thread by the same user.

Austin Dea 08-23-2002 09:33 PM

Ok, I tried it with just the editpost.php edit and it kept raising my post count =P. What was odd though was that if I typed the exact same message and hit submit, it would go to the redirect thing, but the post wasn't there...o_O

Austin Dea 08-23-2002 09:57 PM

Ok, here's are my instrucs. I edited your chunk Xenon since I thought the time didn't matter and you said to make attachments work (although I never saw what was wrong with them) to take that part out.

In newreply.php find:
PHP Code:

".iif ($foruminfo[countposts],"posts=posts+1,","")." 

Reaplce it with (code by g-force2k2)
PHP Code:

".iif ($foruminfo[countposts],"posts=posts+'".iif($threadinfo[lastposter] == "$bbuserinfo[username]",'0','1')."',","")." 

In editpost.php, find:
PHP Code:

deletepost($postid,$foruminfo[countposts],$threadinfo[threadid]); 

Raplce it with (code by Xenon):
PHP Code:

// doublepost = no count hack
      
$lastpost $DB_site->query_first("SELECT userid,postid FROM post WHERE threadid = '$threadid' AND postid<$postid ORDER BY postid DESC LIMIT 1");
      if (
$lastpost[userid]!=$bbuserinfo[userid]) {
          
deletepost($postid,$foruminfo[countposts],$threadinfo[threadid]);
      } else {
          
deletepost($postid,$countposts=0,$threadinfo[threadid]);
             }
// end doublepost = no count hack 

Works perfectly =P.

Boofo 08-23-2002 10:40 PM

I am going by the meaning of double Posting like Xenon meant in his hack. I have it set to one hour right now but it can be adjusted. I also have an addon that will turn double posting prevention off altogether (for testing purposes or what not). This is all I want this hack for. The rest of the time, it really doesn't matter. The spamming is what I want to avoid. So, you do it for ALL double posts and I will try to come up with something to compliment Xenon's hack. :)

Austin Dea 08-23-2002 11:20 PM

Ok. My original intention was just to have it so multiple posts by the same person would not effect their postcount.

Again I'd like to say thanks to Xenon and g-force2k2, and you guys get full credit for the hack :).

Xenon 08-24-2002 12:14 AM

you know we like to help ;)

and to explain what i meant with attachment problem:
in my doublepost hack, if a user posts two posts in row and both contains attachments then the posts wouldn't be merged as it would be when none of the posts has an attachment ;)
it was never a problem, i just mentioned, because at first you used my codeline and have also included the attachment stop. ;)

Boofo 08-24-2002 12:20 AM

How do we get thos to work with your Prevent Double Post hack? What code do we use for that?

Quote:

Originally posted by Xenon
you know we like to help ;)

and to explain what i meant with attachment problem:
in my doublepost hack, if a user posts two posts in row and both contains attachments then the posts wouldn't be merged as it would be when none of the posts has an attachment ;)
it was never a problem, i just mentioned, because at first you used my codeline and have also included the attachment stop. ;)


g-force2k2 08-24-2002 01:27 AM

O_o damn i missed alot :P lol

anways Boofo i think that would require multiple attachments per post and im not sure on that one ;)

g-force2k2

Boofo 08-24-2002 02:03 AM

I guess all I really want to know is exactly what code I need to work with Xenon's Double post hack. :) I am totally confused now. :)

Quote:

Originally posted by g-force2k2
O_o damn i missed alot :P lol

anways Boofo i think that would require multiple attachments per post and im not sure on that one ;)

g-force2k2


g-force2k2 08-24-2002 02:09 AM

Boofo i think you're just suppose to use the coding that his hack includes... the only thing about his hack as that if there's multiple attachments it will disregard of one i believe... or at least thats what i got from what he said ;)

g-force2k2

Boofo 08-24-2002 02:13 AM

I know, but his hack didn't include the not counting posts I don't think, did it? :)

Quote:

Originally posted by g-force2k2
Boofo i think you're just suppose to use the coding that his hack includes... the only thing about his hack as that if there's multiple attachments it will disregard of one i believe... or at least thats what i got from what he said ;)

g-force2k2


g-force2k2 08-24-2002 02:44 AM

no Boofo it didn't... but instead Xenon's hack merged the posts so infact a double post would never exist... but not sure if he used a time limit in his hack?

g-force2k2

Boofo 08-24-2002 02:46 AM

Ok, well, I guess I don't really need this one then. :) You can set the time limit for stopping double posts with his hack.

Quote:

Originally posted by g-force2k2
no Boofo it didn't... but instead Xenon's hack merged the posts so infact a double post would never exist... but not sure if he used a time limit in his hack?

g-force2k2


Xenon 08-24-2002 11:18 AM

correct, this two hacks can hardly be used together ;)
it depends on every admins opinion which one he likes more...

Boofo 08-24-2002 12:19 PM

Sorry, Stefan, I didn't realize that your hack didn't add postcounts to Double Posts. I don't understand enough of this php stuff yet to sypher it all out. Sorry for making you have to put up with my nonsense. :)

Quote:

Originally posted by Xenon
correct, this two hacks can hardly be used together ;)
it depends on every admins opinion which one he likes more...


Xenon 08-24-2002 12:24 PM

no problem, as long as we could solve it before i'm away it's no problem ;)

the two differences in this hacks:
My Hack prevents doubleposting so you can just have one post in a row (except attachments or time...) so postcounter just gets up one time
Austins Hack allows double posting, but it's not counted to the postcount so doubleposting to increase post counts (called spamming ;)) isn't possible ;)

Boofo 08-24-2002 12:35 PM

Spamming isn't possible with yours during the preset time, though, right? BTW: What is the maximum limit on time for your hack? How far into the future can it be set? Might not be a bad idea to have a permanent time option for it, too. :)

Quote:

Originally posted by Xenon
no problem, as long as we could solve it before i'm away it's no problem ;)

the two differences in this hacks:
My Hack prevents doubleposting so you can just have one post in a row (except attachments or time...) so postcounter just gets up one time
Austins Hack allows double posting, but it's not counted to the postcount so doubleposting to increase post counts (called spamming ;)) isn't possible ;)


Xenon 08-24-2002 12:39 PM

the maximum timeperiod of my hack is also the maximum of unix-timestamp, so it was Year 2037 wasn't it?

if you set it up to that time, spamming isn't possible anymore ;)
just if they use attachments or they are building spam teams ;)


All times are GMT. The time now is 01:16 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.01373 seconds
  • Memory Usage 1,786KB
  • 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_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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