Maxhunter Posted September 22, 2011 Posted September 22, 2011 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
realmaverickuk Posted December 5, 2011 Posted December 5, 2011 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.
PBCforum Posted March 22, 2012 Posted March 22, 2012 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 ?
Subdreamer Posted May 2, 2012 Posted May 2, 2012 Great hook! Works good in forum status updates. Too bad it doesn't render images or links in imported Twitter or Facebook status updates.
kaspir Posted October 25, 2013 Posted October 25, 2013 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. :(
BomAleold Posted February 4, 2014 Posted February 4, 2014 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'])) ) );
Recommended Posts
Archived
This topic is now archived and is closed to further replies.