vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Chat Modifications - Flashchat 6 Integration for vBulletin 4.x (https://vborg.vbsupport.ru/showthread.php?t=231184)

Paul M 03-13-2010 06:46 PM

Quote:

Originally Posted by Marv (Post 2002836)
Hi Paul,

I upgraded my site to 4.0.2. With that date the chat won?t work anymore and all users receive the info their Username or password would be wrong. Guess something is conflicting there.

Any chance to get this fixed with an update ? If you need access to my site, use the same account and login I?ve PM?ed in january.

Not sure if I will have kept them, but If I have I'll look when I get chance.

insidedesign 03-14-2010 03:14 AM

Not sure if anyone can help me, but I am trying to edit the flashchat template so that if the user is not logged-in it displays a simple text string instead of a blank chat area. I have played around with template conditionals, but cannot seem to get it to work.

Basically, I need the proper code to check to see if they are logged-in from within the flashchat template. thanks in advance!

insidedesign 03-14-2010 03:18 AM

Quote:

Originally Posted by insidedesign (Post 2003217)
Not sure if anyone can help me, but I am trying to edit the flashchat template so that if the user is not logged-in it displays a simple text string instead of a blank chat area. I have played around with template conditionals, but cannot seem to get it to work.

Basically, I need the proper code to check to see if they are logged-in from within the flashchat template. thanks in advance!

Figured it out. I simply looked at how other plug-ins were implementing template conditions.

Here is what I ended up with, within the flashchat template:
Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
        {vb:raw headinclude}
        <title>{vb:phrase flashchat_title}</title>
        {vb:raw headinclude_bottom}
</head>
        <body>
        {vb:raw header}
        {vb:raw navbar}
        <vb:if condition="$bbuserinfo['userid'] == 0">
                <p>Please login above to view the chatroom.</p>
        <vb:else />
                <!-- main -->
                <!-- $Id: Flashchat-vb-integration.xml,v 1.15 2010/03/12 01:04:10 pem Exp $ -->
                <div id="fci_div" class="block">
                        <h2 align="center" class="blockhead">{vb:phrase flashchat_title}</h2>
                        <iframe style="border: 0px" width="100%" height="{vb:raw fci.height}" src="{vb:raw fci.fcpath}/flashchat.php{vb:raw fci.room}"></iframe>
                        <div class="blocksubhead" style="text-align: center;">{vb:phrase flashchat_title} &copy; {vb:raw fci.year}</div>
                </div>                               
                <!-- /main -->
        </vb:if>
        {vb:raw footer}
</body>
</html>


Marv 03-14-2010 06:15 AM

Quote:

Originally Posted by Paul M (Post 2002979)
Not sure if I will have kept them, but If I have I'll look when I get chance.

Dropped you a copy of the last PM.

insidedesign 03-14-2010 09:42 PM

I am looking to change the directory name of the flashchat script. How will that effect the "Flashchat 6 Integration for vBulletin 4.0 plugin?

Paul M 03-15-2010 11:34 AM

It will probably break something.

TazDevilLooney 03-15-2010 12:43 PM

Hi insidedesign,

Were do you put that lovely code you produced?

insidedesign 03-17-2010 04:22 PM

Quote:

Originally Posted by Paul M (Post 2004027)
It will probably break something.

lol figured. ;)

insidedesign 03-17-2010 04:23 PM

Quote:

Originally Posted by insidedesign (Post 2003219)
Figured it out. I simply looked at how other plug-ins were implementing template conditions.

Here is what I ended up with, within the flashchat template:
Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
        {vb:raw headinclude}
        <title>{vb:phrase flashchat_title}</title>
        {vb:raw headinclude_bottom}
</head>
        <body>
        {vb:raw header}
        {vb:raw navbar}
        <vb:if condition="$bbuserinfo['userid'] == 0">
                <p>Please login above to view the chatroom.</p>
        <vb:else />
                <!-- main -->
                <!-- $Id: Flashchat-vb-integration.xml,v 1.15 2010/03/12 01:04:10 pem Exp $ -->
                <div id="fci_div" class="block">
                        <h2 align="center" class="blockhead">{vb:phrase flashchat_title}</h2>
                        <iframe style="border: 0px" width="100%" height="{vb:raw fci.height}" src="{vb:raw fci.fcpath}/flashchat.php{vb:raw fci.room}"></iframe>
                        <div class="blocksubhead" style="text-align: center;">{vb:phrase flashchat_title} &copy; {vb:raw fci.year}</div>
                </div>                               
                <!-- /main -->
        </vb:if>
        {vb:raw footer}
</body>
</html>


Quote:

Originally Posted by TazDevilLooney (Post 2004066)
Hi insidedesign,

Were do you put that lovely code you produced?



Styles & Templates -> Style Manager -> Edit Templates for Default Style -> FlashChat

gsmlover4u 03-22-2010 09:52 AM

https://vborg.vbsupport.ru/showthread.php?t=237490
can we make it popup
after login in forum
flash chat (chat room) can popup ?
if yes then how ?


All times are GMT. The time now is 03:12 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.01210 seconds
  • Memory Usage 1,754KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete