vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Chat Modifications - MGC Chatbox Evo (https://vborg.vbsupport.ru/showthread.php?t=168992)

macc 04-27-2008 06:01 PM

need some help... have ajax chat on my board but will get thet like shoutbox ...this point (add this function in your php code)in readme file can not understand ..maybe some can help

Code:

2. Shoutbox function
--------------------
Add the following function to your PHP code:
<?php
function getShoutBoxContent() {
 // URL to the chat directory:
 if(!defined('AJAX_CHAT_URL')) {
  define('AJAX_CHAT_URL', './chat/');
 }
 
 // Path to the chat directory:
 if(!defined('AJAX_CHAT_PATH')) {
  define('AJAX_CHAT_PATH', realpath(dirname($_SERVER['SCRIPT_FILENAME']).'/chat').'/');
 }
 
 // Validate the path to the chat:
 if(@is_file(AJAX_CHAT_PATH.'lib/classes.php')) {
 
  // Include Class libraries:
  require_once(AJAX_CHAT_PATH.'lib/classes.php');
 
  // Initialize the shoutbox:
  $ajaxChat = new CustomAJAXChatShoutBox();
 
  // Parse and return the shoutbox template content:
  return $ajaxChat->getShoutBoxContent();
 }
 
 return null;
}
?>
Make sure AJAX_CHAT_URL and AJAX_CHAT_PATH point to the chat directory.
 
2. Shoutbox output
------------------
Display the shoutbox content using the shoutbox function:
<div style="width:200px;"><?php echo getShoutBoxContent(); ?></div>

regards

macc

(will not wait for solutions for mgc and channels ... tired for all mistakes ...)
this ajax chat is for vbulletin also

pericolosogr 04-27-2008 06:13 PM

Quote:

Originally Posted by RYoBiOS (Post 1500840)
But channels not work again.

i dont need this for the time being...i'll just wait!
the general chats are working and anybody can post...

Scythe42 04-27-2008 09:12 PM

Does not work 3.7 RC4. Chatbox always displays "Loading." When I remove the "define('CSRF_PROTECTION', true);" from the two main scripts it works but the channels never show up.

stangger5 04-27-2008 09:38 PM

This is a temp fix to make the channels show..

Edit the,,
MGC Chatbox Evo Templates >> mgc_cb_evo

find and delete:
Code:

<if condition="$show['genchan']">
then find:
Code:

        $channels_bit
                                                </td>


and delete the
Code:

</if>
after it...

:)

macc 04-27-2008 11:36 PM

this code
Code:

<if condition="$show['genchan']">
is on two places in template! should we delete on both places?


reg

macc

stangger5 04-28-2008 12:18 AM

Just the first one will do..

Robbey 04-28-2008 03:30 AM

Update this so that it works with tokens >.>

makaja 04-28-2008 04:49 AM

Quote:

Error : The command entered syntax is not valid.
I use the command del, but not work and show me this error, i was config /del , but i can't use it :(

ericdesmontagne 04-28-2008 12:20 PM

Excellent... ce chat est vraiement top...
Seul hic, il faut syst?matiquement supprimer les commandes et les canaux puis ensuite les remettre...
L? avec la 0.4.0 j'ai de gros soucis pour ?a, les canaux ne r?apparaissent plus :(

foopy 04-28-2008 01:53 PM

Marked as Uninstalled. Can't get it to work with 3.7.0 RC4. Keep getting the "Loading..." message. I followed the instructions previously given to another user to edit the template but it still did not work.


All times are GMT. The time now is 02:32 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.07684 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (7)pagenav_pagelinkrel
  • (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