1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained Help Pages Wrapper Manager 1.2.3

Control your Help Pages structure

  1. cclaerhout

    cclaerhout Well-Known Member

    cclaerhout submitted a new resource:

    Help Pages Wrapper Manager - Control your Help Pages structure

    Read more about this resource...
     
    Xon likes this.
  2. cclaerhout

    cclaerhout Well-Known Member

    cclaerhout updated Help Pages Wrapper Manager with a new update entry:

    Version 1.1.0 released

    Read the rest of this update entry...
     
    Xon likes this.
  3. cclaerhout

    cclaerhout Well-Known Member

    Xon likes this.
  4. cclaerhout

    cclaerhout Well-Known Member

    cclaerhout updated Help Pages Wrapper Manager with a new update entry:

    Version 1.2.0 released

    Read the rest of this update entry...
     
    Xon and RobinHood like this.
  5. cclaerhout

    cclaerhout Well-Known Member

    Xon likes this.
  6. Freelancer

    Freelancer Well-Known Member

  7. cclaerhout

    cclaerhout Well-Known Member

    Xon likes this.
  8. Glockie

    Glockie Well-Known Member

    Hi @cclaerhout
    I have an issue when clicking the add-on in the options menu;


    Code:
    An exception occurred: Invalid model 'Sedo_HelpWrapperManager_Model_GetUsergroups' specified in mysite//public/library/XenForo/Model.php on line 192
    
        XenForo_Model::create() in Sedo/HelpWrapperManager/Listener.php at line 110
        Sedo_HelpWrapperManager_Listener::helpWrapper_settings()
        call_user_func() in XenForo/ViewAdmin/Helper/Option.php at line 345
        XenForo_ViewAdmin_Helper_Option::_renderCallbackOptionHtml() in XenForo/ViewAdmin/Helper/Option.php at line 72
        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 227
        XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlAdmin.php at line 78
        XenForo_ViewRenderer_HtmlAdmin->renderView() in XenForo/FrontController.php at line 607
        XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
        XenForo_FrontController->run() in /home/nginx/domains/mysite.com/public/admin.php at line 13
    
    Hope you can help?
    Thank you. :)
     
    RobinHood likes this.
  9. RobinHood

    RobinHood Well-Known Member

    Yep, same
     
    Glockie likes this.
  10. cclaerhout

    cclaerhout Well-Known Member

    I will fix this tonight.
     
    RobinHood likes this.
  11. cclaerhout

    cclaerhout Well-Known Member

    Xon and Glockie like this.
  12. RobinHood

    RobinHood Well-Known Member

    Thanks for the update Cedric.
    Just trying this out, when embedding posts as help pages videos render properly as embeds, but images just show as text inline:

    View Attachment x

    Is there any way to have them show as full size embedded images? :)
     
    Glockie likes this.
  13. Glockie

    Glockie Well-Known Member

    Indeed thank you for fixing this issue Cedric. :)
     
  14. BobbyWibowo

    BobbyWibowo Well-Known Member

    Is this add-on still being maintained? It was working fine with PHP 7.0.x, but I'm getting this error with PHP 7.1.0:
    Stack info:
     
    Mouth likes this.
  15. cclaerhout

    cclaerhout Well-Known Member

    Did you try to propose a fix on Github? I can look for it, but people can do it also. That's the idea of open source.
    The problem is certainly that the pageData is not an array (a string) and php 7.1.0 now wants the variable to be declared as an array to add it values. I will push a fix on Github, but really for such an easy error, admins should give an help.

    Edit: done (ref).
     
    Last edited: Dec 5, 2016
    Mr. Jinx, Mouth, electrogypsy and 2 others like this.
  16. Mr. Jinx

    Mr. Jinx Member

    Did you ever solve this @RobinHood ?
    I'm facing the same problem, but can't find a way to fix this easily.
     
  17. Mr. Jinx

    Mr. Jinx Member

    I guess the function in page.php is responsible for rendering a forum post in the help menu.
    viewAttachments is set to true, but it only shows a text link to the attachment and no
    thumbnail/image.

    I think the answer is in this post:
    https://xenforo.com/community/threads/unable-to-render-attachments.117519/#post-1076594

    ..but I don't know exactly how to adjust this and make it work.
    Anyone want to take a look at this? (maybe @HeadHodge ?)

    PHP:
    $bbCodeParser XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
                    
    $bbCodeOptions = array(
                        
    'states' => array(
                            
    'viewAttachments' => true
                        
    ),
                        
    'contentType' => 'post',
                        
    'contentIdKey' => 'post_id'
                    
    );

                    if(
    $trimFirstLines || $trimLastLines)
                    {
                        
    $message = &$post['message'];
                      
                        if(
    $trimFirstLines)
                        {
                            
    $message preg_replace('#^(.*?\n){'.$trimFirstLines.'}#sui'''$message);
                        }
                      
                        if(
    $trimLastLines)
                        {
                            
    $messageByLines explode("\n"$message);
                            
    $messageByLines array_slice($messageByLines0count($messageByLines)-$trimLastLines);
                            
    $message implode("\n"$messageByLines);
                        }
                    }

                    if(
    $noPicture)
                    {
                        
    $message preg_replace('#[\r\n]?\[(img|bimg|attach).*?\[/\1][\r\n]?#iu'''$message);
                    }

                    
    $messageHtml XenForo_ViewPublic_Helper_Message::getBbCodeWrapper($post$bbCodeParser$bbCodeOptions);
                    
    $replace[] = $messageHtml;
     
    Last edited: Jun 5, 2017
  18. RobinHood

    RobinHood Well-Known Member

    No, I don't think so.
     
  19. Mr. Jinx

    Mr. Jinx Member

    RobinHood likes this.

Share This Page