Adriano Faria Posted June 11, 2013 Share 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! Link to comment Share on other sites More sharing options...
CiDR Posted July 17, 2013 Share 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 Link to comment Share on other sites More sharing options...
Adriano Faria Posted July 17, 2013 Author Share 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. Link to comment Share on other sites More sharing options...
Adriano Faria Posted July 25, 2013 Author Share Posted July 25, 2013 Apparently, parseTopicForLineEntry from API does the job! TOO LATE! Had to use manual queries for everything! :no: Link to comment Share on other sites More sharing options...
BomAleold Posted October 14, 2014 Share 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; } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.