get realy into troubles with this addon. Code: An exception occurred: Array to string conversion in Z:\domain.org\library\XenForo\Model\Node.php on line 1255 XenForo_Application::handlePhpError() strval() in XenForo/Model/Node.php at line 1255 XenForo_Model_Node->getNodeOptionsArray() in XenForo/Option/NodeChooser.php at line 60 XenForo_Option_NodeChooser::getNodeOptions() in Brivium/HideAttachment/Option/Render.php at line 41 Brivium_HideAttachment_Option_Render::renderOption() call_user_func() in XenForo/ViewAdmin/Helper/Option.php at line 327 XenForo_ViewAdmin_Helper_Option::_renderCallbackOptionHtml() in XenForo/ViewAdmin/Helper/Option.php at line 71 XenForo_ViewAdmin_Helper_Option::renderPreparedOptionHtml() in XenForo/ViewAdmin/Helper/Option.php at line 33 XenForo_ViewAdmin_Helper_Option::renderPreparedOptionsHtml() in XenForo/ViewAdmin/Option/ListOptions.php at line 30 XenForo_ViewAdmin_Option_ListOptions->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 215 XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlAdmin.php at line 63 XenForo_ViewRenderer_HtmlAdmin->renderView() in XenForo/FrontController.php at line 533 XenForo_FrontController->renderView() in XenForo/FrontController.php at line 156 XenForo_FrontController->run() in Z:/domain.org/admin.php at line 16 so fix this please or refund my money.
Hi, this is issue with your php version. I think your php version higher than 5.4. You can fixed it by replace funtion renderOption in Brivium\HideAttachment\Option\Render.php Thanks. Code: public static function renderOption(XenForo_View $view, $fieldPrefix, array $preparedOption, $canEdit) { $value = $preparedOption['option_value']; $seleted = 0; if(!$value)$seleted = -1; $editLink = $view->createTemplateObject('option_list_option_editlink', array( 'preparedOption' => $preparedOption, 'canEditOptionDefinition' => $canEdit )); $forumOptions = XenForo_Option_NodeChooser::getNodeOptions( $seleted, sprintf('(%s)', new XenForo_Phrase('unspecified')), 'Forum' ); return $view->createTemplateObject('BRHA_option_template_forumSelector', array( 'fieldPrefix' => $fieldPrefix, 'listedFieldName' => $fieldPrefix . '_listed[]', 'preparedOption' => $preparedOption, 'formatParams' => $forumOptions, 'editLink' => $editLink )); }
nope addon dont work, attachments cant be hide. tested on some clear installation. Seetings: attached_files Template: Code: <xen:require css="attached_files.css" /> <div class="attachedFiles"> <h4 class="attachedFilesHeader">{xen:phrase attached_files}: </h4> <ul class="attachmentList SquareThumbs" data-thumb-height="{xen:calc '{$xenOptions.attachmentThumbnailDimensions} / 2'}" data-thumb-selector="div.thumbnail > a"> <xen:if is="!{$post.hideThumbnail} "> <xen:foreach loop="$post.attachments" value="$attachment"> <li class="attachment{xen:if {$attachment.thumbnailUrl}, ' image'}" title="{$attachment.filename}"> <div class="boxModelFixer primaryContent"> <div class="thumbnail"> <xen:if is="{$attachment.thumbnailUrl} AND {$canViewAttachments}"> <xen:if is="({$post.BRHA_mustLike} OR {$post.BRHA_mustReply}) AND !{$attachment.BRHA_excludeAttachment}"> <a href="{xen:link attachments, $attachment}" target="_blank"><img src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}" /></a> <xen:else /> <a href="{xen:link attachments, $attachment}" target="_blank" class="LbTrigger" data-href="{xen:link misc/lightbox}"><img src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}" class="LbImage" /></a> </xen:if> <xen:elseif is="{$attachment.thumbnailUrl}" /> <a href="{xen:link attachments, $attachment}" target="_blank"><img src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}" /></a> <xen:else /> <a href="{xen:link attachments, $attachment}" target="_blank" class="genericAttachment"></a> </xen:if> </div> <div class="attachmentInfo pairsJustified"> <h6 class="filename"><a href="{xen:link attachments, $attachment}" target="_blank">{$attachment.filename}</a></h6> <dl><dt>{xen:phrase file_size}:</dt> <dd>{xen:number $attachment.file_size, size}</dd></dl> <dl><dt>{xen:phrase views}:</dt> <dd>{xen:number $attachment.view_count}</dd></dl> </div> </div> </li> </xen:foreach> <xen:else /> <li class="attachment{xen:if {$attachment.thumbnailUrl}, ' image'}"> <div class="boxModelFixer primaryContent" style="width:100%;"> <span style="color:#ff0000;font-size: 12px;font-style:italic;font-weight: bold;"> <xen:if is="{$post.BRHA_mustLike} AND {$post.BRHA_mustReply}"> {xen:phrase BRHA_mustLikeAndReply} <xen:elseif is="{$post.BRHA_mustLike}" /> {xen:phrase BRHA_mustLike} <xen:elseif is="{$post.BRHA_mustReply}" /> {xen:phrase BRHA_mustReply} </xen:if> </span> </div> </li> </xen:if> </ul> </div> <xen:comment><xen:require css="xenforo.css" /></xen:comment> nothing is hide: addon dont work !!!
fixed the seetings for forum but get another error. Code: Server Error Undefined index: BRHA_mustReply XenForo_Application::handlePhpError() in Brivium/HideAttachment/ControllerPublic/Thread.php at line 37 Brivium_HideAttachment_ControllerPublic_Thread->actionIndex() in XenForo/FrontController.php at line 310 XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132 XenForo_FrontController->run() in /var/www/xenforo-clear/index.php at line 13
Open file Brivium/HideAttachment/ControllerPublic/Thread.php at line 37 And replace code in this line to: Code: if((isset($post['BRHA_mustReply'])&&$post['BRHA_mustReply'])||(isset($post['BRHA_mustLike'])&&$post['BRHA_mustLike']))
Can you give me an access admin to detect issues. Because i try to install on some different server and this work well.
i think i found the issue, if Hide Attachment's Thumbnail are disabled dont work but is activated need some second permission on Require like to view attachment or Require reply to view attachment be enabled to get worked. if only one of this 3 are enabled dont work.
next issue on push the like button or reply you must refresh page to get attachments show (also needs to fix todo unhide auto).
Hi, In our opinion, this's not bug because when you disabled hide attachment's thumb => This addon can't display error to member => When member click to attachment => Display error. Regards
Im having issue with it too Server Error Undefined variable: BRHA_mustReply XenForo_Application::handlePhpError() in Brivium/HideAttachment/ControllerPublic/Attachment.php at line 41 Brivium_HideAttachment_ControllerPublic_Attachment->actionIndex() in bdBank/XenForo/ControllerPublic/Attachment.php at line 61 bdBank_XenForo_ControllerPublic_Attachment->actionIndex() in XenForo/FrontController.php at line 310 XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132 XenForo_FrontController->run() in /var/www/vhosts/theblazingtech.com/httpdocs/forum/index.php at line 13