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
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
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!
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
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:
// ###################### Start standarderror #######################
function standarderror($title="",$error="",$headinsert="") {
// print standard error page
global $header,$footer,$cssinclude,$fivelinks,$forumjump, $timezone,$bbtitle,$hometitle,$bburl,$homeurl,$cop yrighttext,$privacyurl,$contactuslink,$webmasterem ail,$technicalemail,$faxnumber,$address,$companyna me,$titleimage,$replyimage,$newthreadimage,$closed threadimage,$lastvisitdate,$timenow;
makeforumjump();
$pagetitle = "$title";
$errormessage = $error;
eval("\$returnval = dovars(\"".gettemplate("standarderror")."\");");
return $returnval;
}
below this code paste:
// ###################### Start chat_template #######################
function chat_template($title="",$error="",$headinsert="") {
// print standard error page
global $header,$footer,$cssinclude,$fivelinks,$forumjump, $timezone,$bbtitle,$hometitle,$bburl,$homeurl,$cop yrighttext,$privacyurl,$contactuslink,$webmasterem ail,$technicalemail,$faxnumber,$address,$companyna me,$titleimage,$replyimage,$newthreadimage,$closed threadimage,$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:
eval("echo standarderror(\$bbtitle,\"".gettemplate("error_nopermission")."\");");
and change to:
eval("echo chat_template(\$bbtitle,\"".gettemplate("error_nopermission")."\");");
now find the code:
eval("echo standarderror(\$bbtitle,\"".gettemplate("chat_hack")."\");");
and change to:
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
Conan,
You're a lifesaver! That worked perfectly!!! Thanks so much for taking the time to share what worked on that!
TigerLily:)
does someone have a link to a demo with this hack in operation ?? i wouldn't mind checking it out..
thx
<a href="http://forums.bronx-bombers.com/chat.php" target="_blank">http://forums.bronx-bombers.com/chat.php</a>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.