REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Minimum Attachment Posts
#21
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.
#22
Okey dokey.
Thank-ya!
#23
Thank You Big Grin
#24
a very useful plugin for me. thank youSmile
#25
I'd edit it if I could figure it out, but I don't have a clue what kind of IF statement to add.
#26
Either that or it would be cool if you could have a setting with attachment types to exclude. Smile
#27
yeah I am still planning on doing this...
#28
PHP Code:
    // GET EXEMPT FILETYPES ;
    
$type_exempt explode(',',$mybb->settings['minattachmenttypeexempt']);
    
// FETCH ATTACHMENT ID ;
    
$aid intval($mybb->input['aid']);
    
// GET FILENAME ;
    
$query $db->query("SELECT filename FROM ".TABLE_PREFIX."attachments WHERE aid='{$aid}'");
    
$filename $db->fetch_field($queryfilename);
    
// GET EXTENSION ;
    
$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)
#29
hehe...there ya go. I will have a peek at this later.
#30
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,158 Sep 12, 2008, 06:05 AM
Last Post: norules
  Ignore Posts Plugin labrocca 37 22,378 Aug 14, 2008, 04:34 PM
Last Post: labrocca
  Minimum Thread Titles labrocca 2 3,743 May 29, 2008, 07:16 AM
Last Post: king of kills
  Delete member posts and threads (Admin Tool) labrocca 28 16,653 May 21, 2008, 02:07 AM
Last Post: Rodo
  Minimum Posts for Reputation labrocca 2 4,581 May 09, 2008, 02:25 PM
Last Post: dutchwii

Forum Jump:


Users browsing this thread: 1 Guest(s)