vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   chat hack (https://vborg.vbsupport.ru/showthread.php?t=32761)

certify 01-11-2002 09:56 AM

If I create a new styles and create the template chat_username and vbh_chat in the new styles, how do I get the chat to look for them?

bokhalifa 01-11-2002 11:14 AM

it's updated Bugz fixed NOW
2 file


1 template: chat_loggedinusers

2 file : chatonline.php


Try it and I?m waiting for comments
:)

bokhalifa 01-11-2002 11:19 AM

Open this link
http://www.certifyexpress.com/forum/chatvbh.php?s=


:D

bokhalifa 01-11-2002 11:20 AM

DEMO

http://64.119.167.58/test/chatvbh.php?


http://www.twins-club.com/board/chatvbh.php


http://www.certifyexpress.com/forum/chatvbh.php?s=

:D

bokhalifa 01-11-2002 11:22 AM

updated file Attachment
:)


https://vborg.vbsupport.ru/showthrea...994#post210994

bokhalifa 01-11-2002 11:30 AM

[QUOTE]Originally posted by Lucky
Is this still beta then?

certify 01-11-2002 11:46 AM

Yes it worked!! :D

bokhalifa 01-11-2002 11:49 AM

[QUOTE]Originally posted by certify
Yes it worked!! :D

certify 01-11-2002 12:11 PM

I have make some slight modification to chatvbh.php so that when the user is not login or registered he will be taken to registration or signup page and will automatically redirect the user back to the chat.

PHP Code:

<?
require('./global.php');

if ($bbuserid == 0)
{
  $thispage=urlencode("$PHP_SELF");
  header("Location:[url]http://www.certifyexpress.com/forum/usercp.php?urloverride=1&prevpage=[/url]".$thispage);

}
$DB_site->query("UPDATE user SET inchat='1' WHERE userid='$bbuserinfo[userid]'");
$DB_site->query("UPDATE user SET lastchatactivity=$ourtimenow WHERE userid='$bbuserinfo[userid]'");

if ($bbusername == "" || (isset($bbusername))==0)
{
  $getusername=$DB_site->query_first("SELECT username FROM user WHERE userid=$bbuserid");
  $username=$getusername[username];
  $bbusername = $username;
}
else
{
   $username = $bbusername;
}

eval("echo standarderror(\$bbtitle,\"".gettemplate("vbh_chat")."\");");

?>


bokhalifa 01-11-2002 12:42 PM

:D nice job ;)


All times are GMT. The time now is 08:47 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.00988 seconds
  • Memory Usage 1,731KB
  • 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_php_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