![]() |
Thread Listing by Letter with ABC Navigation Menu
Thread Listing by Letter with ABC Navigation Menu
(please nominate for mod of the month) Special thank you to member 'Dead Eddie' who originally created this and gave me permission (via pm) to post this as a mod. This will automatically display your forum's threads into alphabetical order when a member clicks a specific letter. It shows an ABC menu on top of the forum that you place the code into. Tested on a fresh Vbulletin install and VBSEO enabled install. Works fine on both. Description of MOD: Member clicks on the letter 'A', it will show all threads that begin with the letter A in the thread title, only. Installation / Upgrade
Code:
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> Live Demo (using VBSEO) http://www.talkjesus.com/scriptural-bible-answers/ Live Demo (fresh Vbulletin install) http://www.talkjesus.com/test/forumdisplay.php?f=2 Quote:
*********** CHANGELOG *********** May 5th 2009
|
Without vBSEO is a very very slow :(
|
Quote:
|
thnaks work great :)
|
The correct syntaxis to code on NON-VBSEO users is
Wrong: <a rel="nofollow" href="http://www.yourdomain.com/forumdisplay.php/f=2&letter=a">A</a> Correct <a rel="nofollow" href="http://www.yourdomain.com/forumdisplay.php?f=2&letter=a">A</a> Only change "/" with "?" And Works perfectly. Install & Nominated!!! Thank you very much! P.S. Sorry for my bad english :( |
do you think it's possible to add number 0-9 ?
|
this is awesome! I had wanted this for a cheats forum that I was working on a while back but I could never work out how to do this, and now this is done but I don't need it anymore lol oh well, maybe I will start a new project because this could be very useful. Thanks.
|
Just had a thought. What about special characters and 0-9. how are they taken care of?
|
Quote:
|
Just been trying this on a forum in which we have it set to display all the threads back to the beginning but your Mod only seems to be pulling up threads for the last 30 days?
|
Quote:
If you look at my live demo, it shows literally all threads per letter. |
Awesome modification, lucky i found this one by a very helpfull friend.
I installed it and nominated it!!!! This hack could use some small improvements meaning: - An option to show stickies in letter or not. And i was wondering if you could merge more forumid's. Example: i have 2 forumid's with posts but i want to show them both by letter. When you click the letter A form example you will see the threads from forumid1 + forumid2. Can this be done by HTML? Greetings:) |
Quote:
|
Quote:
forumdisplay.php?f=137&letter=1 forumdisplay.php?f=137&letter=[ and so on :) Forumid marked in red, must be your forumid!!! Just add another table from 0 till 9 in html and your fine :) |
Quote:
|
One link with a dropdown menu? Something like that.
Just click on # and a dropdown menu comes with 0 till 9 :) Do you mean that? |
works great thank you
|
Quote:
|
Quote:
|
Thank You For Sharing This Very Useful Plugin.
You don't need to have Installed Nor Active the Product you Mentione, nor to Limit the Code Per Forum, but is Possible to Include a Code on the FORUMDISPLAY Template as Follows for all Forums, and even to add an Additional If to limit the Forum IDs where to Include the Code. In this Code I've Used the Code "?f=$foruminfo[forumid]" to Specify the Number of the Forum, as vBulletin does on the FORUMDISPLAY Template, so that Way you Don't Need to Change that Number Per Desired Forum. I've Added the "ALL" Option as well as the "W" Letter (you have repeated the "Y"), the "?" (for Boards in Spanish), and the Numbers "0" to "9" at the Right of the List, and I've also Set colspan="38" on the First Row of the Table for all the Added Columns. I've also Added Usergroup Permissions, for Groups 2,5,6,7 but you can also Add other usergroups separating them by comma where the "2,5,6,7" is. Remember to Change them on the Template Code as well as on the Plugin Code (if you Use the Plugin Usergroup Conditional). I've also Added the Conditional "$show['threadslist']" to Display the Navigation Menu Only on the Forums that have Thread Listed in them (There's No Sense in Including it on Categories where You Can't Post Threads, but you can remove the " and $show['threadslist']" if you wish). I've Unified the Alt1 and Alt2 Classes, to Use in both cases the Code style=“padding:5px;text-align:center” because in some cases it has been using width="3%" for the Alt2; (I think it look better that way but Anyone can Choose the Other Option if Desired just Setting the Following Code for the Alt2 Cells. Code:
<td class="alt2" width="3%"> Step 1. Install the Product (Only this Product, first 3 Steps on Specified Process). Quote:
Step 2. On FORUMDISPLAY Template: Below Code:
<!-- / sub-forum list --> Code:
<if condition="$show['threadslist']"> Add (Change the "yourdomain.com" for the URL of your Forum). Code:
<!-- Begin Letter ABC Navigation --> Step 3. If You Wish to Set Permissions on the Plugin. On Admin Control Panel - Plugins and Products - Edit Plugins Edit Plugin "Add Where Letter" Replace with Code:
if (is_member_of($vbulletin->userinfo, explode(',','2,5,6,7'))) Code:
if (is_member_of($vbulletin->userinfo, explode(',','2,5,6,7'))) and Code:
} Step 4. ENJOY !!! :D My Best Regards. :) |
Could the links not be done with $vboptions[bburl]/forumdisplay.php?$session[sessionurl]f=2&letter=o
instead of hard coding the full path? Or even just relative path? forumdisplay.php?$session[sessionurl]f=2&letter=o Note also I've added $session[sessionurl] as that needs to be there really. |
Quote:
Thanks. |
Quote:
|
I discovered some bugs.
When you have more threads then you allow in vboptions. example: max 15 threads per page The pageno#: 1,2,3,4, does not include the letter but the actual forum. The threads in the page do not have a orderby=ASC or DESC :) |
New Update
*********** CHANGELOG *********** May 4th, 2009
|
Thank for the Update but there is a Functionality that You Haven't Implemented on it and that is Necessary for it to Work Properly on the ForumDisplay, and is that it Displays the Filtered Number of Pages After the Apply of the Filter by Letter, and also that when Clicking on the Number of Page the Users can Browse to that Filtered by Letter Page.
Right Now the Mod Only Displays the Fist Page of Results and the Other Links to the Pages don't Include the Filter by Letter. :confused: For Small Thread Lists Works Fine but for Large Ones you can Only See the First X Results (the ones on the First Page). Also another Functionality that don't Work is when You Have Thread Lists Ordered or Filtered by Any Criteria, the Provided Link don't Respect that Order and/or Filter and Displays All the Threads Filtered by First Letter, (Only the First Page as Mentioned Before). :confused: I Hope You Can Include those Functionalities on this Mod. My Best Regards. :) |
Good changelog, it is surely improved.
If you could only fix the page numbers that would complete the hack. Because if you have like say 500 threads starting with a. Only a number of threads will show on your page optioned in vboptions. Example http://www.yourdomain.com/forumdisplay.php?f=(forumid)&letter=d Should be: http://www.yourdomain.com/forumdisplay.php?f=(forumid)&letter=d&page=2 |
I'm not a programmer to be honest, so if someone can explain what it should look like (the link) to include all pages for that specific letter clicked, I'll update it again.
I did replicate the problem though to be fairly honest at least ;) |
Quote:
|
Quote:
Set that Option to 5 Threads on ForumDisplay Options, and then Go to a Forum that has Lots of Thread that Start by Any Letter and Click on the Filter Letter of this Mod; You'll Only see Five (5) Results and not the Complete List. :confused: My Best Regards. :) |
inciarco, I think that's pretty much what hs2005 was saying as well before.
I'll need some coder's help to resolve that because I'm not a programmer as I mentioned before. I only shared what I was helped with and know to the best of my knowledge. If someone can figure out how to fix this specific issue, please send me a pm and then I'll test it, update the mod again. |
May 5th 2009
|
All times are GMT. The time now is 03:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|