![]() |
Doublepost = Not counted in user's post count
We all know that sometimes there is a need to post a couple times in a row, whether it be multiple attachments, posting updates, etc. This hack will make it so that the double/triple/whatever post is not added to the user's post count, but still shown and updated in the forum and thread count. I kow at some boards there is a lot of competition in post counts, and although doubleposting is not looked highly upon in most forums, this would ensure that the user isn't getting any benefit out of it. Plus people could use it for bumping topics, etc, etc, etc. This hack will also make it so if that doublepost is deleted, it will not subtract from the user's postcount. Since it was never added in the first place, it shouldn't be a problem ;).
--------------------------------------------------------------------- NOTE: I did use (with permission) the query and if statement from Xenon's Prevent Doubleposting hack. --------------------------------------------------------------------- This is a simple hack which only involves 2 file edits (editpost.php and newreply.php). And it does work with the QRB =P. If you have any questions, etc, post them here. DOESN'T WORK. |
Nice and v.usefull hack, I think I'll have to install this one ;)
|
i like this.
/me clicks install |
Aw dangit. Everyone who has installed, please uninstall. It's not counting posts at all for some reason. Let me figure out what's wrong.
|
Grrr...this doesn't work. Guess I didn't fully test it. Mods either delete this or move it to Help Me Finish.
Sorry guys... |
1 Attachment(s)
Ok, here's what I had. If someone could point out to me why no posts were being added or deleted, even if it wasn't a double post, that'd be great.
|
as i told ya in my pm your part of editpost.php is wrong:
PHP Code:
you must use a query one post before: PHP Code:
|
Ok thanks. But it's not adding any posts either...
|
Austin Dea for the newreply.php fiasco why don't instead of all the other coding (i could be wrong)
just find: PHP Code:
PHP Code:
g-force2k2 |
that's because you also have to use dateline, and so on to see if it's really a double post (meant as spam) or just a post after 5 days...
|
So, Then, is this the whole code that will make the hack work right?
Code:
Doublepost = Not counted Hack |
i won't use it now boofo, it's not really tested...
i can think of two more bugs in it i try to found out now ;) |
ok this is one of another bug in editpost.php, i post just the correct code ;):
PHP Code:
ok i think with this editpost.php should work perfect now... |
Ok, when you have something to test, let me know and I will try it out. :)
|
And the newreply part is ok?
|
you can try the delete function when having a lot of doubleposts ;)
nope, the newreply part is just ok, when you don't use attachments, and regard every doublepost from a user as a real doublepost. (There is no timespan in it that marks a post as real doublepost as it should...) |
Do you mean the newreply part from Austin Deas code or the newpreply part from g-force2k2?
|
I have 2 instances of this code in the editpost.php. Do I replace both of them?
Code:
deletepost($postid,$foruminfo[countposts],$threadinfo[threadid]); |
??
i just have one instance.... i mean g-forces part has this problems, austins didn't work at all as i know ^^ |
Here is the code I have that has 2 instances of it in the editpost.php.
Code:
if ($action=="deletepost") { |
from a quick delete hack i think? ^^
yes replace both ;) |
I think that is the hack. :) Now, that leaves the newreply code. :)
|
Xenon, do I need to add the following to the code that you gave me the other day to turn off Double Posting Prevention for this in the editpost, too?
Code:
!$stopdoublepost || |
Xenon to me any post after another is double posting ;) doesn't matter about the dateline to me... but thats just my opinion...
okay here's another scenario... Run the query :: PHP Code:
find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
g-force2k2 |
O_O....
I had no idea I was so far off >_<... |
boofo: yes i think you have to add this ;)
g-force: what about two posts but every post has an attachment in it? ;) that's why i have so much if-clauses ;) but without attachments it'll work perfect, so at my forums i could use this code :) |
ok, I will need to add what now? I am confused. I need to add the stopdoublepost to the editpost lines (both of them)? And what about newreply.php? Which code do I need to add there? And it will take care of attachment problems? Sorry to sound so stupid on this one but I want to make SURE I have it right. (After all, we both know what happens when I mess up...i.e. the time thing yesterday?) :)
|
add the stopdoublepost everywhere...
no the modification from g-force won't take care of attachments... or let's say also two posts just with different attachments are called doublepost for him, so yes it'll work ;) |
Ok, so is there a way around the attachment issue in Double posting? Maybe have it so it won't allow attachments when it double posts or something? Should I use his code for the newreply then or do we still need anything in the newreply file?
|
I tried g-force's thing and when I submit a rpely in the qrb is says something about an uncdefined funtion iif(), but then when I refresh or go back and do it again it works...
|
you can use it, but it's not perfect ;)
or as g-force said: not perfect in MY opinion ;) |
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.
|
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:
|
yes it'll work
no you don'T NEED some extra changes to newreply.php after using g-forces ;) |
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.
|
then you should take out the attachement conditions from my editpost.php part ;)
|
Why would this not work?
PHP Code:
|
g-force2k2, this is the line I have in my newreply.php that I need to replace.
Code:
".iif ($foruminfo[countposts], incrementposts($bbuserinfo['userid']), '')." Code:
// doublepost = no count hack |
it would work, but iif looks better ;)
|
Quote:
|
All times are GMT. The time now is 02:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|