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:
FUDforum 3.0+
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=fennecfox wrote on Sun, 20 December 2020 03:16]If you append a call to rebuild_forum_cat_order(), the forum index will show the newly-created forum. The rebuild_forum_cat_orders() function is in include/cat.inc. I am guessing that FUDforum caches the forum index info because database calls take time and forums don't get added or deleted that often. So one has to update that cache. I didn't find a way to do that via the API. [/quote]
File Attachments:
Allowed File Extensions:
jpg jpeg png gif txt doc gz bz2 inc php zip diff
Maximum File Size:
150KB
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
Re: new forums created via api are not visibile
Sun, 20 December 2020 03:16
fennecfox
Karma:
If you append a call to rebuild_forum_cat_order(), the forum index will show the newly-created forum. The rebuild_forum_cat_orders() function is in include/cat.inc.
I am guessing that FUDforum caches the forum index info because database calls take time and forums don't get added or deleted that often. So one has to update that cache. I didn't find a way to do that via the API.
new forums created via api are not visibile
Wed, 28 October 2020 06:07
atrebbi
Karma:
If I create a new forum via API, i.e with the following code, the forum seems ok in administration panel but is not visibile in frontend
If I change category to the forum, the problem get fixed ;
am I missing anything in forum creation ? I noticed there's some sort of synch command (for groups, that are created together with forum, do they need synch?)
==================================================
$f = new fud_forum;
$f->cat_id = 8;
$f->name = $newsgroup;
$areadescr = $echoareadesc[strtoupper($newsgroup)];
if (!$areadescr)
$areadescr = "New Echomail Area ".$newsgroup;
$f->descr = $areadescr;
$f->max_file_attachments = 0;
$f->max_attach_size = 2048;
$f->forum_opt = 10;
$fid = $f->add('LAST');
Current Time:
Sun Sep 15 03:39:32 EDT 2024
Total time taken to generate the page: 0.05000 seconds