vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   VB API Functions (https://vborg.vbsupport.ru/showthread.php?t=306455)

MagicPID 12-30-2013 06:19 PM

VB API Functions
 
Is there a way to do the following using the VB API?
  • Get a list of all threads a member has posted (in specific forums if possible).
  • Get all posts which belong to a specific thread.
  • Reply to a thread.
  • Get the usergroups of a member.

The vB API docs aren't doing me much help.

Many thanks!

Lynne 12-30-2013 06:46 PM

Are you talking about using the mobile api or using the vb4 functions?

MagicPID 12-30-2013 07:02 PM

Quote:

Originally Posted by Lynne (Post 2471381)
Are you talking about using the mobile api or using the vb4 functions?

To be honest, either should work. I'm new to developing VB plugins and I usually edit the DB directly using PHP/MySQL but I would rather use a better method.

Lynne 12-30-2013 08:12 PM

Just looking at your list, I believe you need to query the database. I can't think of any function that does any of the things you are wanting.

Scandal 12-30-2013 08:14 PM

Quote:

Originally Posted by MagicPID (Post 2471371)
  • Reply to a thread.
  • Get the usergroups of a member.

1. When you try to do a reply/new thread, it's better to use vbulletin's included datamanagers.
2. Maybe the function fetch_userinfo($userid) ? ;)

MagicPID 12-30-2013 10:18 PM

Quote:

Originally Posted by Scandal (Post 2471397)
1. When you try to do a reply/new thread, it's better to use vbulletin's included datamanagers.
2. Maybe the function fetch_userinfo($userid) ? ;)

Thabks. Is there DM documentation on posts somewhere?

nhawk 12-30-2013 10:22 PM

<a href="http://www.vbulletin.com/docs/html/main/data_managers" target="_blank">http://www.vbulletin.com/docs/html/main/data_managers</a>


All times are GMT. The time now is 12:38 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.01120 seconds
  • Memory Usage 1,717KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete