The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Thread Listing by Letter with ABC Navigation Menu Details »» | ||||||||||||||||||||||||||||
Thread Listing by Letter with ABC Navigation Menu
Developer Last Online: Nov 2023
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"> <td colspan="30" height="16" class="thead"> <strong>Search topics by first letter</strong><tr align="center"> <td class="alt2"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]">All</a></td> <td class="alt1"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=a">A</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=b">B</a></td> <td class="alt1"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=c">C</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=d">D</a></td> <td class="alt1"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=e">E</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=f">F</a></td> <td class="alt1"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=g">G</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=h">H</a></td> <td class="alt1"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=i">I</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=j">J</a></td> <td class="alt1"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=k">K</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=l">L</a></td> <td class="alt1"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=m">M</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=n">N</a></td> <td class="alt1"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=o">O</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=p">P</a></td> <td class="alt1"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=q">Q</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=r">R</a></td> <td class="alt1"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=s">S</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=t">T</a></td> <td class="alt1"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=u">U</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=v">V</a></td> <td class="alt1"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=y">Y</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=x">X</a></td> <td class="alt1"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=y">Y</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=Z">Z</a></td> </tr> </table> <br /> 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
Show Your Support
|
Comments |
#12
|
||||
|
||||
Quote:
If you look at my live demo, it shows literally all threads per letter. |
#13
|
||||
|
||||
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 |
#14
|
||||
|
||||
Quote:
|
#15
|
||||
|
||||
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 |
#16
|
||||
|
||||
Thanks. Actually I was thinking of one link that shows all numbers such as "0-9". Do you know how this can be done?
|
#17
|
||||
|
||||
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? |
#18
|
|||
|
|||
works great thank you
|
#19
|
||||
|
||||
Basically, the same way each letter has its own column in the table - I'd like to add a "0-9" column before letter A in the same table. What would the link look like in that case? It should show all threads that begin with a number, any number.
|
#20
|
|||
|
|||
i think ist great all number in the same column
|
#21
|
||||
|
||||
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 --> </if> Code:
<if condition="$show['threadslist']"> <!-- threads list --> Add (Change the "yourdomain.com" for the URL of your Forum). Code:
<!-- Begin Letter ABC Navigation --> <if condition="in_array($bbuserinfo[usergroupid], array(2,5,6,7)) and $show['threadslist']"> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> <td colspan="38" height="16" class="thead"> <strong>Search topics by first letter</strong><tr align="center"> <td class="alt1" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]">All</a></td> <td class="alt2" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=a">A</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=b">B</a></td> <td class="alt2" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=c">C</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=d">D</a></td> <td class="alt2" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=e">E</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=f">F</a></td> <td class="alt2" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=g">G</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=h">H</a></td> <td class="alt2" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=i">I</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=j">J</a></td> <td class="alt2" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=k">K</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=l">L</a></td> <td class="alt2" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=m">M</a></td> <td class="alt1" style="padding:5px;text-align:center"> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=n">N</a></td> <td class="alt2" style="padding:5px;text-align:center"> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=?">?</a></td> <td class="alt1" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=o">O</a></td> <td class="alt2" style="padding:5px;text-align:center"> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=p">P</a></td> <td class="alt1" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=q">Q</a></td> <td class="alt2" style="padding:5px;text-align:center"> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=r">R</a></td> <td class="alt1" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=s">S</a></td> <td class="alt2" style="padding:5px;text-align:center"> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=t">T</a></td> <td class="alt1" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=u">U</a></td> <td class="alt2" style="padding:5px;text-align:center"> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=v">V</a></td> <td class="alt1" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=w">W</a></td> <td class="alt2" style="padding:5px;text-align:center"> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=x">X</a></td> <td class="alt1" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=y">Y</a></td> <td class="alt2" style="padding:5px;text-align:center"> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=Z">Z</a></td> <td class="alt1" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=0">0</a></td> <td class="alt2" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=1">1</a></td> <td class="alt1" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=2">2</a></td> <td class="alt2" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=3">3</a></td> <td class="alt1" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=4">4</a></td> <td class="alt2" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=5">5</a></td> <td class="alt1" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=6">6</a></td> <td class="alt2" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=7">7</a></td> <td class="alt1" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=8">8</a></td> <td class="alt2" style=“padding:5px;text-align:center”> <a rel="nofollow" href="http://yourdomain.com/forumdisplay.php?f=$foruminfo[forumid]&letter=9">9</a></td> </tr> </table> <br /> </if> <!-- End 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'))) { if(isset($_GET['letter'])){ $vbulletin->input->clean_GPC('r', 'letter', TYPE_STR); $letter = $db->escape_string($vbulletin->GPC['letter']); $hook_query_where .= " AND LEFT(thread.title, 1) = '$letter'"; } } Code:
if (is_member_of($vbulletin->userinfo, explode(',','2,5,6,7'))) { and Code:
} Step 4. ENJOY !!! My Best Regards. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|