vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   How to make a forum list? (https://vborg.vbsupport.ru/showthread.php?t=6155)

01-01-2001 12:11 PM

You dont have to edit the database at all to run something like this.

01-01-2001 03:40 PM

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]

01-01-2001 06:53 PM

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.

01-01-2001 07:12 PM

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.

01-01-2001 08:43 PM

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


All times are GMT. The time now is 12:18 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.00965 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)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
  • (5)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