Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 11, 201312 yr Community Expert 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!
July 17, 201311 yr 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
July 17, 201311 yr Author Community Expert 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.
July 25, 201311 yr Author Community Expert Apparently, parseTopicForLineEntry from API does the job! TOO LATE! Had to use manual queries for everything! :no:
October 14, 201410 yr 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; }
Archived
This topic is now archived and is closed to further replies.