Page 1 of 1
[phpBB3] Simple Hide BBcode MOD
Posted: Thu Feb 02, 2012 11:39 am
by spaceace
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
Re: [phpBB3] Simple Hide BBcode MOD
Posted: Sat May 14, 2016 5:47 pm
by Gio73
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;
}