1. TBolley

    TBolley - Dec 25, 2012 New Member

    Credit
    Point
    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.
     
    Loading...
  2. Brivium

    Brivium - Dec 26, 2012 XenForo Services Staff Member

    Credit
    Point
    Hi man

    Please wait few time, We will fix this error

    Regards
     
    #2
  3. Brivium

    Brivium - Dec 26, 2012 XenForo Services Staff Member

    Credit
    Point
    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
            ));
        }
     
    #3
  4. TBolley

    TBolley - Dec 28, 2012 New Member

    Credit
    Point
    nope addon dont work, attachments cant be hide. tested on some clear installation.

    Seetings:

    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:

    attachment

    addon dont work !!!
     
    #4
  5. Brivium

    Brivium - Dec 28, 2012 XenForo Services Staff Member

    Credit
    Point
    You excluded Main forum ?

    excluded mean not include affect for this node

    Please check again
     
    #5
  6. TBolley

    TBolley - Dec 28, 2012 New Member

    Credit
    Point
    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
     
    #6
  7. Brivium

    Brivium - Dec 28, 2012 XenForo Services Staff Member

    Credit
    Point
    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']))
     
    #7
  8. TBolley

    TBolley - Dec 29, 2012 New Member

    Credit
    Point
    sorry no way to get this worked, no attachment can be hidden.
     
    #8
  9. Ricky6039

    Ricky6039 - Dec 30, 2012 New Member

    Credit
    Point
    Im sorry but this mod just dont work
     
    #9
  10. Brivium

    Brivium - Dec 30, 2012 XenForo Services Staff Member

    Credit
    Point
    Can you give me an access admin to detect issues. Because i try to install on some different server and this work well.
     
    #10
  11. TBolley

    TBolley - Jan 2, 2013 New Member

    Credit
    Point
    also with version 1.0.1 dont work, attachment cant be hidden.
     
    #11
  12. TBolley

    TBolley - Jan 2, 2013 New Member

    Credit
    Point
    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.
     
    Brivium likes this.
    #12
  13. TBolley

    TBolley - Jan 2, 2013 New Member

    Credit
    Point
    next issue on push the like button or reply you must refresh page to get attachments show (also needs to fix todo unhide auto).
     
    Brivium likes this.
    #13
  14. Ricky6039

    Ricky6039 - Jan 2, 2013 New Member

    Credit
    Point
    Now that worked but as stated above everything has to be clicked and then refresh after you post
     
    Brivium likes this.
    #14
  15. Brivium

    Brivium - Jan 2, 2013 XenForo Services Staff Member

    Credit
    Point
    We will support AJAX in next version, no need refresh after like or reply
     
    #15
  16. TBolley

    TBolley - Jan 2, 2013 New Member

    Credit
    Point
    need this to fix quickly.
     
    Brivium likes this.
    #16
  17. TBolley

    TBolley - Jan 3, 2013 New Member

    Credit
    Point
    bump
     
    #17
  18. Brivium

    Brivium - Jan 4, 2013 XenForo Services Staff Member

    Credit
    Point
    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
     
    #18
  19. TBolley

    TBolley - Jan 4, 2013 New Member

    Credit
    Point
    on disable hide attachment's thumb, hack dont work anymore
     
    #19
  20. Xx Qc 420 xX

    Xx Qc 420 xX - Jan 5, 2013 Member

    Credit
    Point
    Im having issue with it too

    Server Error

    Undefined variable: BRHA_mustReply
    1. XenForo_Application::handlePhpError() in Brivium/HideAttachment/ControllerPublic/Attachment.php at line 41
    2. Brivium_HideAttachment_ControllerPublic_Attachment->actionIndex() in bdBank/XenForo/ControllerPublic/Attachment.php at line 61
    3. bdBank_XenForo_ControllerPublic_Attachment->actionIndex() in XenForo/FrontController.php at line 310
    4. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    5. XenForo_FrontController->run() in /var/www/vhosts/theblazingtech.com/httpdocs/forum/index.php at line 13
     
    #20