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 08-25-2010 10:14 PM

The mod has two xml files, hence asking which file you are trying to import.

mmoore5553 08-26-2010 12:43 AM

odd my download only had one ..let me redownload and try again.

mmoore5553 08-26-2010 12:55 AM

I am sorry it is the flash chat intergration xml file. The other xml file i put in forums include file. I tried to go to import product and hit add and then get error.

mmoore5553 08-26-2010 01:25 AM

odd i download it again and everything is fine. Thanks and love this mod. Paul if you have paypal i will donate to your cause ..just PM me info. Also is there a mod like this for 3.8 , if so which chat version will it work ?

Paul M 08-26-2010 11:09 AM

Quote:

Originally Posted by mmoore5553 (Post 2089629)
odd i download it again and everything is fine. Thanks and love this mod. Paul if you have paypal i will donate to your cause ..just PM me info.

Click on the "Support Developer" link - in the righthand block, main (first) post.



Quote:

Originally Posted by mmoore5553 (Post 2089629)
Also is there a mod like this for 3.8 , if so which chat version will it work ?

There is a F/C 5 integration mod for 3.8, which should also work for F/C 6.

mmoore5553 08-26-2010 11:44 AM

Thanks so much working great now. Also did a small donation.

s810car 09-06-2010 10:03 PM

Good work on this as always, works fine for my site (although I'm gonna want to figure out a way to make links on the embedded page open up a different window so members don't log out by clicking to go to another section).

Just a curious question, maybe I didn't see it so excuse my error if incorrect, but being this is to integrate into VB4, why is there no setup for a navtab? Not an issue for me (I already made my own), but I'd suggest as a possible addition to the hack a optional navtab for a quick link (and visible, biggest issue I've heard on my site was no obvious link to chat before I added the navtab).

Paul M 09-07-2010 06:08 PM

Not sure what you mean by a navtab ?

s810car 09-08-2010 05:08 AM

Quote:

Originally Posted by Paul M (Post 2095143)
Not sure what you mean by a navtab ?


sorry, im thinking of the vBulletin Suite setup, as shown on vbulletin.com's forum here (the bar here is seperate from the actual navbar, which would be right below)
https://vborg.vbsupport.ru/external/2010/09/44.jpg

Like I said, Not a huge thing if one knows how to add themselves, but as the chatroom is such an important part of a lot of the forums out there, I would think most that went with the Suite would use this on their Navtab setup

s810car 09-08-2010 05:27 AM

Its actually easier to even give a example code then explain: To add what I'm talking about (assuming you have the vBulletin Suite), you need to make two additional modifications

1. Under Style Manager, create a new template. I called mine "navbar_chat_navtab" simply so I could group it with the navbar templates. Heres example code to add to the template
HTML Code:

<vb:if condition="$vboptions['selectednavtab'] == 'chat'">

<li class="selected">
    <a class="navtab" href="misc.php?do=flashchat">Chat</a>
                                <ul class="floatcontainer">
                                        {vb:raw template_hook.navbar_start}
                                        {vb:raw template_hook.navbar_after_getnew}
                                        <vb:if condition="$show['pmmainlink']">
                                                <li><a href="private.php{vb:raw session.sessionurl_q}" rel="nofollow" target="_blank">{vb:rawphrase private_messages}</a></li>
                                        </vb:if>
                                        {vb:raw template_hook.navbar_after_pm}
                                        <li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}" target="_blank">{vb:rawphrase faq}</a></li>
                                        {vb:raw template_hook.navbar_after_faq}
                               
                                        <li class="popupmenu">
                                                <a href="javascript://" class="popupctrl">{vb:rawphrase community}</a>
                                                <ul class="popupbody popuphover">
                                                        {vb:raw template_hook.navbar_community_menu_start}
                                                        <vb:if condition="$show['quick_links_groups']">
                                                                <li><a href="group.php{vb:raw session.sessionurl_q}" target="_blank">{vb:rawphrase social_groups}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['quick_links_albums']">
                                                                <li><a href="album.php{vb:raw session.sessionurl_q}" target="_blank">{vb:rawphrase pictures_and_albums}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$bbuserinfo['userid']">
                                                                <li><a href="profile.php?{vb:raw session.sessionurl}do=buddylist" target="_blank"><vb:if condition="$show['friends_and_contacts']">{vb:rawphrase contacts_and_friends}<vb:else />{vb:rawphrase contacts}</vb:if></a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['memberslist']">
                                                                <li><a href="memberlist.php{vb:raw session.sessionurl_q}" target="_blank">{vb:rawphrase members_list}</a></li>
                                                        </vb:if>
                                                        {vb:raw template_hook.navbar_community_menu_end}
                                                </ul>
                                        </li>
                                        {vb:raw template_hook.navbar_after_community}
                                        <li class="popupmenu">
                                                <a href="javascript://" class="popupctrl">{vb:rawphrase forum_actions}</a>
                                                <ul class="popupbody popuphover">
                                                        <li>
                                                                <a href="forumdisplay.php?{vb:raw session.sessionurl}do=markread" target="_blank">{vb:rawphrase mark_forums_read}</a>
                                                        </li>
                                                        <vb:if condition="$show['member']">
                                                        <li>
                                                                <a href="profile.php?{vb:raw session.sessionurl}do=editoptions" target="_blank">{vb:rawphrase edit_options}</a>
                                                        </li>
                                                        <li>
                                                                <a href="profile.php?{vb:raw session.sessionurl}do=editprofile" target="_blank">{vb:rawphrase edit_your_details}</a>
                                                        </li>
                                                        </vb:if>
                                                </ul>
                                        </li>
                                        <li class="popupmenu">
                                                <a href="javascript://" class="popupctrl">{vb:rawphrase quick_links}</a>
                                                <ul class="popupbody popuphover">
                                                        <li><a href="subscription.php{vb:raw session.sessionurl_q}" rel="nofollow" target="_blank">{vb:rawphrase subscribed_threads}</a></li>
                                                        <li>
                                                                <a href="javascript://" onclick="window.open(getBaseUrl() + 'misc.php?{vb:raw session.sessionurl}do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">{vb:rawphrase open_contacts}</a>
                                                        </li>
                                                        <vb:if condition="$vboptions['forumleaders']">
                                                        <li>
                                                                <a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow" target="_blank">
                <vb:if condition="$vb_suite_installed">
                        {vb:rawphrase view_site_leaders}
                <vb:else />
                        {vb:rawphrase view_forum_leaders}
                </vb:if>
        </a>
                                                        </li>
                                                        </vb:if>
                                                        {vb:raw template_hook.navbar_quick_links_menu_pos1}
                                                        {vb:raw template_hook.navbar_quick_links_menu_pos2}

                                                        {vb:raw template_hook.navbar_quick_links_menu_pos3}

                                                        <vb:if condition="$show['wollink']">
                                                                <li><a href="online.php{vb:raw session.sessionurl_q}" target="_blank">{vb:rawphrase whos_online}</a></li>
                                                        </vb:if>
                                                        {vb:raw template_hook.navbar_quick_links_menu_pos4}
                                                </ul>
                                        </li>
                                        {vb:raw template_hook.navbar_end}
                                </ul>
                        </li>


<vb:else />
<li><a class="navtab" href="misc.php?do=flashchat">Chat</a></li>
</vb:if>

You'll notice I added the "target=_blank" option to all the link tags that weren't popups, that way it'll leave the chat open and open a different browser tab/window for the link, rather then make you logout (another option would be to open a chatroom thats not style integrated for example your-site/chat/flashchat.php, but that takes away from some of the purpose of this integration hack to begin with).

2. In Plugin Manager, add two plugins.
Under the cache_tamplates hook:
PHP Code:

$cache[] = 'navbar_chat_navtab'

Under the process_templates_complete hook:
PHP Code:

if ((THIS_SCRIPT === 'misc') AND $_REQUEST['do'] == 'flashchat'){
    
$vbulletin->options['selectednavtab'] = 'chat'
}
$template_hook['navtab_middle'] .= vB_Template::create('navbar_chat_navtab')->render(); 

That's pretty much it! here's mine as an example:
https://vborg.vbsupport.ru/external/2010/09/43.jpg


All times are GMT. The time now is 03:10 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.04658 seconds
  • Memory Usage 1,801KB
  • 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)bbcode_html_printable
  • (2)bbcode_php_printable
  • (3)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