Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 08-27-2008, 01:53 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default add a.b.c nav menu in specific forum

I'd like to add an abc navigation menu in my Scriptural Answers forum. That particular forum is sorted alphabetically by title. Now, to make it easier to browser, I'd like to add a menu on top of that forum from A-Z (links obviously), each alphabet link showing the result of that forum's thread titles that begin with that specific letter.

I'd appreciate any help on how to go about doing this. I already installed a mod that allows me to post html code per forum, so that part is done. On a side note, I have a sub-form too and I'd like to add the code below the sub-form category. That I do not know how to do. I also need to figure out how to create the search result based on title's first letter.
Reply With Quote
  #2  
Old 09-02-2008, 12:19 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would appreciate help on this if anyone knows how to accomplish this. Thanks.
Reply With Quote
  #3  
Old 09-08-2008, 09:02 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 chadi View Post
Would appreciate help on this if anyone knows how to accomplish this. Thanks.
Anyone?

Thanks in advance.
Reply With Quote
  #4  
Old 10-04-2008, 11:52 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about $50 payment via Paypal?

I would really appreciate any insight on how to get this possibly done.
Reply With Quote
  #5  
Old 10-05-2008, 12:51 PM
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
Location: at Home...
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a really quick solution. It adds the functionality globally, so it'll work for your subforum, too (so, just add the display to the forums you want it on).

This modifies forumdisplay.php to only show the threads that start with a certain letter if the url parameter exists. Otherwise, it'll be ignored and you'll see all threads.

The links you'll need to add are in the form of /forumdisplay.php/f=2&letter=a

Let me know if I came close.
Attached Files
File Type: xml product-asp_thread_listing.xml (901 Bytes, 15 views)
Reply With Quote
  #6  
Old 10-05-2008, 03:56 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. I'm using vbseo, so the url is going to be a little different

The forumid is 17 however, but that is not how it is displayed in the url due to the vbseo mod.

So, I tried this:

http://www.talkjesus.com/forumdisplay.php/f=17&letter=a

I got this:

Invalid Forum specified. If you followed a valid link, please notify the administrator

If I try it this way, I get a page not found

http://www.talkjesus.com/scriptural-...p/f=2&letter=a

--------------- Added 05 Oct 2008 at 12:57 ---------------

I got it to work this way with vbseo:

http://www.talkjesus.com/scriptural-answers/&letter=a

Thank you very much

--------------- Added 05 Oct 2008 at 13:07 ---------------

Actually, something is wrong here. It is only working for the letter A and C, no other letters work.

http://www.talkjesus.com/scriptural-answers
The letters are linked properly for sure
Reply With Quote
  #7  
Old 10-05-2008, 05:54 PM
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
Location: at Home...
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oops. Change the hook location to forumdisplay_query_threadid
Reply With Quote
  #8  
Old 10-05-2008, 06:04 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect, it works! Thanks so much
Reply With Quote
  #9  
Old 03-01-2009, 04:32 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure what happened, but this suddenly stopped working for some reason.

All of the letters are redirecting to the home page.

Letters are linked like this for example:

Code:
http://www.talkjesus.com/scriptural-bible-answers/&letter=h
Forum:
http://www.talkjesus.com/scriptural-...wers/&letter=h
Reply With Quote
Reply

Thread Tools
Display Modes

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:35 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.04080 seconds
  • Memory Usage 2,253KB
  • Queries Executed 14 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete