Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted September 22, 201113 yr File Name: (TM32) Emoticons And BBcode in Recent Status , Profile Card, Profile Feed,Status UpdatesFile Submitter: MaxhunterFile Submitted: 22 Sep 2011File Category: Modifications This hook will allow to use Emoticons And BBcode in Recent Status , Profile Card, Profile Feed,Status UpdatesThis Mod REQUIRES IPB 3.2.XEmoticons and BB codes In Recent Statusand its reply Emoticons and BB codes In Profile Card Status Emoticons and BB codes In Profile Feed Emoticons and BB codes In Profile Comments and its reply Emoticons and BB codes In Status Updates No Need File Edits Work with Ajax Status Updates Support only IPB 3.2.xInstructions: Log in to your IP.Board Admin CP and visit the System tab -> Applications & Modules -> Manage Hooks page. In the 'Install a New Hook' section, browse to the XML file included with these instructions and click Open.Click here to download this file
December 5, 201113 yr I kept getting 404 errors in webmaster tools. It turned out to be your mod, when somebody posts a url as status update, you mod truncates not only the text but the link itself.
March 22, 201213 yr The mod works great, thanks But it also breaks my links which I paste into status updates... When I paste the whole working link - the link gets broken: http://www.youtube.c...layer_embedded/ Can we do something with that, please ?
May 2, 201213 yr Great hook! Works good in forum status updates. Too bad it doesn't render images or links in imported Twitter or Facebook status updates.
October 25, 201311 yr Will it change that smiley? Didn't see that in your screenshots, and plus I am trying this hook currently on IPB3.4.5, and it doesn't work in that area. :(
February 4, 201411 yr The mod works great, thanks But it also breaks my links which I paste into status updates... When I paste the whole working link - youtube.com/watch?v=ClIjJSPwQpE&feature=player_embeddedthe link gets broken: http://www.youtube.c...layer_embedded/ Can we do something with that, please ? same problem.... i think the problem is the regular expression /sources/classes/member/status.php line 2047 function _parseContent /* Auto parse tags */ if ( $this->settings['su_parse_url'] ) { $content = preg_replace_callback( '#(^|s|(|>|](?<!))((?:http|https|news|ftp)://w+[^),s<[]+)#is', array( $this, '_autoParseUrls' ), $content ); } UPDATE: I attached my version here (use new parse editor 3.4) tested on 3.4.6 emot_bbcode_statuses_3_4.xml replacing old parse to this: /* Load the parser */ $classToLoad = IPSLib::loadLibrary( IPS_ROOT_PATH . 'sources/classes/text/parser.php', 'classes_text_parser' ); $parser = new $classToLoad(); /* Set up some settings */ $parser->set( array( 'parseArea' => 'status', 'memberData' => $this->memberData, 'parseBBCode' => true, 'parseHtml' => false, 'parseEmoticons' => true ) ); $this->settings['su_parse_url'] = FALSE; $this->registry->getClass('memberStatus')->setContent( $parser->display( trim( $this->convertAndMakeSafe($_POST['content'])) ) );
Archived
This topic is now archived and is closed to further replies.