Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-19-2013, 05:16 PM
Evilbeard's Avatar
Evilbeard Evilbeard is offline
 
Join Date: Apr 2008
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Smilies not showing in New Forum Posts block

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 it shows : D

The smilies show fine in the actual post!

Thanks in advance.
Reply With Quote
  #2  
Old 02-19-2013, 05:26 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 02-19-2013, 06:11 PM
Evilbeard's Avatar
Evilbeard Evilbeard is offline
 
Join Date: Apr 2008
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
  #4  
Old 05-04-2013, 11:56 PM
RedTurtle's Avatar
RedTurtle RedTurtle is offline
 
Join Date: May 2006
Location: California
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For Smilies in Forum Blocks:

Edit ./includes/class_block.php

Search for :
Code:
return htmlspecialchars_uni(fetch_censored_text(
            trim(fetch_trimmed_title(strip_bbcode($page_text, $strip_quotes, false, false, true), $length))));
Replace with:
Code:
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_title(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.
Reply With Quote
  #5  
Old 05-30-2013, 04:12 PM
Evilbeard's Avatar
Evilbeard Evilbeard is offline
 
Join Date: Apr 2008
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedTurtle View Post
For Smilies in Forum Blocks:

Edit ./includes/class_block.php

Search for :
Code:
return htmlspecialchars_uni(fetch_censored_text(
            trim(fetch_trimmed_title(strip_bbcode($page_text, $strip_quotes, false, false, true), $length))));
Replace with:
Code:
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_title(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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03736 seconds
  • Memory Usage 2,199KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete