View Full Version : How can I insert new article via code
MajinOLesedi
07-31-2013, 02:35 PM
How can insert a new cms article without using the text editor. Im looking for a vb function that can do this or should I just do an insert statement manually?
Dead Eddie
08-03-2013, 11:24 AM
I'm not going to type out a whole tutorial. Check out how it's done within the CMS (by using the datamanager):
packages/vbcms/content/article.php starting around line 905.
You can't just call mysql on its own because of some of the caching done behind the scenes, and because of how vBulletin stores the articles, you need to understand how it calculates an article's position (and update a bunch of records accordingly).
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.