REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Minimum Attachment Posts
Sorry just been busy with MYPS and the IPN module. It's just an IF statement to check attachment type. Next chance I get I will see what I can do.
Okey dokey.
Thank You Big Grin
a very useful plugin for me. thank youSmile
I'd edit it if I could figure it out, but I don't have a clue what kind of IF statement to add.
Either that or it would be cool if you could have a setting with attachment types to exclude. Smile
yeah I am still planning on doing this...
PHP Code:
$type_exempt explode(',',$mybb->settings['minattachmenttypeexempt']);
$aid intval($mybb->input['aid']);
$query $db->query("SELECT filename FROM ".TABLE_PREFIX."attachments WHERE aid='{$aid}'");
$filename $db->fetch_field($queryfilename);
$ext get_extension($filename); 

Anyone wants to test it ?

If so, deactivate the "old" one first ! Then upload the new file, overwrite if needed, then activate and go to the settings and fill in to your needs.

Attached Files
.php   Less than 1 minute ago">minimum_attachment_posts.php (Size: 5.44 KB / Downloads: 7)
hehe...there ya go. I will have a peek at this later.
Updated to version 1.1 with the changes Lex provided to allow for type exemption.

Possibly Related Threads...
Thread Author Replies Views Last Post
  Minimum Posts For PM labrocca 6 7,491 Sep 12, 2008, 06:05 AM
Last Post: norules
  Ignore Posts Plugin labrocca 37 23,893 Aug 14, 2008, 04:34 PM
Last Post: labrocca
  Minimum Thread Titles labrocca 2 3,942 May 29, 2008, 07:16 AM
Last Post: king of kills
  Delete member posts and threads (Admin Tool) labrocca 28 17,662 May 21, 2008, 02:07 AM
Last Post: Rodo
  Minimum Posts for Reputation labrocca 2 4,775 May 09, 2008, 02:25 PM
Last Post: dutchwii

Forum Jump:

Users browsing this thread: 1 Guest(s)