Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Get all forums in an array
Avatar
Kilomoana
Member
Free Members
Offline
Jan 14, 2013 - 7:33 am

Hi there,

is there a function or a possibility to get all gorups and forums in an array?

Greetings

Alex

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jan 14, 2013 - 8:21 am

Assuming you mean outside of the scope of the forum then this should do it:

sp_forum_api_support();
$arrayVar = new spGroupView($ids, true);

If inside the scope then you probably wont need the first line.

This should give you an object/array with lots of relevant data. To see what you get with this you can always use the Data Inspector (Admin Toolbox) and turn on the spGroupView option and then just run the forum page.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626