vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Parsing BB Code in Activity Stream (https://vborg.vbsupport.ru/showthread.php?t=318511)

Redrum81 05-01-2015 01:49 PM

Parsing BB Code in Activity Stream
 
Does anyone know of a way to parse BB Code in the Activity Stream? Right now smilies show up like :cool: etc. I'd like the actual image to appear.

Thanks for the help.

kh99 05-01-2015 01:54 PM

The problem is that the posts are converted to plain text because otherwise it would be difficult to create a short representation that looked reasonable. So to show images and smilies you'd need to go in and change the code, but then you'd have that problem to deal with.

Redrum81 05-01-2015 03:02 PM

Ah ok, fair enough. Well I can live with it. I was just wondering if there was a simple trick to make this work. Thanks.

MarkFL 05-01-2015 03:15 PM

Another issue is that a PHP file hack would likely be needed so the entire post would be returned instead of a truncated summary so you wouldn't get orphaned BBCode tags.

kh99 05-01-2015 03:28 PM

Right. But now I'm thinking, the default smilies are all pretty small, so you might be able to take the plain text that's being posted now and parse it just for smilies. That way you'd know you're not making it huge and that the <img> tag won't be broken. I haven't looked at the code at all though, so it still might need a file change.


All times are GMT. The time now is 06:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01588 seconds
  • Memory Usage 1,706KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete