Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 04 Jul 2017, 18:12
danchipo danchipo is offline
 
Join Date: Jul 2017
Question Insert a post from Wordpress to Vbulletin

Hello Everybody, I have a question here

I have several wordpress sites, when I publish the article in the wordpress backend I want it to be automatically published in my vbulletin 5.1, I have created a code where the steps are as follows:
1. At the time of publishing in wordpress automatically goes to a function in the file functions.php, I created several functions to change the format to the article and to be able to insert it in the respective tables of vbulletin correctly and same to how they are saved Articles published since the same vbulletin.
2.In the format of the appropriate text for vbulletin we insert in the table "Node" the respective data with the table.
3. Once the new nodeid is created in step 2, insert in the table noderead the new id along with the other respective fields.
4. In the text table insert the content of the article together with the nodeid created in point 2.

It is inserted correctly in all tables of vbulletin together with their respective data, almost everything is displayed correctly, lists of articles appears but when entering an article the content does not appear, also can not delete these Articles from the front, content if it is being saved in the text table correctly along with its respective id relation.

I do not know that I can be missing so that the content of the article is shown and to be managed to eliminate, maybe I'm missing some more insert in some table that I have not been able to see.

I would appreciate any help or information not taken into account for this code, thank you very much for your time.

Last edited by danchipo; 04 Jul 2017 at 18:33.
Reply With Quote
  #2  
Old 06 Jul 2017, 22:37
danchipo danchipo is offline
 
Join Date: Jul 2017
Nobody can help me with this?
Reply With Quote
  #3  
Old 07 Jul 2017, 00:32
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
You should use the vB5 API to create nodes instead of directly inserting records in the database.

http://vb5support.com/resources/api/

There's a blog on how to login to vB5 using the API. This is not exactly what you need but it will show you how to use the API.

https://www.vbulletin.com/forum/blog...n-your-website

Hope this helps you get started.
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer

GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mini Mods Wordpress BlogMail Mod - Auto create Blog posts on Wordpress with VB doa24uk vBulletin 3.8 Add-ons 25 21 Nov 2010 06:30


Tags
vbulletin 5, wordpress


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 23:41.

Layout Options | Width: Wide Color: