1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Implemented Forum Home sidebar block and node list modules

Discussion in 'Showcase Closed Suggestions' started by Bob, Jan 23, 2013.

  1. Bob

    Bob Developer Staff Member

    Per paid request and further donated back to the community (donor wishes to remain anonymous). You can thank the Donor by liking this post or replying back thanking them.

    Sidebar Block: This is a similar tabbed block as I've done for xenPorta and [bd] widget framework, cept it is specifically for the Forum Home sidebar for those of you that don't use xenPorta or BDWF. It has its own options settings (showcase options). You chose which tabs to display (Top Rated, Most Popular, Featured and Most Recent) and set the amount of items to display. You can enable/disable via options. Default is disabled. (see images below)

    Node List Module: This is simply a simulated Node (not an actual node) that you can display above or below the Forum Home Nodes List. It contains Links to showcase, displays some stats like the number of items and comments, has a drop down for Categories (similar to Sub Forums drop down) and displays the latest comment made to any of the items. Options are simple.. you enable it and chose above or below. Thats it, nothing more, nothing less. For those of you familiar with Sportsbook, this is the same thing I've done with it (see images below).

    Node List Item Module: This is a much more powerful Module than the first one as it displays actual content. It has many different configuration options to give you many different uses. You can use it to simply display images or you can configure it to look like the modules on the showcase landing page. Options are: Chose the Item type to display (Most Recent, Top Rated, Most Popular or Featured). Select Extra Data to display: Show Title, Show Description and Show Rating/Views. Then set the amount of Items to display in the module. You can also set a Module Title which will then enable the Title Bar to display as well (see images below).

    NOTE: Each of these has their own template and related CSS file so that you can customize these without effecting other similar modules/blocks.

    This first image shows all 3 new features enabled and configured. The Node Items Module is configured to display 4 Top Rated Items with Rating/Views. The Sidebar block is configured to display 4 Featured, 4 Top Rated and 4 Most Popular. The Node list Module is configured to display above the Forum List.
    nodelist_module_1.png


    This next image shows a slightly different configuration for the Node Items Module. The first thing that is different is that the Module Title is enabled (which links to the showcase home page). The 2nd is that it is images only as all the "extra's" are disabled. Its also set to 8 items instead of 4.
    nodelist_items_module_1.png


    This next image shows the configuration that is used on the showcase landing page for the various modules. This one is set to "Most Popular", Show Title, Show Description, Show Rating, 4 items, and Module Title.
    nodelist_items_module_2.png


    This one is just the item image with no extra data and no module title, 12 items.
    nodelist_items_module_3.png


    This shows you all the configuration settings in the Showcase Options.


    options_settings_nodes.png
     
  2. ibenick

    ibenick Member Showcase

    Love it! Thank you anonymous! :)
     
    Bob likes this.
  3. ArnyVee

    ArnyVee New Member

    Great work :)

    Question: Because I have a custom size of the forum home, it won't allow four items to display using the node list items module. And, by setting it to three, I have a lot of space to the right of the three items. Can this be centered? Or, better yet, how can we adjust the width of the items being displayed in the node list items module?
     
  4. Bob

    Bob Developer Staff Member

    It has its own CSS. You can tweak the 25% setting to 33% for 3 items per instead of 4..

    nflj_showcase_node_list_items.css is the CSS file for specifically for only that block. Do NOT use extra.css to do this as showcase uses that class elsewhere (which is why you need to edit the CSS files directly).

    HTML:
    .showcaseItem {
        float: left;
        width: 25%;
        min-width: 170px;   
    }
     
    ArnyVee likes this.
  5. ArnyVee

    ArnyVee New Member

    Thanks Bob :D
     
  6. C.Birch

    C.Birch Member AMS Premium SC Premium UBS Premium

    How can you move the Node List Items Module to show at the bottom of the forums listing and not at the top?
     
  7. Bob

    Bob Developer Staff Member

    it depends. Are you also using the simulated node? and if so, are you having the simulated node at the top or bottom.
     
  8. C.Birch

    C.Birch Member AMS Premium SC Premium UBS Premium

    Nope, just the Node List Items Module :)
     
  9. Bob

    Bob Developer Staff Member

    that makes it easier to deal with lol

    edit the file: /library/NFLJ/Showcase/Listener/Template.php

    scroll down to the last case statement: case 'forum_list_nodes':

    need to modify the 2nd chunk of code in that case statement, so find the 2nd if statement that deals with Node List Items: if ($options->scNodeListItems['enabled'])

    Find this line of code:
    PHP:
    $contents $template->create('nflj_showcase_node_list_items'$viewParams) . $contents;
    replace with this:
    PHP:
    $contents .= $template->create('nflj_showcase_node_list_items'$viewParams);
     
    Last edited: Jul 26, 2013
    ArnyVee and C.Birch like this.
  10. C.Birch

    C.Birch Member AMS Premium SC Premium UBS Premium

    Many thanks, that worked.
     
    Bob likes this.
  11. fatih

    fatih Member SC Premium

    Can we make this category by category. For example I want to select to shown categories on this? is it possible.
     
  12. Bob

    Bob Developer Staff Member

    not sure I understand what you want. Show me visually?
     
  13. fatih

    fatih Member SC Premium

    for example I have 10 categories. But ı want to show only 4 categories on this module. is it possible?
     
  14. Bob

    Bob Developer Staff Member

    I think I understand what you are trying to say now. You are asking if you can display items from one or more categories instead of displaying from ALL Categories. If that is what you are asking, then yes, the architecture is now in place to be able to do that, but I've not had time to implement it. It has been requested tho and I've already accepted it for development in the future.
     
  15. fatih

    fatih Member SC Premium

    Yes Bob. You understood right. I hope you can make it future..

    thanks..
     
    Bob likes this.
  16. Bob

    Bob Developer Staff Member

    Yes, it will happen, cause I need and want it for my own use :D
     
    fatih likes this.
  17. C.Birch

    C.Birch Member AMS Premium SC Premium UBS Premium

    Hi @Bob B How is this same edit done on 1.3 now? because 1.3 now longer as this file?
     
  18. Bob

    Bob Developer Staff Member

    same, just different file. I renamed it to just Template.php vs TemplateHook.php (you can actually remove TemplateHook.php now).
     
  19. Bob

    Bob Developer Staff Member

    actually, its now /library/NFLJ/Showcase/Listener/Template.php
     
    C.Birch likes this.
  20. Bob

    Bob Developer Staff Member

    I should probably mention to everyone to remove the old showcase directories before uploading the new ones as so much has changed lol
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.