Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Minimum posts to UPload attachments.. Details »»
Minimum posts to UPload attachments..
Version: 1.00, by EvilLS1 EvilLS1 is offline
Developer Last Online: May 2021 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-09-2003 Last Update: Never Installs: 6
 
No support by the author.

This little hack will make it possible for you to require your users to have a minimum number of posts (which you define in the admin control panel) before they can upload attachments.

Requested here.

Screenshots included in the zip.

If you find this hack useful please click install.

Show Your Support

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

Comments
  #2  
Old 06-10-2003, 08:05 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

question:

if i already installed the edit post can attach file hack does this

effect that?should we need to edit the editpost.php??

thankz....

/me installed..
Reply With Quote
  #3  
Old 06-10-2003, 08:38 AM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

squawell,
No, there should be no need to make any changes in editpost.php because the attachment options only appear if a user has already attached something.

But if you've installed another hack which allows you to add attachments via editing posts then this should fix it:

in editpost.php find:
Code:
eval("\$editattachment = \"".gettemplate("editpost_attachment")."\";");
replace with:
Code:
if ($bbuserinfo[posts] < $minpostuploadattach) {
eval("\$editattachment = \"".gettemplate("notnuffpost_attachment")."\";");
}else{
    eval("\$editattachment = \"".gettemplate("editpost_attachment")."\";");
}
I haven't looked at the other hack or tried the code above but it should work.
Reply With Quote
  #4  
Old 06-10-2003, 08:41 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 05:38 PM EvilLS1 said this in Post #3
squawell,
No, there should be no need to make any changes in editpost.php because the attachment options only appear if a user has already attached something.

But if you've installed another hack which allows you to add attachments via editing posts then this should fix it:

in editpost.php find:
Code:
eval("\$editattachment = \"".gettemplate("editpost_attachment")."\";");
replace with:
Code:
if ($bbuserinfo[posts] < $minpostuploadattach) {
eval("\$editattachment = \"".gettemplate("notnuffpost_attachment")."\";");
}else{
    eval("\$editattachment = \"".gettemplate("editpost_attachment")."\";");
}
I haven't looked at the other hack or tried the code above but it should work.
thankz EvilLS1!!

ill give it a try and report the result......

edit:after test.. it works well...... :classic:
Reply With Quote
  #5  
Old 06-10-2003, 10:16 AM
Kevorkian's Avatar
Kevorkian Kevorkian is offline
 
Join Date: Dec 2002
Location: behind you...
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good hack ^^ i'll install it, can you add a cost for every attachment in store points?
Reply With Quote
  #6  
Old 06-10-2003, 07:43 PM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kevorkian,
I don't use the store hack.. Sorry. Maybe someone else can add it for you.
Reply With Quote
  #7  
Old 06-10-2003, 09:14 PM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much.
Reply With Quote
  #8  
Old 06-11-2003, 08:22 AM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

y/w. And thanks to you for the idea Tim. This is a useful addition to my own board.
Reply With Quote
  #9  
Old 06-11-2003, 03:54 PM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I needed it as a security feature, we had some 'kids' attacking us from another forum (because we'd banned one of them from ours) and this allows us to have some previous posts to make judgement on, and also allows us to have time when someone registers for the role reason to upload grotesque images...

Thanks for doing it. :up:
Reply With Quote
  #10  
Old 06-11-2003, 05:50 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, working, nice job.
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 03:03 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.06924 seconds
  • Memory Usage 2,299KB
  • 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
  • (4)bbcode_code
  • (1)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