vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Create Posts (https://vborg.vbsupport.ru/showthread.php?t=102418)

ewelin 10-08-2009 09:48 AM

I have not, I'm assuming I pass it the thread id correct?

--------------- Added [DATE]1255013971[/DATE] at [TIME]1255013971[/TIME] ---------------

Quote:

Originally Posted by amcd (Post 1896499)
Did you try build_thread_counters?

That did the trick!!! Thanks!!!

CarcaBot 12-01-2009 12:32 PM

Someone tried to do this in version 4 ?

Because i can't build thread information and forum information .

It post the thread but i can see only title without content. How can i build thread information?

Lynne 12-01-2009 02:14 PM

Quote:

Originally Posted by CarcaBot (Post 1923499)
Someone tried to do this in version 4 ?

Because i can't build thread information and forum information .

It post the thread but i can see only title without content. How can i build thread information?

I just ran it just fine as a quick cron job on my site using the code here - https://vborg.vbsupport.ru/showpost....3&postcount=39

ragtek 12-01-2009 02:28 PM

Edit:

It's working for me.
Strange that it first didn't work

Lynne 12-01-2009 02:41 PM

1 Attachment(s)
Quote:

Originally Posted by ragtek (Post 1923554)
He's right.
In vB4 it's not working this way.
The post is created, but with my code i can't see it in the recent posts widget and also i can't see it in the thread^^

I don't have the cms installed on the site I just tested it on, so I don't know about the recent posts widget thing, but I can definitely see the thread/post on my site and it has the content from the code in it.

ragtek 12-01-2009 02:59 PM

Here's a codesnippat how it's working for me
http://ragtek.org/blog/vbulletin/vbu...sch-erstellen/

CarcaBot 12-01-2009 06:22 PM

@Lynne, i tried all posibilities and no way to work like old coe.
@ragtek i will try this soon, but let me know how to get ID of new thread , if work your code.

thanks.

ragtek 12-01-2009 06:46 PM

Strange.
Now it's also working with the damanager:D

CarcaBot 12-01-2009 06:58 PM

;) interesting..
i tried with this code:
Code:

<?
require_once('./global.php');
require_once('./includes/class_dm.php');
require_once('./includes/class_dm_threadpost.php');
require_once('./includes/functions_databuild.php');

$forumid = "44";

$threadinfo = array();
    $foruminfo = fetch_foruminfo($forumid);
    $threaddm =& datamanager_init('Thread_FirstPost', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
    $threaddm->set('forumid', $forumid);
    $threaddm->set('userid', "1");
    $threaddm->set('pagetext', 'textul meu');
    $threaddm->set('title', 'titlul meu');
    $threaddm->set('allowsmilie', '1');
    $threaddm->set('visible', '1');
    $threaddm->set_info('forum', $foruminfo);
    $threadid = $threaddm->save();
        build_forum_counters($forumid);
       



?>

It make a thread on that forumid but i can't see the content.
The content is also showed in alt tag of link but in thread nothing.

--------------- Added [DATE]1259749240[/DATE] at [TIME]1259749240[/TIME] ---------------

awesome :)) now is working...
I don't understand why not yesterday ;)

ilbianconiglio 07-13-2010 01:28 PM

I'm not using the script into the forum root. I'm using it outside in my site.

Someone can tell me which are the files and defines required to run this script?


All times are GMT. The time now is 09:25 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.01309 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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