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)
-   -   Who's in chat on forumhome.. (No eggdrop) (https://vborg.vbsupport.ru/showthread.php?t=65099)

moonclamp 05-27-2004 08:31 PM

My apologies ... it did work I was just being my usual impatient self

Many thanks for that :)

EvilLS1 05-27-2004 08:32 PM

n/p. Glad it worked for ya. :)

94DROPTOPZ 06-05-2004 09:29 PM

Will this work with PHP Mychat??

EvilLS1 06-05-2004 09:33 PM

Quote:

Originally Posted by 94DROPTOPZ
Will this work with PHP Mychat??

I don't see why not. As long as your phpmychat is included in the chat.php from the hack it should work. :)

94DROPTOPZ 06-05-2004 09:36 PM

Quote:

Originally Posted by EvilLS1
I don't see why not. As long as your phpmychat is included in the chat.php from the hack it should work. :)

Uh thank you very much! I'm not the "sharpest" knife in the drawer but I might try this one out...

EvilLS1 06-05-2004 09:42 PM

Quote:

Originally Posted by 94DROPTOPZ
Uh thank you very much! I'm not the "sharpest" knife in the drawer but I might try this one out...

Shouldn't be too difficult. Check the file called phpmychat.php in your main chat directory where you have phpmychat installed. It shows how to include phpmychat in another page.

RetroDreams 06-17-2004 01:39 AM

I just upgraded my forums to vb3 from 2.2.8. Can anyone tell me the new code to make the chat.php only for certain usergroups?

EvilLS1 06-17-2004 12:48 PM

Quote:

Originally Posted by RetroDreams
I just upgraded my forums to vb3 from 2.2.8. Can anyone tell me the new code to make the chat.php only for certain usergroups?

In chat.php find this:
Code:

if (!$bbuserinfo['userid'])
{
        print_no_permission();
}

Replace it with this:
Code:


if(!in_array($bbuserinfo['usergroupid'], array(X,X,X)))
{
        print_no_permission();
}

In the code above where it says array(X,X,X) replace those Xs with the usergroup IDs for those that you want to allow access to chat. Members of all other usergroups will recieve a no permission message when viewing the page.

RetroDreams 06-17-2004 02:52 PM

Thanks for bringing me up to speed!

EvilLS1 06-17-2004 09:35 PM

Quote:

Originally Posted by RetroDreams
Thanks for bringing me up to speed!

You're welcome. :)


All times are GMT. The time now is 08:07 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.01091 seconds
  • Memory Usage 1,734KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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