vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   ForumID - categorieID ? equivalent (https://vborg.vbsupport.ru/showthread.php?t=261143)

Ghostt 03-29-2011 06:18 PM

ForumID - categorieID ? equivalent
 
is there a equivalent for the CategorieID like in comparison with forumID ?

examples:

CategorieID
forumID


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

Quote:

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 [DATE]1301585586[/DATE] at [TIME]1301585586[/TIME] ---------------

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.


All times are GMT. The time now is 02:45 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01525 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete