Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-28-2000 Last Update: Never Installs: 0
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-01-2000, 02:59 AM
Guest
 
Posts: n/a
Default

Anyone?
Reply With Quote
  #3  
Old 10-01-2000, 03:11 AM
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #4  
Old 10-01-2000, 03:43 AM
Guest
 
Posts: n/a
Default

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!
Reply With Quote
  #5  
Old 10-01-2000, 04:06 AM
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #6  
Old 10-01-2000, 04:54 AM
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #7  
Old 11-16-2000, 06:17 PM
Guest
 
Posts: n/a
Default

Conan,
You're a lifesaver! That worked perfectly!!! Thanks so much for taking the time to share what worked on that!
TigerLily
Reply With Quote
  #8  
Old 11-18-2000, 07:30 PM
Guest
 
Posts: n/a
Default

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

thx
Reply With Quote
  #9  
Old 11-18-2000, 07:42 PM
Guest
 
Posts: n/a
Default

<a href="http://forums.bronx-bombers.com/chat.php" target="_blank">http://forums.bronx-bombers.com/chat.php</a>
Reply With Quote
  #10  
Old 11-18-2000, 07:53 PM
Guest
 
Posts: n/a
Default

thx..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:02 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.04493 seconds
  • Memory Usage 2,264KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete