[phpBB3] Simple Hide BBcode MOD

User avatar
spaceace
Site Owner
Site Owner
Posts: 910
Joined: Wed Dec 16, 2009 8:30 pm
Location: Ontario, Canada
Flag: Canada

[phpBB3] Simple Hide BBcode MOD

Post by spaceace » Thu Feb 02, 2012 11:39 am

here are the working file from my test site. the style files are from my Prospace style.
root.zip
also, here is the latest version that i could find. version 0.4.0
[phpBB3] Simple Hide BBcode MOD.zip
You do not have the required permissions to view the files attached to this post.
Last edited by spaceace on Tue Feb 26, 2013 10:30 am, edited 2 times in total.

if you like my work and would like to contribute to my development of styles, please donate by using the donate button in the header.

Image

Image

User avatar
Gio73
Donor
Donor
Posts: 41
Joined: Mon Apr 18, 2016 1:26 pm
Flag: Netherlands

Re: [phpBB3] Simple Hide BBcode MOD

Post by Gio73 » Sat May 14, 2016 5:47 pm

Hello,

anyone knows what and where i need to add to get special groups for download the hiden files whitout typing a message on the bbhide code ?
Code: Select all
        #################################################################
           #         Functions for hiding attachments
           #################################################################

           /**
           * Display a notification if we are hiding attachments
           *
           * @param object $event The event object
           */
           public function viewtopic_modify_post_row($event)
           {
              if($this->config['hidebbcode_hide_attach'] && !$this->unhide_in_post($event['row']['post_id']) &&
                 $event['row']['post_attachment'] && strpos($event['row']['post_text'], '[hide:') !== false)
              {
                 $attachments = $event['attachments'];

                 if(count($attachments[$event['row']['post_id']]) > 0)
                 {
                    $post_row = $event['post_row'];
                    $post_row['S_HAS_ATTACHMENTS'] = false;
                    $post_row['S_HIDEBBCODE_HIDDEN_ATTACH'] = true;
                    $event['post_row'] = $post_row;
                 }
                 
                 $attachments[$event['row']['post_id']] = array();
                 $event['attachments'] = $attachments;
              }

Who is online

Users browsing this forum: Baidu [Spider], CommonCrawl [Bot] and 0 guests