The Arcive of vBulletin Modifications Site. |
|
![]() |
|||||||||||||||||||||||||
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 Show Your Support
|
Comments |
#2
|
|||
|
|||
![]()
Anyone?
|
#3
|
|||
|
|||
![]()
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 |
#4
|
|||
|
|||
![]()
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! |
#5
|
|||
|
|||
![]()
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 |
#6
|
|||
|
|||
![]()
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; } 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; } Code:
eval("echo standarderror(\$bbtitle,\"".gettemplate("error_nopermission")."\");"); Code:
eval("echo chat_template(\$bbtitle,\"".gettemplate("error_nopermission")."\");"); Code:
eval("echo standarderror(\$bbtitle,\"".gettemplate("chat_hack")."\");"); Code:
eval("echo chat_template(\$bbtitle,\"".gettemplate("chat_hack")."\");"); |
#7
|
|||
|
|||
![]()
Conan,
You're a lifesaver! That worked perfectly!!! Thanks so much for taking the time to share what worked on that! TigerLily ![]() |
#8
|
|||
|
|||
![]()
does someone have a link to a demo with this hack in operation ?? i wouldn't mind checking it out..
thx |
#9
|
|||
|
|||
![]()
<a href="http://forums.bronx-bombers.com/chat.php" target="_blank">http://forums.bronx-bombers.com/chat.php</a>
|
#10
|
|||
|
|||
![]()
thx..
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|