Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 26 Feb 2016, 10:41
jagtpf jagtpf is offline
 
Join Date: Mar 2015
Real name: Geoff
Adding posts to nominated thread

Could someone point out to me how to copy the content of the first post in a thread and send that as a post to a nominated thread. Can it be done using datamanager?

I have a .php working that sends the URL of a nominated thread into a new thread.
Coding Problem.

Looking around there's a comment in vB4 posts that references a vB3 article Create New Post that I could follow to add posts to a thread - but what I'm not sure of is how to obtain the text content of the source.

Could anyone provide a few pointers .....
Reply With Quote
  #2  
Old 26 Feb 2016, 15:38
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Suppose you have the threadid of the thread whose first post content you want to grab, stored in $threadid. You can the query the database as follows:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now you have the content of the first post in the thread stored in $postcontent.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:51.

Layout Options | Width: Wide Color: