Announcement

Collapse
No announcement yet.

Help with fetch_child_forums

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • tehtide
    replied
    10-4... thanks.

    Leave a comment:


  • Andy Huang
    replied
    Sorry, we cannot provide custom coding support. Please venture over to vbulletin.org for assistance on this matter.

    Leave a comment:


  • tehtide
    started a topic Help with fetch_child_forums

    Help with fetch_child_forums

    I'm in the process of creating a page for out vbulletin that will have each of the forums latest posts in a tabbed area for ease of organization.

    the code I'm developing is using a function fetch_child_forums and I'm having an issue with it...

    Basically I'm calling the function in a for/next loop as the code loops through each of the tabs and setups the forum views. I'm calling it like this:
    $forumids = array(5,7,13);
    foreach ($forumids as $forumid)
    {
    $childforums = fetch_child_forums($forumid, 'ARRAY');

    // do stuff
    unset($childforums);
    }

    My problem is that everytime I loop the return from fetch_child_forums is the previous child fourms, plus the new child forums. It is like that the new child forums are stacked ontop of the array instead of destroying the array and creating a new one.

    I've got to be missing something here...

    thanks in advance
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X