vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Hearme Chat Hack Bug? (https://vborg.vbsupport.ru/showthread.php?t=3537)

09-28-2000 08:08 PM

Well I installed it and it seems that it does not use the title form the template, and it also displays vBulletin MEssage on the table header for the chat, and I could not find anywhere in the hack code a place to change this, anyone had the same problem? If yes how can I change at least the "vBulletin Message" To Voice chat or whatever name I want?

Thanks

10-01-2000 02:59 AM

Anyone?

10-01-2000 03:11 AM

That's because the template that the chat hack uses is the standard_error template, I believe. If you wanted to change it, you'd have to create a new template, and modify the hack to use that template instead.

-jim

10-01-2000 03:43 AM

Thanks a lot, I have been trying to find which file the hack used, with out luck, if it's a template it should be easy to modify, I'll give it a try!
Thanks again!

10-01-2000 04:06 AM

Yes you are right it does use the standarderror template, and if I edit the standarderror it will change the title, but this is not a good idea because I would have all other standard errors with a different title, I tried to copy the template and name it chat_template, and use it instead, the problem is htat the chathack.php file uses the standarderror function too, and the function must overwrite the chat_hack template on the title, because it does not work, anyone have any other idea on how I would change this and still keep my standarderror message the same?

Thanks

10-01-2000 04:54 AM

Ok I finaly figured out a way of doing this, and I'm gonna post so anyone that runs int othis problem will know a solution!

ok here's what I did:

first go to the standarderror template copy the contents and add a new template called "chat_template" or any other name you want to call

then change the "vBulleting Message" bit to any other message like "Yoursite's Voice Chat"

then go to global.php and find the code:
Code:

// ###################### Start standarderror #######################
function standarderror($title="",$error="",$headinsert="") {
  // print standard error page
  global $header,$footer,$cssinclude,$fivelinks,$forumjump,$timezone,$bbtitle,$hometitle,$bburl,$homeurl,$copyrighttext,$privacyurl,$contactuslink,$webmasteremail,$technicalemail,$faxnumber,$address,$companyname,$titleimage,$replyimage,$newthreadimage,$closedthreadimage,$lastvisitdate,$timenow;

  makeforumjump();

  $pagetitle = "$title";
  $errormessage = $error;

  eval("\$returnval = dovars(\"".gettemplate("standarderror")."\");");

  return $returnval;
}

below this code paste:

Code:

// ###################### Start chat_template #######################
function chat_template($title="",$error="",$headinsert="") {
  // print standard error page
  global $header,$footer,$cssinclude,$fivelinks,$forumjump,$timezone,$bbtitle,$hometitle,$bburl,$homeurl,$copyrighttext,$privacyurl,$contactuslink,$webmasteremail,$technicalemail,$faxnumber,$address,$companyname,$titleimage,$replyimage,$newthreadimage,$closedthreadimage,$lastvisitdate,$timenow;

  makeforumjump();

  $pagetitle = "$title";
  $errormessage = $error;

  eval("\$returnval = dovars(\"".gettemplate("chat_template")."\");");

  return $returnval;
}

now go to the chathack.php file and find the code:
Code:

eval("echo standarderror(\$bbtitle,\"".gettemplate("error_nopermission")."\");");
and change to:
Code:

eval("echo chat_template(\$bbtitle,\"".gettemplate("error_nopermission")."\");");
now find the code:
Code:

eval("echo standarderror(\$bbtitle,\"".gettemplate("chat_hack")."\");");
and change to:
Code:

eval("echo chat_template(\$bbtitle,\"".gettemplate("chat_hack")."\");");
PS. there must be another way of doing this, but I did it this way, and if you wish to change the top title of the html page, edit the field $pagetitle = "$title"; to $pagetitle = "Your Tile"; on the chat_template function on global.php

11-16-2000 06:17 PM

Conan,
You're a lifesaver! That worked perfectly!!! Thanks so much for taking the time to share what worked on that!
TigerLily:)

11-18-2000 07:30 PM

does someone have a link to a demo with this hack in operation ?? i wouldn't mind checking it out..

thx

11-18-2000 07:42 PM

<a href="http://forums.bronx-bombers.com/chat.php" target="_blank">http://forums.bronx-bombers.com/chat.php</a>

11-18-2000 07:53 PM

thx.. :)


All times are GMT. The time now is 04:26 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.00992 seconds
  • Memory Usage 1,727KB
  • 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
  • (6)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete