Thread: Chat Modifications - Dream's Chatbox
View Single Post
  #608  
Old 07-25-2007, 09:15 AM
p33r p33r is offline
 
Join Date: Sep 2004
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello there, we have been doing some testing with your chatbox. It's actually pretty cool (we also made an IRC <-> chatbox bridge thats working smoothly). Our only problem seems to be our custom spoiler-tags (BBcode). Spoiler tags are basically javascript boxes that hide text under them (for talking about new episodes of Tv-series etc.). When somebody tries to use the spoilertags in the chatbox the script dies quite spectacularly, stopping its refreshes and pretty much freezes in its tracks until you refresh. It allso throws an error message. It seems that it does not like when the javascript is embedded in the AJAX-requests, but on a full-refresh it seems to do fine.

I'l post the full error message (Using Safari on OS X), this happens for all users viewing the chatbox, and everyone has to reload. It's a bit anoying :P
Quote:
Error: undefined var newshouts = '<span id="shout2714">[<span class="time">12:08</span>] [<a href="javascript:deleteMessage(2714)">X</a>] &lt;p33r&gt;: <input type="button" value="Trykk her!" class="button" onclick="showSpoiler(this);">
<span class="content" style="display:none">Testspoilerlolz
</span><br /></span><span id="shout2715">[<span class="time">12:08</span>] [<a href="javascript:deleteMessage(2715)">X</a>] &lt;<a href="member.php?u=48" target="blank">p33r</a>&gt;: amg<br /></span>'; lastshoutid = 2715; theTime = '[<span class="time">12:08</span>] ';
You can see our little mashup in action here if you need to test anything: http://forum.japani.no/kanshi_chat.php and the main chatbox on http://forum.japani.no/chatbox.php

(Spoiler tags are used like this: [Spoiler="text on box"]Text under box[/spoiler] if you need to test anything.)
Yes, i realize i can turn off bbCode for the chatbox, but that kinda defeats the purpose of it. It's one of the cool advantages the chatbox has over other forms of live-chat.

Edit: Further testing shows that [quote]+tags allso do the same thing, i guess it dosnt like BBcode. wich is a shame.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01132 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete