vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBXirc (https://vborg.vbsupport.ru/showthread.php?t=59612)

|oR|Greg 06-03-2004 05:50 PM

I realized it's using a different navbar, so I altered the index.php to point to the sites main one, and recoded the navbar links with the

Code:

$vboptions[bburl]/
So.. now I'm still not seeing the breadcrumb stuff like the other pages on the site. How do I get it to show the page it's on, underneath, unlinked like the rest of them?

|oR|Greg 06-03-2004 09:23 PM

...ok I got the breadcrumbs all fixed up nice.

LAST QUESTION!! (that I hope someone will answer other than me)

How do I get it to show up in the Who's online. I added some lines to the functions_online.php, but it doesn't work, I added the following...

Code:

        case '/chat/index.php':
                        $userinfo['activity'] = 'chat';
                break;

Code:

                case 'Chat':
                        $userinfo['action'] = construct_phrase($vbphrase['viewing_x'], 'In Chat');
                        $userinfo['where'] = "<a href=\"/chat/index.php?$session[sessionurl]\">$vboptions[bbtitle] Chat</a>";
                        break;

Yet it still says Viewing Index even though a user isn't.

Bounce 06-03-2004 10:38 PM

Got it workin - CHEERS Greg :rolleyes:
Had to change the irc server as the one in the original file wasn't workin :(

Few other probs but they have been mentioned in previous posts so i'll check them out first

dont think anyone to my knowledge has mentioned the colours thou :squareeyed:

Can these be changed at all?? :ermm:

Zachery 06-03-2004 10:48 PM

Quote:

Originally Posted by |oR|Greg
I fixed it...

Goto ACP>Styles & Templates > Style Manager > YOURSTYLE <<>> vbxirc templates >> vbxirc_index template

find:
Code:

<if condition="$bbuserinfo[userid] == 0">
<param name="nick" value="$vboptions[ircguest]">
<else />
<param name="nick" value="$chatname">
</if>

Replace with:
Code:

<!--
<if condition="$bbuserinfo[userid] == 0">
<param name="nick" value="$vboptions[ircguest]">
<else />
<param name="nick" value="$chatname">
</if>
//-->
<param name="nick" value="$vboptions[ircguest]">

NOW... because I couldn't find where the popup code variable for passing the "nick" parameter is, I disabled the popup option on my main site navbar.

Goto ACP>Styles & Templates > Style Manager > YOURSTYLE <<>> navigation / breadcrumb templates > navbar

find:
Code:

  <td id="chat" class="vbmenu_control"><a href="#chat">Chat</a> <script type="text/javascript"> vbmenu_register("chat"); </script></td>
Replace with:
Code:

<td id="Chat" class="vbmenu_control"><a href="$vboptions[bburl]/chat/index.php?$session[sessionurl]">Chat</a></td>
find:
Code:

<!-- chat links -->
<div class="vbmenu_popup" id="chat_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">Chat</td> </tr> <tr> <td class="vbmenu_option"><a href="$vboptions[bburl]/chat/index.php?$session[sessionurl]">Chat</a></td> </tr> <tr> <td class="vbmenu_option"><a href="#" onClick="window.open('$vboptions[bburl]/chat/index.php?do=small','key','WIDTH=750,HEIGHT=500,scrollbars=no,left=50,top=50,screenX=50,screenY=50');return false">Chat(Popup)</a></td> </tr> </table> </div>
<!-- end chat links -->

Replace with:
Code:

<!-- chat links -->
<!--
<div class="vbmenu_popup" id="chat_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">Chat</td> </tr> <tr> <td class="vbmenu_option"><a href="$vboptions[bburl]/chat/index.php?$session[sessionurl]">Chat</a></td> </tr> <tr> <td class="vbmenu_option"><a href="#" onClick="window.open('$vboptions[bburl]/chat/index.php?do=small','key','WIDTH=750,HEIGHT=500,scrollbars=no,left=50,top=50,screenX=50,screenY=50');return false">Chat(Popup)</a></td> </tr> </table> </div>
 //-->
<!-- end chat links -->

That's it, for an example, take a look at www.orderofronin.com

What was the point of this?

lazserus 06-04-2004 04:20 AM

I got all my issues fixed. Apparently all my problems were DALnet problems. Since my channel is relatively new, I just picked up and moved to a completely different network and everything works like a charm. To think, DALnet was a blessing when I moved from ChatNet, but turned out to be a complete pain.

/me gives DALnet the finger.

Thanks for all the hard work, Zachery - this is a beautiful hack.

|oR|Greg 06-04-2004 03:10 PM

Quote:

Originally Posted by Zachery
What was the point of this?

People that are on my site/forums trying to get to chat it wouldn't let them for whatever reason if they were logged into the forums. If they were logged out it worked fine, something with the prefix |oR| I imagine even though you can use that on gamesurge. Regardless, by forcing people to login using the default oRForumGuest?? nick they CAN get in, then just change the nick to whatever they want.

Also I didn't like the popup option, and I also changed the navbar to use the sites main one as well as the footer, and included the breadcrumb as well. Now I'm trying to figure out why it doesn't show up in the Who's Online.

I added

Code:

case '/chat/index.php':
                        $userinfo['activity'] = 'chat';
                break;

Code:

                case 'Chat':
                        $userinfo['action'] = construct_phrase($vbphrase['viewing_x'], 'In Chat');
                        $userinfo['where'] = "<a href=\"/chat/index.php?$session[sessionurl]\">$vboptions[bbtitle] Chat</a>";
                        break;

To the Functions_Online.php, yet it stilld doesn't work. Any thoughts?

|oR|Greg 06-04-2004 03:18 PM

FYI... to anyone that wants the breadcrumb to function, all you have to do is add in

Code:

// ## NAVBITS
$navbits = construct_navbits(array("index.php?$session[sessionurl]" => 'Chat'));

..to the chat\index.php anywhere in the file.

Then copy the chat\images\misc\navbits_finallink.gif file from the forums\images\misc location.

Viola!

For an example, www.OrderOfRonin.com\forums\chat

Bounce 06-05-2004 12:08 AM

Ok..got this working althou it does not seem to be reconising who is and isn't an admin

If a non admin manages to enter the room first then he/she will be the admin for the room

how do I make it so that it will reconise from the forums who is and is not an admin?

OGT 06-05-2004 05:09 AM

those settings are done on your irc server. you will need to find a server that uses a nickserv and chanserv and go through those options to allow you to retake your room if theres not someone in it at all times.

|oR|Greg 06-08-2004 06:11 PM

hIBEES it's a matter of registering on your IRC server with the same username as your forums I would think. Even then I don't know that it would work because you're required to AUTH on an IRC network, and using a chat applet won't let you AUTH that I'm aware of from a script.


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

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.01813 seconds
  • Memory Usage 1,755KB
  • 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
  • (12)bbcode_code_printable
  • (2)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