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

Prefix Index Listing ?

Discussion in 'XenForo Suggestions' started by erich37, Oct 22, 2011.

  1. erich37

    erich37 Well-Known Member

    Let`s say I do have about 30 different Prefixes for my Forum.

    I would like to show in the sidebar (or somewhere else at the homepage) a list of all Prefixes available.

    Saying I have Prefixes like for a Business-Directory:
    - Finance & Legal
    - Health & Beauty
    - Eating & Restaurants
    - Sports & Entertainment
    - Want to Buy
    - Want to Sell

    So I would like to show my "Prefixes" as some sort of "Category Index" somewhere at the Homepage, e.g. within the sidebar or underneath the "Notices".

    Would be great to show all my Prefixes in a consolidated list somewhere, and by clicking onto one of those Prefixes, it shows a List of all Threads containing that specific Prefix.

    In addition to this:
    currently, we can "filter" Prefixes for example the "Confirmed"-Prefix here at XenForo.com
    But when filtered for "Confirmed"-Prefix, the only option available is to "unfilter" the selected "Confirmed"-Prefix.
    I would suggest instead of having the "X" for "unfilter", to have a drop-down-field in order to be able to select and filter for another "Prefix". This would make it much faster to filter different Prefixes.
  2. Dodgeboard

    Dodgeboard Well-Known Member

    I was thinking the EXACT SAME THING!

    But I think the valid prefixes should be a forum specific listing, showing up in the forum for which they are valid. This would reduce confusion. And make them clickable.

    Like this:

    Alien, ge66, 3dsoft and 5 others like this.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    That's available in the Thread Display Options for each forum, single prefix at a time only though.
  4. Dodgeboard

    Dodgeboard Well-Known Member

    Yeah. I would like to figure out a way to get them all to display across the top, so you can filter by prefix category, instead of having to hunt for a page that has an "Employment" prefix thread and filtering them by clicking on that prefix. You should be able to show that specific prefix from any page.
    HydraulicJack and erich37 like this.
  5. Brogan

    Brogan XenForo Moderator Staff Member

    You can always replicate the code in the thread display options and edit the forum_view template.
  6. Dodgeboard

    Dodgeboard Well-Known Member

    Well, I suppose I could, if I was talented enough. But that's how I envisioned it ;)

    It would take me probably a week to figure it out.
    HydraulicJack and erich37 like this.
  7. erich37

    erich37 Well-Known Member

    I am not sure if this is possible, but it would be great. It is probably only possible to click onto a certain Prefix at the Homepage and then it returns "Search Results" with all threads containing that specific Prefix ?

    I want to have the Prefixes somewhere at the Homepage, so that people can click on them in order to get to the respective "Category" (as a Prefix is something like a category).

    Hopefully Kier and Mike can come up with an ACP-option or solution for this.

    HydraulicJack likes this.
  8. HydraulicJack

    HydraulicJack Well-Known Member

    I think this is VERY cool! Something I'd definitely like to see.
    erich37 likes this.
  9. 3dsoft

    3dsoft Active Member

    Content would be easier to find, which is good.
    HydraulicJack and erich37 like this.
  10. Dodgeboard

    Dodgeboard Well-Known Member

    EDIT: Use This method instead- easier and cleaner: http://xenforo.com/community/threads/pfps-com-br-thread-prefix-listing.22091/

    I got to playing with this a little bit.

    I am by no means an html guru (and I'm sure there's an easier way to do this) but I accomplished what I was needing by inserting the following code into the ad_forum_view_above_thread_list template.

    Obviously, you will need to tweak this for your forum and prefixes and place it in the template for where you want it to appear. I chose to show it for just my "Tradin Post" forum.

    <xen:if is="{$forum.node_id}==24">
    <div class="discussionListFilters secondaryContent">
          <h3 class="filtersHeading">Click for Specific Categories:</h3>
                    &nbsp;<a href="index.php?forums/the-tradin-post.24/&amp;prefix_id=1" class="prefixLink" title="Show only threads prefixed by 'For Sale'."><span class="prefix prefixRed">For Sale</span></a>
                    &nbsp;<a href="index.php?forums/the-tradin-post.24/&amp;prefix_id=2" class="prefixLink" title="Show only threads prefixed by 'Wanted'."><span class="prefix prefixGreen">Wanted</span></a>
                    &nbsp;<a href="index.php?forums/the-tradin-post.24/&amp;prefix_id=3" class="prefixLink" title="Show only threads prefixed by 'For Rent'."><span class="prefix prefixOrange">For Rent</span></a>
                    &nbsp;<a href="index.php?forums/the-tradin-post.24/&amp;prefix_id=4" class="prefixLink" title="Show only threads prefixed by 'Want to Rent'."><span class="prefix prefixLightGreen">Want to Rent</span></a>
                    &nbsp;<a href="index.php?forums/the-tradin-post.24/&amp;prefix_id=5" class="prefixLink" title="Show only threads prefixed by 'Commercial'."><span class="prefix prefixSecondary">Commercial</span></a>
                    &nbsp;<a href="index.php?forums/the-tradin-post.24/&amp;prefix_id=6" class="prefixLink" title="Show only threads prefixed by 'To Give Away'."><span class="prefix prefixBlue">To Give Away</span></a>
                    &nbsp;<a href="index.php?forums/the-tradin-post.24/&amp;prefix_id=7" class="prefixLink" title="Show only threads prefixed by 'Employment'."><span class="prefix prefixGray">Employment</span></a>
                    &nbsp;<a href="index.php?forums/the-tradin-post.24/&amp;prefix_id=8" class="prefixLink" title="Show only threads prefixed by 'Lost/Found'."><span class="prefix prefixOlive">Lost/Found</span></a>
    Link: http://www.dodgeboard.com/forums/index.php?forums/the-tradin-post.24/

  11. Digital Doctor

    Digital Doctor Well-Known Member

    Would a nice tweak be ....

    (A) numbers of items with this criteria ?
    For Sale (2) For Rent (13)

    (B) Clickable Prefixes wouldn't appear if there was no use of that Prefix (ie. Want to Rent (0) )

    Question: Can you still "Remove all filters" ?
    erich37 likes this.
  12. Dodgeboard

    Dodgeboard Well-Known Member

    I likee!

    I likee this too!! - wish I was smart enough to figure that out.

  13. Digital Doctor

    Digital Doctor Well-Known Member


    I don't suppose anyone is going to get the joke.
    Well ... I like it !
    dieketzer likes this.
  14. dieketzer

    dieketzer Well-Known Member

    you again! very nice :)
    i think it deserves its own thread in addon releases.
    Fuhrmann likes this.
  15. Brogan

    Brogan XenForo Moderator Staff Member

  16. Fuhrmann

    Fuhrmann Well-Known Member

    erich37 likes this.
  17. Aleandra

    Aleandra New Member

  18. MagnusB

    MagnusB Well-Known Member

  19. Aleandra

    Aleandra New Member

    @MagnusB Thanks...! Try it now..
  20. The Dark Wizard

    The Dark Wizard Well-Known Member

    I think that something like this should be added to xF core: http://xenforo.com/community/resources/thread-prefix-listing.80/

    It is kinda silly to use prefixes and then you have many many pages in that siad node and some threads with prefixes get washed away and you never see them again, defeats the purpose of having prefixes in the first place because you can't see them(They could be on like page 20) then you can't filter by just that prefix.
    rafass and Fuhrmann like this.

Share This Page