vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Display Enhancements - Thread Listing by Letter with ABC Navigation Menu (https://vborg.vbsupport.ru/showthread.php?t=211939)

Chadi 04-21-2009 10:00 PM

Thread Listing by Letter with ABC Navigation Menu
 
1 Attachment(s)
Thread Listing by Letter with ABC Navigation Menu
(please nominate for mod of the month)

Should work fine on 3.6x and up

See screenshot: click here

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.
Same for "#" symbol. Shows only threads that begin with a number 0-9.

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" style="padding:5px;text-align:center">
        <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]">All</a></td>
        <td class="alt1" style="padding:5px;text-align:center">
        <a rel="nofollow" href="forumdisplay.php?f=$foruminfo[forumid]&letter=num">#</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
http://www.talkjesus.com/scriptural-bible-answers/

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
***********

August 24th 2009
  • added ability to sort by numbers (#). Thanks to Dylanblitz (see thread)
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
****************************************

* Please Note: No Support Provided via PM or Email, only in This Thread for those who click Install *

lazydesis 04-22-2009 10:16 PM

Man been waitin for this for almost 2 yrs now

Chadi 04-22-2009 10:27 PM

Quote:

Originally Posted by lazyindian (Post 1797026)
Man been waitin for this for almost 2 yrs now

Cool :)

Please click install and vote

Thanks

NolF 04-23-2009 03:35 PM

Hmmm doesn't entirely work :S

Code:

http://elrincondelmanga.com/foro/forumdisplay.php?f=19&letter=s
http://elrincondelmanga.com/foro/forumdisplay.php?f=19&letter=d

There should be far more entries :S

Also what happens if more than the result is larger than the maximum forumdisplay threads? the navigator links are not updated to reflect the query (add &letter=d)

Chadi 04-23-2009 04:36 PM

Nolf, that has nothing to do with the mod (re: 'more entries') because if it did, obviously the other letters would show the same problem as well.

Check your settings carefully including the code you pasted.

As you can see in my live demo, works perfectly fine.

NolF 04-23-2009 05:04 PM

Instead of pasting it where you said (nor that I could find it vbSEO feature?), I placed it directly in the forumdisplay template so I could apply it to many forums quickly and effectively

Code:

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<td colspan="30" height="16" class="thead">
    <strong>Buscar series por letra</strong><tr align="center">
        <td class="alt2" width="3%">
        <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=d">D</a></td>
</tr></td></table>

That code renders the linked I posted earlier, and essentially is the same you instructed.

The forum I linked to, has 1500 threads, and I know for a fact they all start with different letters, so there should be well over 50 starting with S and far more than two starting with D These letters are examples all letters are affected.

I see no reason why putting the code in the template should make any difference on how the mod works. I also checked if other hacks could be affecting it, and no other mods are using the forumdisplay_query.

Thanks for your assistance

TheLastSuperman 04-23-2009 05:10 PM

Tagged... will check out later today.

Thanks for doing this :D

oskqqqq 04-23-2009 05:24 PM

its working properly..nominated

here is the demo

Chadi 04-23-2009 09:11 PM

Quote:

Originally Posted by NolF (Post 1797612)
Instead of pasting it where you said (nor that I could find it vbSEO feature?), I placed it directly in the forumdisplay template so I could apply it to many forums quickly and effectively

Code:

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<td colspan="30" height="16" class="thead">
    <strong>Buscar series por letra</strong><tr align="center">
        <td class="alt2" width="3%">
        <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=d">D</a></td>
</tr></td></table>

That code renders the linked I posted earlier, and essentially is the same you instructed.

The forum I linked to, has 1500 threads, and I know for a fact they all start with different letters, so there should be well over 50 starting with S and far more than two starting with D These letters are examples all letters are affected.

I see no reason why putting the code in the template should make any difference on how the mod works. I also checked if other hacks could be affecting it, and no other mods are using the forumdisplay_query.

Thanks for your assistance

Sorry but I'm not an actual programmer. Just shared what others helped me create (this mod that is). All I can say is the mod does work. Something in your forum is clearly conflicting with this mod. Proof? My live demo and others confirming that it works. Try it out on a fresh installation / database and you'll see.

tommyturnage 04-24-2009 05:53 AM

Doesn't show ALL the threads under the selected letter

Fix the bugz and Ill click install again...


All times are GMT. The time now is 10:09 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
  • Page Generation 0.01297 seconds
  • Memory Usage 1,801KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete