PDA

View Full Version : Prevent Post More Than 1 post in thread before X posts


Developer
03-12-2006, 10:00 PM
Prevent Post More Than 1 post in thread before X posts
Initial
Description::.
This hack prevent users(not moderators or admin)from posting More Than 1 post in thread before X posts(this hack is very useful if u r using Can't Use Private Messages Before X posts OR Can't Download Attachment Before X posts)
Hack Features::.
1-easy yo install
[See Screen Shots]
Installation::.
1-Import The product.
2.Click install
History::.
1.0.0 On 13. Mar 2006 Initial Version.
1.0.2 On 13. Mar 2006 fix the code and added feature to allow to thread starter to post with out getting the error message.
Hack Languages::.

English

Details::.
1 plugin, 3 phrases, 0 templates, 0 option, 1 query[reading]
Donation::.
Feel Free To https://vborg.vbsupport.ru/external/2010/09/1.gif (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=filmahosting%40gmail%2ecom&item_name=DEVELOPER&item_number=1&no_shipping=0&no_note=1&tax=0&currency_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8)
aT lAsT::.
IF YOu lIkE iT cLIcK INSTALL
vbulletin.orghttps://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=110228)
[B]Support Given For Who Clicked Install {ONLY}

Trigunflame
03-13-2006, 10:07 AM
Couldnt this be done just using template conditionals in quick reply & newpost? Your product xml isnt attached :)

Developer
03-13-2006, 10:12 AM
Couldnt this be done just using template conditionals in quick reply & newpost? Your product xml isnt attached :)
mmm i don't think so :surprised:
_______________
attached.

Trigunflame
03-13-2006, 10:13 AM
mmm i don't think so :surprised:
_______________
attached.

O.. i have nothing to do -__-, i'll play around with it and see.. brb.

Developer
03-13-2006, 10:14 AM
O.. i have nothing to do -__-, i'll play around with it and see.. brb.
TyT
and let me now the final result:)

Trigunflame
03-13-2006, 11:15 AM
Currently your plugin code doesnt check the $useridpost nor use the right logic operator resulting in not letting anyone post if their Global post count is below the option; regardless if they have posted in the specified thread or not.

Here, replace your plugin code in the XML file with this.

//Developer
//edited by trigunflame
$useridpost = $db->query_first("SELECT userid from " . TABLE_PREFIX . "post where threadid = '" . $threadinfo['threadid'] . "' AND userid=" . $vbulletin->userinfo['userid']);
if($vbulletin->userinfo['posts'] < $vbulletin->options['oldpt_po'] && $vbulletin->userinfo['userid'] == $useridpost['userid'] && can_moderate($forumid, 'canremoveposts') == false)
{
standard_error(fetch_error('oldpt_error', $vbulletin->options['oldpt_po']));
}
//Developer

Developer
03-13-2006, 12:27 PM
Currently your plugin code doesnt check the $useridpost nor use the right logic operator resulting in not letting anyone post if their Global post count is below the option; regardless if they have posted in the specified thread or not.

Here, replace your plugin code in the XML file with this.

//Developer
//edited by trigunflame
$useridpost = $db->query_first("SELECT userid from " . TABLE_PREFIX . "post where threadid = '" . $threadinfo['threadid'] . "' AND userid=" . $vbulletin->userinfo['userid'] . "");
if($vbulletin->userinfo['posts'] < $vbulletin->options['oldpt_po'] && $vbulletin->userinfo['userid'] == $useridpost['userid'] && can_moderate($forumid, 'canremoveposts') == false)
{
standard_error(fetch_error('oldpt_error', $vbulletin->options['oldpt_po']));
}
//Developer
ooops this is the testing XML :confused:
anyway fixed and thnx 4u

PabloAM
03-13-2006, 12:38 PM
:s Not Product For Download??? :s

PabloAM
03-13-2006, 01:09 PM
ERROR :

XML Error: not well-formed (invalid token) at Line 24


:(:(:confused:

Developer
03-13-2006, 01:28 PM
try it now

PabloAM
03-13-2006, 01:39 PM
try it now
THX ;):banana:

behes
03-13-2006, 07:15 PM
thnks Developer

hiiped
03-13-2006, 10:46 PM
excellent idea

stops spammers ;)

< installs >