Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Prevent Post More Than 1 post in thread before X posts Details »»
Prevent Post More Than 1 post in thread before X posts
Version: 1.0.2, by Developer Developer is offline
Developer Last Online: Nov 2010 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-12-2006 Last Update: 03-12-2006 Installs: 18
Uses Plugins
 
No support by the author.

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 [by Trigunflame(thnx)] 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
aT lAsT::.
IF YOu lIkE iT cLIcK INSTALL
vbulletin.org

Support Given For Who Clicked Install {ONLY}

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-13-2006, 10:07 AM
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Couldnt this be done just using template conditionals in quick reply & newpost? Your product xml isnt attached
Reply With Quote
  #3  
Old 03-13-2006, 10:12 AM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trigunflame
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.
Reply With Quote
  #4  
Old 03-13-2006, 10:13 AM
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Developer
mmm i don't think so :surprised:
_______________
attached.
O.. i have nothing to do -__-, i'll play around with it and see.. brb.
Reply With Quote
  #5  
Old 03-13-2006, 10:14 AM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trigunflame
O.. i have nothing to do -__-, i'll play around with it and see.. brb.
TyT
and let me now the final result
Reply With Quote
  #6  
Old 03-13-2006, 11:15 AM
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

PHP Code:
//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 
Reply With Quote
  #7  
Old 03-13-2006, 12:27 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trigunflame
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.

PHP Code:
//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
anyway fixed and thnx 4u
Reply With Quote
  #8  
Old 03-13-2006, 12:38 PM
PabloAM PabloAM is offline
 
Join Date: Jan 2006
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:s Not Product For Download??? :s
Reply With Quote
  #9  
Old 03-13-2006, 01:09 PM
PabloAM PabloAM is offline
 
Join Date: Jan 2006
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ERROR :

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


Reply With Quote
  #10  
Old 03-13-2006, 01:28 PM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try it now
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:05 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04663 seconds
  • Memory Usage 2,315KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete