The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
add tags to post via data manager
hi guys
i need to add tags to post that are being created using the datamanager. the forum and the 1st thread are created automatically using the datamanager and i`m adding also the tags doing do_set('taglist','tag1,tag2'); till here everything is ok and i can see the tags listed on the new created posts but when i click them ( to filter the posts by tags ) it says invalid tags .... seems i need to rebuild indexes/tags or im not adding tags OK can someone tell me how to add tags to post using the datamanagers ? regards |
#2
|
|||
|
|||
I'm looking at threadtag.php, and it looks like you want to do something like this:
Code:
$content = vB_Taggable_Content_Item::create($vbulletin, vB_Types::instance()->getContentTypeID('vBForum_Thread'), $threadid); $limits = $content->fetch_tag_limits(); $errors = $content->add_tags_to_content('tag1,tag2', $limits); |
#3
|
||||
|
||||
thanks man
its Ok now , i have some more quesiton about adding images to the newly created posts but will open a new thread since its another topic |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|