Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Thread Listing by Letter with ABC Navigation Menu Details »»
Thread Listing by Letter with ABC Navigation Menu
Version: 2.00, by Chadi Chadi is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.7.x Rating:
Released: 04-21-2009 Last Update: 05-05-2009 Installs: 7
Uses Plugins Template Edits
 
No support by the author.

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
  1. Upload product attached (Go to admincp > manage products) (select 'allow overwrite' if upgrading)
  2. Edit FORUMDISPLAY template and below $navbar place the following code:
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:
?For his invisible attributes, namely, his eternal power and divine nature, have been clearly perceived, ever since the creation of the world, in the things that have been made. So they are without excuse.?- Romans 1:20
Check out my other mods:
Please show your appreciation by voting and clicking install :up:

*********** CHANGELOG
***********

May 5th 2009
  • fix plugin version number to 2.00 accordingly (forgot to update the version number on May 4th's update - sorry)
May 4th, 2009
  • improved column width layout
  • changed hook location to fix reported issues by a couple members
  • added "All" link to show all threads of forum
  • Cleaned up code to remove some unnecessary extra bits
  • replaced two different plugin versions with one, simplified plug-in instead
****************************************

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-23-2009, 10:15 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #23  
Old 04-23-2009, 10:30 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mark.B View Post
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.
Please copy/paste your code and a link to your live page that shows this. If it works fine (confirm if you're using vbseo or not), I'll update the mod to add this.

Thanks.
Reply With Quote
  #24  
Old 04-24-2009, 06:04 AM
Darat Darat is offline
 
Join Date: Aug 2004
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chadi View Post
That has nothing to do with the mod, but your forum settings.

If you look at my live demo, it shows literally all threads per letter.
Any idea what setting I have different to you - the Forum is set to default as "Show all threads from the beginning"
Reply With Quote
  #25  
Old 04-27-2009, 06:46 PM
HS2005's Avatar
HS2005 HS2005 is offline
 
Join Date: Jan 2006
Location: Earth
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #26  
Old 05-04-2009, 06:50 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

New Update


*********** CHANGELOG
***********

May 4th, 2009
  • improved column width layout
  • changed hook location to fix reported issues by a couple members
  • added "All" link to show all threads of forum
  • Cleaned up code to remove some unnecessary extra bits
  • replaced two different plugin versions with one, simplified plug-in instead
****************************************
Reply With Quote
  #27  
Old 05-04-2009, 07:13 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

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).

I Hope You Can Include those Functionalities on this Mod.

My Best Regards.

Reply With Quote
  #28  
Old 05-04-2009, 07:17 PM
HS2005's Avatar
HS2005 HS2005 is offline
 
Join Date: Jan 2006
Location: Earth
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #29  
Old 05-04-2009, 07:28 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #30  
Old 05-04-2009, 07:30 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by inciarco View Post
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).
The whole purpose of this mod is to display all threads beginning with the specific letter clicked. I'm not sure how you expect it to do this while retaining the other "criteria" you mentioned. If I'm not mistaken, it can only display one method at a time, not several.
Reply With Quote
  #31  
Old 05-04-2009, 08:04 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chadi View Post
The whole purpose of this mod is to display all threads beginning with the specific letter clicked. I'm not sure how you expect it to do this while retaining the other "criteria" you mentioned. If I'm not mistaken, it can only display one method at a time, not several.
If You Set the Number of Threads to be Displayed Per Page on ForumDisplay to a Number Lower than the Maximum Number of Filtered by Letter Threads on Any Forum that You Have, the List of Threads Will be Cut to the Maximum Number of Threads Set on the vBulletin Options.

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.

My Best Regards.

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04704 seconds
  • Memory Usage 2,339KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete