here are the working file from my test site. the style files are from my Prospace style.
also, here is the latest version that i could find. version 0.4.0
[phpBB3] Simple Hide BBcode MOD
[phpBB3] Simple Hide BBcode MOD
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.
Need hosting? Click this text to check out ICDSOFT
Need hosting? Click this text to check out ICDSOFT
Re: [phpBB3] Simple Hide BBcode MOD
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 ?
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;
}