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

Chadi 04-24-2009 10:58 AM

Quote:

Originally Posted by tommyturnage (Post 1797951)
Does show ALL the threads under the selected letter

Fix the bugz and Ill click install again...

There is no bug in this mod!! Look my live demo, it works! Fix your setup and then you try again.

tommyturnage 04-27-2009 03:18 AM

It works for you, not me.

I followed the steps and it didnt work.

"I" shouldnt have to "fix" anything

Chadi 04-27-2009 03:23 AM

Quote:

Originally Posted by tommyturnage (Post 1799733)
It works for you, not me.

I followed the steps and it didnt work.

"I" shouldnt have to "fix" anything

Then I can't help you, but please refrain from being rude. You did not give me anything for free, I gave you this for free. If you don't like the mod, then don't install it. Move on to something else, but don't complain. If it works on my site and many others who installed it, then obviously its not the mod. That's common sense, don't you think so?

I won't give you any support at all. I really don't like your attitude.

l_amhed 04-27-2009 06:38 PM

Lex talionis..Hmmm

I'll give this mod a shot asap.

Chadi 05-04-2009 06:49 PM

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

Chadi 05-05-2009 10:17 PM

May 5th 2009
  • fix plugin version number to 2.00 accordingly (forgot to update the version number on May 4th's update - sorry)
Download the new updated plug-in file and re-upload in your product manager area. Allow overwrite.

mr.trichomes 05-05-2009 11:23 PM

very nice mod just what i need, do you know how i could have this enabled for certain forum id's only?

Chadi 05-06-2009 12:02 AM

Quote:

Originally Posted by mr.trichomes (Post 1805416)
very nice mod just what i need, do you know how i could have this enabled for certain forum id's only?

Please click install then I"ll provide you support

mr.trichomes 05-06-2009 12:14 AM

oh my bad, will click installed, im about to go home from school if you can have an answer for me before i get back your the best lol

Chadi 05-06-2009 12:37 AM

Use this code. Replace the red forum# portion with your own forum ID number. If you want more than one, separate with a comma. I tested this on my forum and it works flawlessly.

Code:

<if condition="in_array($foruminfo[forumid], array(forum#))">
<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 />
</if>


mr.trichomes 05-06-2009 02:11 AM

ahhh thank you so much Chadi, i tried to figure it out myself and failed miserably

Chadi 05-06-2009 06:52 PM

Glad you like it :)

NolF 05-10-2009 01:39 PM

Lovely, thanks for the update, works like a charm ^^

MrKramer 05-11-2009 01:49 PM

When I click on 1 of the letters... it only shows all results which is on the 1st page...
For example:
if I have 10 threads with the letter M
and 3 of them are on the 1st page... than only those 3 are visible.

Chadi 05-11-2009 01:58 PM

Quote:

Originally Posted by MrKramer (Post 1808596)
When I click on 1 of the letters... it only shows all results which is on the 1st page...
For example:
if I have 10 threads with the letter M
and 3 of them are on the 1st page... than only those 3 are visible.

Support is provided to those who click install only.

NolF 05-12-2009 12:48 AM

@MrKramer
I added &pp=200 to the title to show 200 results in a page, you can change it to more or less depending how many threads you have. I'm not sure if it is limited by an ACP option which restricts the number of threads in forumdisplay though.

snoop1979 05-16-2009 06:37 PM

Hi there thanks for this mod i've been waiting for something like this for a long time.

I have a lil problem it arrange the threads by the selected letter but when i go to the second page it show the normal second page not alphabetically
vbseo is installed could be that?

Chadi 05-17-2009 01:48 AM

Quote:

Originally Posted by snoop1979 (Post 1812023)
Hi there thanks for this mod i've been waiting for something like this for a long time.

I have a lil problem it arrange the threads by the selected letter but when i go to the second page it show the normal second page not alphabetically
vbseo is installed could be that?

Please consider reading the OP. Support is provided for those who click install only.

alik4277 05-17-2009 01:22 PM

Quote:

Originally Posted by snoop1979 (Post 1812023)
Hi there thanks for this mod i've been waiting for something like this for a long time.

I have a lil problem it arrange the threads by the selected letter but when i go to the second page it show the normal second page not alphabetically
vbseo is installed could be that?

Same here

l_amhed 05-17-2009 07:32 PM

Quote:

Originally Posted by alik4277 (Post 1812365)
Same here

Yep same here too (but not VBSEO installed), but I guess I won't have any help cause I didn't click on the 'installed' link since the product does not work as expected for now.

synseal 05-17-2009 10:21 PM

Loving this and working fine, cheers!, installed and nominated.

MrKramer 05-20-2009 11:41 AM

Quote:

Originally Posted by NolF (Post 1809052)
@MrKramer
I added &pp=200 to the title to show 200 results in a page, you can change it to more or less depending how many threads you have. I'm not sure if it is limited by an ACP option which restricts the number of threads in forumdisplay though.

TY TY TY very much.
This is awsome.

There is just 1 more question. Ive orderd my website to set the newest thread on top.
So even when I use this alphabetic search... it will do the same.

Is there some way to keep the forum normal and only when I use this alphabetic search... that it will be orderd alphabetically?

NolF 05-20-2009 12:19 PM

@MrKramer
Not sure what you are asking for there :S

MrKramer 05-30-2009 03:05 AM

Quote:

Originally Posted by NolF (Post 1814038)
@MrKramer
Not sure what you are asking for there :S

How do i make it in alphabetic order (after i searched on a letter)

l_amhed 05-30-2009 03:44 PM

Quote:

Originally Posted by snoop1979 (Post 1812023)
I have a lil problem it arrange the threads by the selected letter but when i go to the second page it show the normal second page not alphabetically
vbseo is installed could be that?

Will this be fixed someday ?
I can't click on "install" since this hack does not 100% work..

NolF 06-02-2009 06:59 AM

Quote:

Originally Posted by MrKramer (Post 1819945)
How do i make it in alphabetic order (after i searched on a letter)

Ahhh!! Just add
&sort=title&order=asc

that will sort it alphabetically (thread title) and ascending so the least would look (here is a demo at my site)
Sally eats pie
Sand in my shoes
Socrates was cool

l_amhed 06-02-2009 08:34 AM

But what the point in doing this ?
You click on the "G" letter, you've got a first page with all the G letter starting threads, then you click on the next page link and got a page with threads starting with the letter "D" ...

Things are not supposed to work like this with this (very promising at first) hack.

Chadi 06-03-2009 11:02 PM

Quote:

Originally Posted by l_amhed (Post 1821889)
But what the point in doing this ?
You click on the "G" letter, you've got a first page with all the G letter starting threads, then you click on the next page link and got a page with threads starting with the letter "D" ...

Things are not supposed to work like this with this (very promising at first) hack.

I'm already aware of the 'other pages' problem/bug.

I'm not a programmer, so I'm trying to get someone to help me fix that.

jankoalek 07-09-2009 09:28 PM

Installed...and waiting for a fix

yotsume 07-10-2009 06:20 AM

I'll watch this but I can not install this until all bugs are fixed.

Great Concept! Just post your request for a coder to help you in paid support and this will get fixed.

It would be a shame to not get any bugs fixed for this in a timely manner.


All times are GMT. The time now is 07:21 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.01921 seconds
  • Memory Usage 1,913KB
  • 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
  • (5)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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