Forum Search:
FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.
Calendar
Search
Help
Members
Control Panel
Logout [ CommonCrawl [Bot] ]
Home
Post Form
Logged in user:
CommonCrawl [Bot] [
logout
]
Forum:
Plugins and Code Hacks
Title:
Poll:
[CREATE POLL]
Message Icon:
No Icon
Smiley Shortcuts:
[
list all smilies
]
Formatting Tools:
Size
1
2
3
4
5
6
7
Color
Sky Blue
Royal Blue
Blue
Dark Blue
Orange
Orange Red
Crimson
Red
Firebrick
Dark Red
Green
Lime Green
Sea Green
Deep Pink
Tomato
Coral
Purple
Indigo
Burly Wood
Sandy Brown
Sienna
Chocolate
Teal
Silver
Font
Arial
Times
Courier
Century
Body:
Forum Options:
HTML
code is
off
BBcode
is
on
Images
are
on
Smilies
are
on
Editing Time Limit
: Unlimited
[quote title=BugLaden wrote on Sat, 16 November 2019 22:54]So this statement seemed to work in my code: [code] //Create the forum require_once "/home2/bugladen/cake/tobacconerd/FUDforum/include/GLOBALS.php"; require_once "/home2/bugladen/cake/tobacconerd/FUDforum/scripts/fudapi.inc.php"; $id = db_qid('INSERT INTO '. $GLOBALS['DBHOST_TBL_PREFIX'] .'forum ( cat_id, name, date_created ) VALUES ( '. GroupsController::FORUM_CATEGORY .', '. _esc($group->name) .', now() ) '); [/code] FORUM_CATEGORY is a constant set to the id of an existing category in the forum The forum appears in the Admin->Forum Management just fine. It just doesn't appear in the forum index page at all. Not sure why. [/quote]
File Attachments:
Allowed File Extensions:
jpg jpeg png gif txt doc gz bz2 inc php zip diff
Maximum File Size:
1024KB
Maximum Files Per Message:
5
Options:
Post Notification
Notify me when someone replies to this message.
Include Signature
Include your profile signature.
Disable smilies in this message
Topic View
Post by Lou is ignored
Re: FUDAPI: Creating a forum?
Mon, 13 January 2020 10:53
fennecfox
Karma:
I was able to create a forum in a script, but it wouldn't show up until I added rebuild_forum_cat_order() afterwards.
That function is in include/cat.inc. Good luck!
Post by BugLaden is ignored
Post by BugLaden is ignored
Current Time:
Sat May 24 08:35:35 EDT 2025
Total time taken to generate the page: 0.06467 seconds