Log in

View Full Version : ForumID - categorieID ? equivalent


Ghostt
03-29-2011, 06:18 PM
is there a equivalent for the CategorieID (https://vborg.vbsupport.ru/forumdisplay.php?f=211) like in comparison with forumID (https://vborg.vbsupport.ru/forumdisplay.php?f=111) ?

examples:

CategorieID (https://vborg.vbsupport.ru/forumdisplay.php?f=211)
forumID (https://vborg.vbsupport.ru/forumdisplay.php?f=111)


what i want is the categorieID equivalent for this condition

<if condition="in_array($thread['forumid'], array(1,2,3,6))"></if>

Lynne
03-30-2011, 02:37 AM
The categoryid is the forumid.

Ghostt
03-30-2011, 02:42 AM
but the condition seems not to work with categorieID why?

Lynne
03-30-2011, 02:52 AM
Are you trying to do a condition that only uses the category id to cover all the child forums also? I think you need to first get the child forumids. Take a look at the API (in Quick Links dropdown) and I think there is a function something like fetch_child_ids or fetch_child_forumids and you can look that up.

Ghostt
03-30-2011, 03:16 AM
yes thats what i am trying to do. but i have no idea how to combinate this childforums api with the condition code :(

Lynne
03-30-2011, 02:00 PM
Play with it and see. I believe you get a array from the function. then you can use the array in your condition.

Post what you try and what the results are.

Ghostt
03-30-2011, 09:57 PM
ist it this function?
fetch_child_forums

fetch_child_forums (line 389)
void fetch_child_forums ( $parentid, [ $return = 'STRING'], [ $glue = ','])

$parentid
$return
$glue



if yes, that shouldnt work or?
<if condition="fetch_child_forums($thread['forumid'], fetch_child_forums(1,2,3,6))"></if>

Lynne
03-30-2011, 10:23 PM
No. You would want to use the function first to fetch the child forums (in a plugin) and then use the results of that plugin in your condition.

Ghostt
03-30-2011, 10:33 PM
ok i thought it would be easyer , so i have no chance :(
but thanks for trying.

--------------- Added 1301585586 at 1301585586 ---------------

so cant anyone help me ?

Ghostt
05-24-2014, 02:21 AM
after 3 years im still need solution again o.o
i wonder that no one needs it because in google i also found notghing beside a try of someone and no solutions.

masterross
07-02-2014, 02:39 PM
Hi,

If you are still looking for childforums solution look here:

https://vborg.vbsupport.ru/showthread.php?t=312626