Adriano Faria Posted June 11, 2013 Posted June 11, 2013 http://www.invisionpower.com/support/guides/_/advanced-and-developers/api-methods/fetching-topics-r255 Another problem in Topics API is that I can't retrieve topic tags/prefixes! It would be a very useful addition!
CiDR Posted July 17, 2013 Posted July 17, 2013 I didn't find solution, and I did so $_POST['ipsTags'] = "tag1,tag2,"; $_REQUEST['ipsTags_prefix'] = 1; $this->post->addTopic(); I will thank if somebody help to do it safely
Adriano Faria Posted July 17, 2013 Author Posted July 17, 2013 I didn't find solution, and I did so $_POST['ipsTags'] = "tag1,tag2,"; $_REQUEST['ipsTags_prefix'] = 1; $this->post->addTopic(); I will thank if somebody help to do it safely In my case, I was retrieving topics and the API doesn't support tags.
Adriano Faria Posted July 25, 2013 Author Posted July 25, 2013 Apparently, parseTopicForLineEntry from API does the job! TOO LATE! Had to use manual queries for everything! :no:
BomAleold Posted October 14, 2014 Posted October 14, 2014 I have a issue with permissions, addTopic work but tags are not added after first topic. this issue only for restricted forum(confused), also if I recall anytime $this->post->setBypassPermissionCheck( true ) it lock on permission //----------------------------------------- // Check if we're ok with tags //----------------------------------------- $where = array( 'meta_parent_id' => $this->getForumData('id'), 'member_id' => $this->getAuthor('member_id'), 'existing_tags' => explode( ',', IPSText::cleanPermString( $this->request['ipsTags'] ) ) ); if ( $this->registry->tags->can( 'add', $where ) AND $this->settings['tags_enabled'] AND ( !empty( $_POST['ipsTags'] ) OR $this->settings['tags_min'] ) ) { $this->registry->tags->checkAdd( $_POST['ipsTags'], array( 'meta_parent_id' => $topic['forum_id'], 'member_id' => $this->memberData['member_id'], 'meta_visible' => $topic['approved'] ) ); if ( $this->registry->tags->getErrorMsg() ) { $this->_postErrors = $this->registry->tags->getFormattedError(); return FALSE; } $_storeTags = true; }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.