Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 12-31-2000 Last Update: Never Installs: 0
 
No support by the author.

I asked this a while back, but got no replies. So, I'll ask again...

Can someone please write for me a simple little script that will list (echo or print) a list of all the forums in the message board? Each forum should be listed as a hyperlink to that forum.

For why I need this, please look at my message board: http://www.jjr512.com/bbs/index.php

Notice that at the top of the message board, and on the top of every message board page (forum list, thread list, thread view, etc.) there are hyperlinks into each forum. Many users like to use these, because they can hop around the forums quicker with these than with anything else. I manually created these links, and I'd just like something that will do it automatically, in case my forums change.

Show Your Support

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

Comments
  #12  
Old 01-01-2001, 12:11 PM
Guest
 
Posts: n/a
Default

You dont have to edit the database at all to run something like this.
Reply With Quote
  #13  
Old 01-01-2001, 03:40 PM
Guest
 
Posts: n/a
Default

how do I add this custom field with php code?
can you please include better instructions on how to install it, and what to edit?

[Edited by Scaramanga_gold on 01-01-2001 at 12:49 PM]
Reply With Quote
  #14  
Old 01-01-2001, 06:53 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by vBoard.co.uk
You dont have to edit the database at all to run something like this.
You don't but I did because I got tired of having to update this small code snippet every time we added a forum to the system. So this way, I added a couple of fields to the table and set them when I create the new forum and everything just adjusts around it.

We currently have 19 public forums and 6 private forums for community Management. There are also 9 categories. If I add more (I have two forums that could be broke up right now) then I would have to change the code, however with my method, I don't. This also makes it easy for the other Administrator who doesn't touch the code to know that things are kept up to date and allows our Network Administrator to know that the listing is correct as we want it.

p.s. The other field I added allows you to turn post counting on and off per forum.
Reply With Quote
  #15  
Old 01-01-2001, 07:12 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Scaramanga_gold
how do I add this custom field with php code?
can you please include better instructions on how to install it, and what to edit?

[Edited by Scaramanga_gold on 01-01-2001 at 12:49 PM]
It was meant more as a starting point so that you could create your own file. Other than creating the column in the Forum table and editing the Catagory select, there isn't anything else to install.

I would suggest making the column using phpMySQLAdmin as it is easiest this way.
Reply With Quote
  #16  
Old 01-01-2001, 08:43 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by JJR512
Actually, here's another question: Can we exclude forums that are either really Archives, or else are just closed?

$query = "SELECT * FROM forum WHERE Active=1 ORDER BY title ASC";

add the WHERE Active=1 and it will only show the active forums...
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 04:28 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.04065 seconds
  • Memory Usage 2,236KB
  • Queries Executed 20 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)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
  • 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