vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How to edit a thread/post with vbulletin API (https://vborg.vbsupport.ru/showthread.php?t=125921)

jj 09-06-2006 06:29 AM

How to edit a thread/post with vbulletin API
 
Hi everyone,

didn't find something usefull in the search, so now I'm asking globally.

Anyone can show me how to edit a thread/post with the vbulletin api functions? Currently I'm using

PHP Code:

global $vbulletin;
if (
$postuserid == 0$postuserid $this->postuserid;
$threadinfo = array();
$threaddm =& datamanager_init('Thread_FirstPost'$vbulletinERRTYPE_ARRAY'threadpost');
$foruminfo fetch_foruminfo($postforumid);
$threaddm->set('forumid'$postforumid);
$threaddm->set('userid'$postuserid);
$threaddm->set('pagetext'$postpagetext);
$threaddm->set('title'$posttitle);
$threaddm->set('allowsmilie''1');
$threaddm->set('visible''1');
$threaddm->set_info('forum'$foruminfo);
$tid $threaddm->save();
build_forum_counters($postforumid);
return 
$tid

to create a thread within a function.

Some help would be very nice.

Cheers
Jens

ks_work 11-22-2006 02:49 PM

I'm second that. Also need to know how to edit/update existing thread/post.

thanks in advance
test of modification bb lll
lll

wahooka 12-04-2006 03:51 AM

third it ;)

Kungfu 12-04-2006 11:56 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=102418&page=2" target="_blank">https://vborg.vbsupport.ru/showt...=102418&page=2</a>


All times are GMT. The time now is 01:10 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.02607 seconds
  • Memory Usage 1,719KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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