vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Minimum posts to UPload attachments.. (https://vborg.vbsupport.ru/showthread.php?t=54113)

EvilLS1 06-09-2003 10:00 PM

Minimum posts to UPload attachments..
 
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. :)

squawell 06-10-2003 08:05 AM

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..

EvilLS1 06-10-2003 08:38 AM

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. :)

squawell 06-10-2003 08:41 AM

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!!:D

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

edit:after test.. it works well...... :classic:

Kevorkian 06-10-2003 10:16 AM

good hack ^^ i'll install it, can you add a cost for every attachment in store points?

EvilLS1 06-10-2003 07:43 PM

Kevorkian,
I don't use the store hack.. Sorry. Maybe someone else can add it for you.

Tim Wheatley 06-10-2003 09:14 PM

Thanks very much. :)

EvilLS1 06-11-2003 08:22 AM

y/w. And thanks to you for the idea Tim. This is a useful addition to my own board. :)

Tim Wheatley 06-11-2003 03:54 PM

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:

Smoothie 06-11-2003 05:50 PM

Installed, working, nice job.


All times are GMT. The time now is 09:02 PM.

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.01086 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (1)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
  • (10)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