Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 07-21-2004, 11:44 PM
sean088 sean088 is offline
 
Join Date: Apr 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Trying to build new navigation...

Hello, I'm trying to build some new navigation based on categories, and forums. I think if you see my html, you'll see what I want to accomplish:

HTML Code:
<tr><td class="rootCategory"><a href="correct linking">Category 1</a></td></tr>
<tr>
  <td class="subCategory">
    &nbsp;<a href="correct linking">Forum 1</a><br>
    &nbsp;<a href="correct linking">Forum 2</a><br>
    &nbsp;<a href="correct linking">Forum 3</a><br>
  </td>
</tr>
And that will repeat for each category and it's forums. I only need to go as deep as shown, no need to show sub-sub-cats... I added an image attachment so you can see what I'm trying to accomplish.

I've looked around a bit, and I'm pretty much pulling my hair out right now (information overload I think). If someone could just get me started, that would be more than enough.

Thanks all!
-Sean
Attached Images
File Type: jpg post.JPG (7.9 KB, 0 views)
Reply With Quote
  #2  
Old 07-22-2004, 07:34 AM
CarCdr CarCdr is offline
 
Join Date: Apr 2004
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perhaps I do not understand what you are after, but vB has this capability. You can define a forum to be a category only -- a heading for other forums. When adding a category forum, set "Act as forum" to no. To add a forum to this category, select "Add Child Forum" from the "Controls" drop-down menu in "Forum Manager".
Reply With Quote
  #3  
Old 07-22-2004, 09:28 AM
sean088 sean088 is offline
 
Join Date: Apr 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right, I'm already doing that. What I'm trying to build is a new navigation for it. My forums are enclosed by a custom header and footer, and I'd like the left navigation to contain the categories/forums. Similar to how they are displayed on the front page, but not quite that complicated. The image I attached in the post above is what my left navigation looks like...
Reply With Quote
  #4  
Old 07-22-2004, 10:02 AM
CarCdr CarCdr is offline
 
Join Date: Apr 2004
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So you have a left HTML frame that should contain only the forum names and, for the names that are not simply categories, a user should be able to click the forum name and have that forum displayed in the right-hand frame?

You will want to use cache_ordered_forums to build the list of forums in the proper display order. Example:
Code:
require_once('./includes/functions_forumlist.php');
...
cache_ordered_forums();
The call to "cache_ordered_forums" without parameters specifies that you do not want any counters set and that you want only forums that are not invisible (i.e., active). After the call, the global array "$iforumcache" will contain the list of ordered forum information.

What you are doing is similar to constructing the forum jump drop-down menu. Take a look at the function "construct_forum_jump" in "includes/functions.php".
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 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.01935 seconds
  • Memory Usage 2,207KB
  • 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_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (1)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete