vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Chat Modifications - LightIRC Chatbox (https://vborg.vbsupport.ru/showthread.php?t=227521)

TheInsaneManiac 11-07-2009 05:31 PM

Quote:

Originally Posted by Mith_OWNS (Post 1911362)
I got it!! i am seriously retarded...

The reason for the errors was because I uploaded the files, but forgot to import the .xml
I tell you I am a noob at this still lmao.
Thanks much for a great mod, I appreciate it very much :up:

No problems mate. Expect an update to it soon. =]

rchelifan 11-08-2009 01:05 AM

This is a good mod. Please take it to the next level in customization. I have installed it on my website and I am having my users test it now. It is very good so far.

I have a question. Where can I change the text in Help? I use mibbit.com. Does mibbit.com control that?

TheInsaneManiac 11-08-2009 02:01 AM

Quote:

Originally Posted by rchelifan (Post 1911474)
This is a good mod. Please take it to the next level in customization. I have installed it on my website and I am having my users test it now. It is very good so far.

I have a question. Where can I change the text in Help? I use mibbit.com. Does mibbit.com control that?

It's on my To Do list. I ran out of time when releasing 2.0 so I didn't have time to code that option in yet. Will be in next release. =]

rchelifan 11-08-2009 02:29 AM

Also, is it possible to set it so only the members who registered can use the chat room?

TheInsaneManiac 11-08-2009 02:50 AM

Quote:

Originally Posted by rchelifan (Post 1911496)
Also, is it possible to set it so only the members who registered can use the chat room?

I'm guessing you didn't read my to-do list in the first post. ;)

Medtech 11-08-2009 03:11 AM

Good start, trying it out:up:


update: love it!!

Suggestion:

To add a link in the navbar:

in navbar template.. find:
Code:


$vbphrase[calendar]</a></td>

Under that paste
Code:

   

<td class="vbmenu_control"><a href="http://www.yoursite.com/chatbox.php?$session[sessionurl]">IRC Chatbox</a></td>


__________________________________________________ ____________________________


This is no longer needed as usergroups can now be chosen in admincp.

Code:

Or, this is to only allow certain usergroups (Admin only for example)to see the link in the navbar:


       
Code:

       
<if condition="$bbuserinfo[usergroupid] == 6">
<td class="vbmenu_control"><a href="http://www.yoursite.com/chatbox.php?$session[sessionurl]">IRC Chatbox</a></td>




TheInsaneManiac 11-08-2009 04:25 AM

Quote:

Originally Posted by Medtech (Post 1911506)
Good start, trying it out:up:


update: love it!!

Suggestion:

To add a link in the navbar:

in navbar template.. find:
Code:


$vbphrase[calendar]</a></td>

Under that paste
Code:

   

<td class="vbmenu_control"><a href="http://www.yoursite.com/chatbox.php?$session[sessionurl]">IRC Chatbox</a></td>

Or, this is to only allow certain usergroups (Admin only for example)to see the link in the navbar:

Code:

<if condition="$bbuserinfo[usergroupid] == 6">
<td class="vbmenu_control"><a href="http://www.yoursite.com/chatbox.php?$session[sessionurl]">IRC Chatbox</a></td>


Lol I was a little ahead of you and had that in the new 2.7 version. All though I used hooks, so if you guys don't like the placement just disable automatic navbar placement and use Medtech's first code. The second won't matter since when you disallow usergroups, those usergroups won't see the navbar link.

rchelifan 11-08-2009 05:13 AM

Medtech, thank I am going to use that for my Registered group for now.

Another suggestion would be a block showing the number or user names of people who are in the Chat Room.

rchelifan 11-08-2009 05:33 AM

I just needed </if> at the end of the code.

How about if I want more than just want groups, do I just add a coma and the group ID to it?

TheInsaneManiac 11-08-2009 05:51 AM

Quote:

Originally Posted by rchelifan (Post 1911533)
I just needed </if> at the end of the code.

How about if I want more than just want groups, do I just add a coma and the group ID to it?

Code:

<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"><td class="vbmenu_control"><a href="chatbox.php">Chatbox</a></td></if>
The above code is more efficient. Just change it to the usergroups you want to allow.Although remember that if you use the Automatic Navbar edit, that the groups you disallowed won't see the navbar, but again if you don't like where it would place the navigational link, then the above code would work as well.


If you wanted to just allow all groups, but disallow only certain groups just use this code:
Code:

<if condition="!is_member_of($vbulletin->userinfo, 1, 2, 3)"><td class="vbmenu_control"><a href="chatbox.php">Chatbox</a></td></if>


All times are GMT. The time now is 04:36 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.01831 seconds
  • Memory Usage 1,749KB
  • 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
  • (9)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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