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?

ThorstenA 08-22-2010 12:27 PM

Quote:

Originally Posted by CarcaBot (Post 1923653)
...

That works fine on vbulletin 4.x ! Thanks!

leitel 11-12-2010 11:15 AM

Can I use this approach to add articles to vB CMS?

av8or1 04-24-2011 06:22 PM

Quote:

Originally Posted by ULFSoft (Post 1822304)
how can i attach file when i want to create a thread with data manager?
i think that i must use class_dm_attachment.php but how?
can anyone help me?
(i am new to vb programming!)

Hi-

Did you figure out how to add a post with attachments? Thanks!

rey maximo 12-05-2012 12:42 AM

Hello, sorry for my English, I use translator :)

I made a script to insert answers in the test environment I worked perfect (was with vb4.11), but to pass it to the production environment (vb4.2) throws an error on the line where does this:
new vB_DataManager_Post ($vbulletin, ERRTYPE_STANDARD);
If I comment the line, the script continues, so that's the problem, the error is this:
Fatal error: Registry object is not an object in front of it class_dm.php and a large array of data. I do not understand it may be going, or if I change something in the latest version of vBulletin. Please let me help,
thank you very much

bravura 12-05-2013 02:31 PM

Hello, thanks for all these helpful posts. But i have a couple question, i want to know about the Mobile API needed for showing all posts and Mobile API needed for creating new posts. Also if i can get the definition of these API that will be very much helpful for me. Thanks.

Lynne 12-05-2013 04:55 PM

You are talking about the Mobile Suite for 3.x and the API that you download from the members area in order to run the Mobile Suite? (This is the 3.x article forum.)

bravura 12-06-2013 01:28 PM

Hello,

I am doing Integration of my App with vBulletin Mobile API.
Can anyone suggest me what is the API method and what are the parameters needed for Creating Posts ?

tbworld 12-06-2013 01:52 PM

Quote:

Originally Posted by bravura (Post 2466243)
Hello,

I am doing Integration of my App with vBulletin Mobile API.
Can anyone suggest me what is the API method and what are the parameters needed for Creating Posts ?

OOPS - I did it again, this is for VB4, Sorry!

I can give you a few links that helped me out when I was going through the code. You may have already looked at them.

vBulletin Mobile API code directory:
Code:

/includes/api/6
Early documentation post about the API
http://www.vbulletin.com/vbcms/conte...334-mobile-api

Thread from vBulletin.com about the mobile API
http://www.vbulletin.com/forum/forum...-documentation

bravura 12-06-2013 01:53 PM

Quote:

Originally Posted by Lynne (Post 2465997)
You are talking about the Mobile Suite for 3.x and the API that you download from the members area in order to run the Mobile Suite? (This is the 3.x article forum.)

Thank you for your response.
I am not talking about the Mobile Suite for 3.x and i have not downloaded the API from the members area.
I am trying to integrate with vBulletin 4.2 using the REST Interface.




Thanks

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

Quote:

Originally Posted by tbworld (Post 2466247)
OOPS - I did it again, this is for VB4, Sorry!

I can give you a few links that helped me out when I was going through the code. You may have already looked at them.

vBulletin Mobile API code directory:
Code:

/includes/api/6
Early documentation post about the API
http://www.vbulletin.com/vbcms/conte...334-mobile-api

Thread from vBulletin.com about the mobile API
http://www.vbulletin.com/forum/forum...-documentation

Thank you for your response.
Yes I have already looked at them. But i couldn't able to figure out which API method is needed for Creating new Posts.
Also the following link doesn't say anything about the Parameters, required for the API method.
http://www.vbulletin.com/vbcms/conte...52-Method-List

I have logged in by calling the API method login_login and then registered the client by calling the API method api_init.
Now I have the Sessionhash, Accesstoken, clientid and Secret but i don't know Which API method i should call and what parameters i need to pass.


Thanks
Debashis

ZUCCO 12-06-2013 03:13 PM

Using codes :D . Just click on create new thread

bravura 12-06-2013 03:14 PM

Quote:

Originally Posted by tbworld (Post 2466247)
OOPS - I did it again, this is for VB4, Sorry!

I can give you a few links that helped me out when I was going through the code. You may have already looked at them.

vBulletin Mobile API code directory:
Code:

/includes/api/6
Early documentation post about the API
http://www.vbulletin.com/vbcms/conte...334-mobile-api

Thread from vBulletin.com about the mobile API
http://www.vbulletin.com/forum/forum...-documentation

Thank you for your response.
I have not downloaded any Mobile API code. I just wanted to Integrate using the REST Interface.
If downloading the Mobile API code will help then can you please suggest me How can i download it and from where ?


Thanks

tbworld 12-06-2013 03:40 PM

You posted to a vBulletin3 thread, my post regarded vBulletin4. Unfortunately, I am not the right person to ask about vBulletin3.

The mobile templates and API are already included in vBulletin 4. :)

Lynne 12-06-2013 05:00 PM

Quote:

Originally Posted by bravura (Post 2466248)
Thank you for your response.
I am not talking about the Mobile Suite for 3.x and i have not downloaded the API from the members area.
I am trying to integrate with vBulletin 4.2 using the REST Interface.

Then you are posting in the wrong place. This is an article about vB3, not vB4.

bravura 12-06-2013 06:45 PM

Quote:

Originally Posted by tbworld (Post 2466267)
You posted to a vBulletin3 thread, my post regarded vBulletin4. Unfortunately, I am not the right person to ask about vBulletin3.

The mobile templates and API are already included in vBulletin 4. :)

Thanks a lot for your help.
If the mobile templates and API are already included in vBulletin 4 can you please tell me from where i can get those APIs so that i can Integrate my Mobile App with them.



Thanks
Debashis

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

Quote:

Originally Posted by Lynne (Post 2466302)
Then you are posting in the wrong place. This is an article about vB3, not vB4.

Ok :)

Thank you for the help.


All times are GMT. The time now is 03:20 PM.

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.01519 seconds
  • Memory Usage 1,802KB
  • 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
  • (4)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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