FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » FUDAPI: Creating a forum?
Show: Today's Messages :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
FUDAPI: Creating a forum? [message #187810] Sun, 10 November 2019 11:02 Go to next message
BugLaden is currently offline  BugLaden   Canada
Messages: 216
Registered: February 2002
Location: Westminster, MD
Karma: 0
Senior Member
remove from buddy list
stop ignoring messages by this user
I don't see a function in the API to create a forum.
http://cvs.prohost.org/index.php?title=FUDAPI

How hard would it be?


-=BugLaden
Re: FUDAPI: Creating a forum? [message #187816 is a reply to message #187810] Sat, 16 November 2019 22:54 Go to previous messageGo to next message
BugLaden is currently offline  BugLaden   Canada
Messages: 216
Registered: February 2002
Location: Westminster, MD
Karma: 0
Senior Member
remove from buddy list
stop ignoring messages by this user
So this statement seemed to work in my 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()
			)
		'); 

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.


-=BugLaden

[Updated on: Sat, 16 November 2019 22:55]

Report message to a moderator

Message by fennecfox is ignored  [reveal message]  [reveal all messages by fennecfox]  [stop ignoring this user] Go to previous messageGo to next message
Message by Lou is ignored  [reveal message]  [reveal all messages by Lou]  [stop ignoring this user] Go to previous message
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: FIX: FUDAPI niggles
Next Topic: Map BBCode
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Apr 27 05:59:31 EDT 2025

Total time taken to generate the page: 0.05447 seconds