View Full Version : Smilies not showing in New Forum Posts block
Evilbeard
02-19-2013, 05:16 PM
This is possibly a quick fix if the right person is reading! I have added the New Forum Posts block on to my forums & the new posts are showing. However instead of showing any smilies in the posts, it is showing the smiley name.
eg
instead of showing :D it shows : D
The smilies show fine in the actual post!
Thanks in advance.
It's that way intentionally. The New Forum Posts block calls a function get_summary(), which is in includes/class_block.php. That does a bunch of processing to get a text-only version of the message to display. I think it's done because there's no room for the entire message, and if you try to shorten the non-text only version you have an issue with making sure all bbcode or html tags get closed.
Anyway, I'm not sure what you'd do to get smilies. I suppose you might be able to figure out a function to add them back in, but I don't think there's any option for it.
Evilbeard
02-19-2013, 06:11 PM
Cheers for the response pal.
I don't think it is a setting, I have been through it with a fine tooth comb! If anyone knows of a fix, it would be greatly appreciated!!
RedTurtle
05-04-2013, 11:56 PM
For Smilies in Forum Blocks:
Edit ./includes/class_block.php
Search for :
return htmlspecialchars_uni(fetch_censored_text(
trim(fetch_trimmed_title(strip_bbcode($page_text, $strip_quotes, false, false, true), $length))));
Replace with:
require_once(DIR . '/includes/class_bbcode.php');
$parser = new vB_BbCodeParser($this->registry, fetch_tag_list());
$parsed_text = $parser->do_parse(fetch_censored_text(trim(fetch_trimmed_ti tle(strip_bbcode($page_text, $strip_quotes, false, false, true), $length))), false, true, false);
return $parsed_text;
This works on vB 4.2.0 but for some reason does not work on 4.2.1.
If anyone could provide a solution to get it to work on 4.2.1 that would be awesome.
EDIT: Actually this does work on 4.2.1 -- I was mistaken.
Evilbeard
05-30-2013, 04:12 PM
For Smilies in Forum Blocks:
Edit ./includes/class_block.php
Search for :
return htmlspecialchars_uni(fetch_censored_text(
trim(fetch_trimmed_title(strip_bbcode($page_text, $strip_quotes, false, false, true), $length))));
Replace with:
require_once(DIR . '/includes/class_bbcode.php');
$parser = new vB_BbCodeParser($this->registry, fetch_tag_list());
$parsed_text = $parser->do_parse(fetch_censored_text(trim(fetch_trimmed_ti tle(strip_bbcode($page_text, $strip_quotes, false, false, true), $length))), false, true, false);
return $parsed_text;
This works on vB 4.2.0 but for some reason does not work on 4.2.1.
If anyone could provide a solution to get it to work on 4.2.1 that would be awesome.
EDIT: Actually this does work on 4.2.1 -- I was mistaken.
Brilliant!! Thanks!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.