• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to 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 Showcase Node List Module Tweaks for Categories Listing

Shelley

Member
Showcase
Thought I'd make this suggestion (and really hope this one makes it in a future update)

I noticed that when you enable this and have multiple categories you are displayed with the dropdown menu (like the old subforum dropdown). The suggestion is to have an option like the subforum column listing that admins can enable instead of the dropdown which is hidden imo where column listings would expose the categoeries and offer up consistency for those that use sub forum listings.

Hopefully this one can be accommodated (which I'm sure you'll weigh up whether it's doable Bob) and as always, amazing work I absolutely adore this add-on. :)

edit: Another benefit would be on column mode we could also add the "new" red indicator which would further make it easier for people to see if a new item has been submitted (unless I'm missing how that functions).



Screenshot_53.png
 
Upvote 0
This suggestion has been implemented. Votes are no longer accepted.
Should be fairly easy to implement the first part. The 2nd part I am not sure about since its just a simple query grabbing low level Category data for navigation purposes (so there is no data pertaining to whether there are new items in those categories are not).
 
Should be fairly easy to implement the first part. The 2nd part I am not sure about since its just a simple query grabbing low level Category data for navigation purposes (so there is no data pertaining to whether there are new items in those categories are not).

I tried getting the subforum listing and nearly got there by editing the nflj_showcase_node_list template but was not quite working. Anything of course to make this an option would be great (just to rid the dropdown menu) Everything else doesn't matter and anything you can do is appreciated. Thanks again Bob for considering this. :)
 
  • Like
Reactions: Bob
you want it to be spit out just like core XF right? same classes, but maybe with an extra .showcase class added for finer control?
 
you want it to be spit out just like core XF right? same classes, but maybe with an extra .showcase class added for finer control?

That would be absolutely perfect Bob if that is possible for you to do/implement. :)
 
can you test this when you have time? It will now switch the "look" based on the "Show sub-forums popup" Forum/Node List style property setting.

replace template: nflj_showcase_node_list

with this template
HTML:
<fieldset>
    <ol class="nodeList sectionMain" id="forums">
        <li class="node category level_1 node_9991" id="showcase.9991">
            <div class="nodeInfo categoryNodeInfo categoryStrip">
                <div class="categoryText">
                    <h3 class="nodeTitle"><a href="{xen:link showcase}">{xen:phrase nflj_showcase_node_list_module_title}</a></h3>
                </div>
            </div>
            <ol class="nodeList">
                <li class="node forum level_2  node_SC9991">
                    <div class="nodeInfo forumNodeInfo primaryContent {xen:if $newCount, 'unread'}">
                        <span class="nodeIcon" title="Unread Showcase Items"></span>
                        <div class="nodeText">
                            <h3 class="nodeTitle"><a href="{xen:link showcase}" data-description="#nodeDescription-SC9991">{xen:phrase nflj_showcase_node_list_title}</a></h3>
                            <blockquote class="nodeDescription baseHtml" id="nodeDescription-SC9991">{xen:phrase nflj_showcase_node_list_title_descritption}</blockquote>
                            <div class="nodeStats pairsInline">
                                <dl>
                                    <dt>{xen:phrase nflj_showcase_items}:</dt> <dd>{xen:number $quikStats.items}</dd>
                                    <xen:if is="{$quikStats.reviews}">   
                                        <dt>{xen:phrase nflj_showcase_reviews}:</dt> <dd>{xen:number $quikStats.reviews}</dd>
                                    </xen:if>   
                                    <xen:if is="{$quikStats.comments}">           
                                        <dt>{xen:phrase nflj_showcase_comments}:</dt> <dd>{xen:number $quikStats.comments}</dd>
                                    </xen:if>   
                                    <dt>{xen:phrase nflj_showcase_images}:</dt> <dd>{xen:number $quikStats.images}</dd>
                                </dl>

                                <xen:if is="@nodeListSubForumPopup">
                                    <div class="Popup subForumsPopup">
                                        <a href="{xen:link forums, $forum}" rel="Menu" class="cloaked" data-closemenu="true"><span class="dt">{xen:phrase nflj_showcase_categories}:</span> {xen:number $quikStats.categories}</a>
                                        <div class="Menu JsOnly subForumsMenu">
                                            <div class="primaryContent menuHeader">
                                                <h3>{xen:phrase nflj_showcase}</h3>
                                                <div class="muted">{xen:phrase nflj_showcase_categories}</div>
                                            </div>
                                            <ol class="secondaryContent blockLinksList">
                                            <xen:foreach loop="$categories" value="$category">
                                                <li class="node forum level-n node_x ">
                                                    <div>
                                                        <h4 class="nodeTitle"><a class="menuRow" href="{xen:link showcase/category, $category}">{xen:string repeat, '&nbsp; &nbsp; ', $category.depth}{$category.category_name}</a></h4>
                                                    </div>
                                                </li>
                                            </xen:foreach>
                                            </ol>
                                        </div>
                                    </div>
                                </xen:if>

                            </div>
                        </div>

                        <xen:if is="!@nodeListSubForumPopup">
                            <ol class="subForumList">
                                <xen:foreach loop="$categories" value="$category">
                                    <li class="node forum level-n node_SC9991">
                                        <div>
                                            <h4 class="nodeTitle">
                                                <a class="menuRow" href="{xen:link showcase/category, $category}">{$category.category_name}</a>
                                            </h4>
                                        </div>
                                    </li>
                                </xen:foreach>
                            </ol>
                        </xen:if>

                        <div class="nodeLastPost secondaryContent">
                            <xen:if is= "{$latestItem}">
                                <span class="lastThreadTitle"><span>{xen:phrase latest}:</span> <a href="{xen:link showcase, $latestItem}" title="{$latestItem.item_name}">{xen:helper snippet, $latestItem.item_name, 35}</a></span>
                                <span class="lastThreadMeta">
                                    <span class="lastThreadUser"><xen:username user="$latestItem" />,</span>
                                    <xen:datetime time="$latestItem.last_update" class="muted lastThreadDate" data-latest="{xen:phrase latest}: " />
                                </span>
                            <xen:else />
                                <span class="noMessages muted">({xen:phrase nflj_showcase_contains_no_items})</span>
                            </xen:if>
                        </div>
                       
                    </div>
                </li>
               
            </ol>
            <span class="tlc"></span>
            <span class="trc"></span>
            <span class="blc"></span>
            <span class="brc"></span>
        </li>
    </ol>
</fieldset>
 
can you test this when you have time? It will now switch the "look" based on the "Show sub-forums popup" Forum/Node List style property setting.

replace template: nflj_showcase_node_list

with this template
HTML:
<fieldset>
    <ol class="nodeList sectionMain" id="forums">
        <li class="node category level_1 node_9991" id="showcase.9991">
            <div class="nodeInfo categoryNodeInfo categoryStrip">
                <div class="categoryText">
                    <h3 class="nodeTitle"><a href="{xen:link showcase}">{xen:phrase nflj_showcase_node_list_module_title}</a></h3>
                </div>
            </div>
            <ol class="nodeList">
                <li class="node forum level_2  node_SC9991">
                    <div class="nodeInfo forumNodeInfo primaryContent {xen:if $newCount, 'unread'}">
                        <span class="nodeIcon" title="Unread Showcase Items"></span>
                        <div class="nodeText">
                            <h3 class="nodeTitle"><a href="{xen:link showcase}" data-description="#nodeDescription-SC9991">{xen:phrase nflj_showcase_node_list_title}</a></h3>
                            <blockquote class="nodeDescription baseHtml" id="nodeDescription-SC9991">{xen:phrase nflj_showcase_node_list_title_descritption}</blockquote>
                            <div class="nodeStats pairsInline">
                                <dl>
                                    <dt>{xen:phrase nflj_showcase_items}:</dt> <dd>{xen:number $quikStats.items}</dd>
                                    <xen:if is="{$quikStats.reviews}">  
                                        <dt>{xen:phrase nflj_showcase_reviews}:</dt> <dd>{xen:number $quikStats.reviews}</dd>
                                    </xen:if>  
                                    <xen:if is="{$quikStats.comments}">          
                                        <dt>{xen:phrase nflj_showcase_comments}:</dt> <dd>{xen:number $quikStats.comments}</dd>
                                    </xen:if>  
                                    <dt>{xen:phrase nflj_showcase_images}:</dt> <dd>{xen:number $quikStats.images}</dd>
                                </dl>

                                <xen:if is="@nodeListSubForumPopup">
                                    <div class="Popup subForumsPopup">
                                        <a href="{xen:link forums, $forum}" rel="Menu" class="cloaked" data-closemenu="true"><span class="dt">{xen:phrase nflj_showcase_categories}:</span> {xen:number $quikStats.categories}</a>
                                        <div class="Menu JsOnly subForumsMenu">
                                            <div class="primaryContent menuHeader">
                                                <h3>{xen:phrase nflj_showcase}</h3>
                                                <div class="muted">{xen:phrase nflj_showcase_categories}</div>
                                            </div>
                                            <ol class="secondaryContent blockLinksList">
                                            <xen:foreach loop="$categories" value="$category">
                                                <li class="node forum level-n node_x ">
                                                    <div>
                                                        <h4 class="nodeTitle"><a class="menuRow" href="{xen:link showcase/category, $category}">{xen:string repeat, '&nbsp; &nbsp; ', $category.depth}{$category.category_name}</a></h4>
                                                    </div>
                                                </li>
                                            </xen:foreach>
                                            </ol>
                                        </div>
                                    </div>
                                </xen:if>

                            </div>
                        </div>

                        <xen:if is="!@nodeListSubForumPopup">
                            <ol class="subForumList">
                                <xen:foreach loop="$categories" value="$category">
                                    <li class="node forum level-n node_SC9991">
                                        <div>
                                            <h4 class="nodeTitle">
                                                <a class="menuRow" href="{xen:link showcase/category, $category}">{$category.category_name}</a>
                                            </h4>
                                        </div>
                                    </li>
                                </xen:foreach>
                            </ol>
                        </xen:if>

                        <div class="nodeLastPost secondaryContent">
                            <xen:if is= "{$latestItem}">
                                <span class="lastThreadTitle"><span>{xen:phrase latest}:</span> <a href="{xen:link showcase, $latestItem}" title="{$latestItem.item_name}">{xen:helper snippet, $latestItem.item_name, 35}</a></span>
                                <span class="lastThreadMeta">
                                    <span class="lastThreadUser"><xen:username user="$latestItem" />,</span>
                                    <xen:datetime time="$latestItem.last_update" class="muted lastThreadDate" data-latest="{xen:phrase latest}: " />
                                </span>
                            <xen:else />
                                <span class="noMessages muted">({xen:phrase nflj_showcase_contains_no_items})</span>
                            </xen:if>
                        </div>
                      
                    </div>
                </li>
              
            </ol>
            <span class="tlc"></span>
            <span class="trc"></span>
            <span class="blc"></span>
            <span class="brc"></span>
        </li>
    </ol>
</fieldset>

Works a treat Bob :)
 
  • Like
Reactions: Bob
Good news :) let me know if you need any additional class names added anywhere in it.

I'm more than satisfied with that Bob. Thanks again for putting the time into this and catering for another suggestion and generally going out of your way to help (which you've done from start to finish). I now have the sc nodelist moved to the top and now very happy with the outcome. Thanks again Bob. :)

Screenshot_2.png
 
  • Like
Reactions: Bob
That looks awesome! That Winter theme for the holidays is flat out amazing looking!

Thanks Bob :)

I'm more please with the dark styles. I think the subforum li really looks so much better on these styles. Because of the featured threads I disabled the forum_list slider so this kind of compliments this nicely and gets showcase back in a prominent position. :)

Screenshot_3.png
 
Back
Top