Page 4 of 80

Re: mChat new version

Posted: Wed Nov 25, 2009 5:55 pm
by RMcGirr83
Komplex wrote:how do I install this mod? sorry im like a virgin at this..
Open the install.xml file in your browser and follow the instructions...or you can also try Automod (search these forums for it).
vietconferencecom wrote:it seems like the instruction is telling me to add to comment lines to index_body.html file. just comment lines? or did I read it wrong?
Ermmm, huh?

Re: mChat new version

Posted: Wed Nov 25, 2009 6:36 pm
by Khamosh-Saya
Only One Button is Showing in mine index Page Arcade or Chat why?
if i up arcade code Arcade button display if i up mchat code only mchat button showing ...

overall_header.html

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="{PAGE_KEYWORDS}" />
<meta name="description" content="{PAGE_DESCRIPTION}" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>
<!-- IF S_ENABLE_FEEDS -->
	<link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" />
	<!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_TOPICS}" href="{U_FEED}?mode=topics" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&t={S_TOPIC_ID}" /><!-- ENDIF -->
<!-- ENDIF -->

<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />

<script type="text/javascript">
// <![CDATA[
	function hide(id) { document.getElementById(id).style.display="none"; }
    function show(id) { document.getElementById(id).style.display="block"; }
    function layerTest(id) {
      if ( document.getElementById(id).style.display == 'none' ) {
          show(id);
          } else {
          hide(id);
        }
      }
	  
<!-- IF S_USER_PM_POPUP -->
	if ({S_NEW_PM})
	{
		popup('{UA_POPUP_PM}', 480, 180, '_phpbbprivmsg');
	}
<!-- ENDIF -->

function popup(url, width, height, name)
{
	if (!name)
	{
		name = '_popup';
	}

	window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
	return false;
}

function jumpto()
{
	var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
	var per_page = '{PER_PAGE}';
	var base_url = '{A_BASE_URL}';

	if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
	{
		if (base_url.indexOf('?') == -1)
		{
			document.location.href = base_url + '?start=' + ((page - 1) * per_page);
		}
		else
		{
			document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
		}
	}
}

/**
* Find a member
*/
function find_username(url)
{
	popup(url, 870, 570, '_usersearch');
	return false;
}

/**
* Mark/unmark checklist
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
	var parent = document.getElementById(id);
	if (!parent)
	{
		eval('parent = document.' + id);
	}

	if (!parent)
	{
		return;
	}

	var rb = parent.getElementsByTagName('input');
	
	for (var r = 0; r < rb.length; r++)
	{
		if (rb[r].name.substr(0, name.length) == name)
		{
			rb[r].checked = state;
		}
	}
}

<!-- IF ._file -->

	/**
	* Play quicktime file by determining it's width/height
	* from the displayed rectangle area
	*
	* Only defined if there is a file block present.
	*/
	function play_qt_file(obj)
	{
		var rectangle = obj.GetRectangle();

		if (rectangle)
		{
			rectangle = rectangle.split(',')
			var x1 = parseInt(rectangle[0]);
			var x2 = parseInt(rectangle[2]);
			var y1 = parseInt(rectangle[1]);
			var y2 = parseInt(rectangle[3]);

			var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
			var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
		}
		else
		{
			var width = 200;
			var height = 0;
		}

		obj.width = width;
		obj.height = height + 16;

		obj.SetControllerVisible(true);

		obj.Play();
	}
<!-- ENDIF -->

function selectCode(a)
{
   // Get ID of code block
   var e = a.parentNode.parentNode.getElementsByTagName('CODE')[0];

   // Not IE
   if (window.getSelection)
   {
      var s = window.getSelection();
      // Safari
      if (s.setBaseAndExtent)
      {
         s.setBaseAndExtent(e, 0, e, e.innerText.length - 1);
      }
      // Firefox and Opera
      else
      {
         var r = document.createRange();
         r.selectNodeContents(e);
         s.removeAllRanges();
         s.addRange(r);
      }
   }
   // Some older browsers
   else if (document.getSelection)
   {
      var s = document.getSelection();
      var r = document.createRange();
      r.selectNodeContents(e);
      s.removeAllRanges();
      s.addRange(r);
   }
   // IE
   else if (document.selection)
   {
      var r = document.body.createTextRange();
      r.moveToElementText(e);
      r.select();
   }
}

// ]]>
</script>
<!-- IF S_MCHAT_ENABLE -->
<script type="text/javascript" src="{ROOT_PATH}mchat/jquery_core_mini.js"></script>
<script type="text/javascript" src="{ROOT_PATH}mchat/jquery_cookie_mini.js"></script>
<link rel="stylesheet" href="{ROOT_PATH}mchat/mchat_subsilver2.css" type="text/css" />
<!-- ENDIF -->
<!-- IF S_IN_ARCADE -->
	<link href="{T_THEME_PATH}/arcade.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->
</head>
<body class="{S_CONTENT_DIRECTION}">

<a name="top"></a>

<table class="wrap" width="100%" cellpadding="0" cellspacing="0">
<tr><td>

<div id="wrapheader">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
<td width="419" height="18" style="background:url('{T_THEME_PATH}/images/topl.png');">&nbsp;</td>
<td height="18" style="background:url('{T_THEME_PATH}/images/topm.png');">&nbsp;</td>
<td width="390" height="18" align="right" style="background:url('{T_THEME_PATH}/images/topr.png');">&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="396" height="80" style="background:url('{T_THEME_PATH}/images/midl.png');"><div class="logo"><a class="headw" href="{U_INDEX}">{SITENAME}</a><br /><span class="genmedw">{SITE_DESCRIPTION}</span></div>
</td>
<!-- IF not $S_IN_PORTAL or S_DISPLAY_PHPBB_MENU -->
<td height="80" style="background:url('{T_THEME_PATH}/images/midm.png');">&nbsp;</td>
<td width="396" height="80" align="right" valign="top" style="background:url('{T_THEME_PATH}/images/midr.png');">
<!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH -->
<div class="midlink">
<div id="search-box">
<form action="{U_SEARCH}" method="post" id="search">
<fieldset class="nb">
<input name="keywords" style="opacity:0.8;filter:alpha(opacity=80)" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.8;this.filters.alpha.opacity=80" type="text" class="inputbox search" id="keywords" title="{L_SEARCH_KEYWORDS}" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" maxlength="50" />
<input class="nb" name="submit" type="image" src="{T_THEME_PATH}/images/search.png" align="absmiddle" /><br />
<a class="genmedw" href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_SEARCH_HIDDEN_FIELDS}
</fieldset>
</form>
</div>
</div>
<!-- ENDIF -->
</td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
<td width="18" height="24" style="background:url('{T_THEME_PATH}/images/midbl.png');">&nbsp;</td>
<td height="24" align="left" style="background:url('{T_THEME_PATH}/images/midbm.png');">

<div class="buttonwrapper">
<div class="navspacel"></div>
<!-- IF S_USER_LOGGED_IN -->
<!-- ELSEIF S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) -->
<a class="squarebuttonl" href="{U_REGISTER}"><span>{L_REGISTER}</span></a><div class="navspacel"></div>
<!-- ENDIF -->
<!-- IF S_USER_LOGGED_IN -->
<a class="squarebuttonl" href="{U_PROFILE}"><span>{L_PROFILE}</span></a><div class="navspacel"></div>
<!-- IF S_DISPLAY_PM -->
<a class="squarebuttonl" href="{U_PRIVATEMSGS}"><span>{PRIVATE_MESSAGE_INFO}</span></a><div class="navspacel"></div>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF U_RESTORE_PERMISSIONS -->
<a class="squarebuttonl" href="{U_RESTORE_PERMISSIONS}"><span>{L_RESTORE_PERMISSIONS}</span></a>
<!-- ENDIF -->
</div>

</td>
<td height="24" align="right" style="background:url('{T_THEME_PATH}/images/midbm.png');">

<div class="buttonwrapper">
<div class="navspacer"></div>
<!-- IF not S_IS_BOT -->
<a class="squarebuttonr" href="{U_LOGIN_LOGOUT}"><span>{L_LOGIN_LOGOUT}</span></a><div class="navspacer"></div>
<!-- IF S_DISPLAY_MEMBERLIST -->
<a class="squarebuttonr" href="{U_MEMBERLIST}"><span>{L_MEMBERLIST}</span></a><div class="navspacer"></div>
<!-- ENDIF -->
<!-- ENDIF -->
<a class="squarebuttonr" href="{U_FAQ}"><span>{L_FAQ}</span></a>
<!-- IF S_MCHAT_ENABLE and U_MCHAT --><a class="squarebuttonr" href="{U_MCHAT}"><span>{L_MCHAT}</span></a><!-- ENDIF -->
<a class="squarebuttonr" href="{U_ARCADE}"><span>{L_ARCADE}</span></a>
</div>

</td>
<td width="18" height="24" style="background:url('{T_THEME_PATH}/images/midbr.png');">&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
<td width="18" height="18" style="background:url('{T_THEME_PATH}/images/bl.png');">&nbsp;</td>
<td height="18" style="background:url('{T_THEME_PATH}/images/bm.png');">&nbsp;</td>
<td width="18" height="18" style="background:url('{T_THEME_PATH}/images/br.png');">&nbsp;</td>
  </tr>
		<!-- INCLUDE arcade/arcade_info_body.html -->
</table>
</div>

    <!-- IF not $S_IN_PORTAL or S_DISPLAY_PHPBB_MENU -->
    <!-- INCLUDE announcement_centre.html -->

<div id="datebar">
		<table width="100%" cellspacing="0">
		<tr>
			<td class="gensmall">
            <!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
			<td class="gensmall" align="{S_CONTENT_FLOW_END}">{CURRENT_TIME}<br /></td>
		</tr>
		</table>
</div>

	<!-- IF S_DISPLAY_SEARCH -->
	<p class="searchbar">
		<span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
		<!-- IF S_USER_LOGGED_IN -->
		<span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_UNREAD}">{L_SEARCH_UNREAD}</a> | <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
		<!-- ENDIF -->
	</p>
	<!-- ENDIF -->

	<br style="clear: both;" />

	<!-- INCLUDE breadcrumbs.html -->

  <br />
   <!-- ENDIF -->
	<!-- IF AD_CODE5 -->
	<br /><div style="text-align:center;">{AD_CODE5}</div>
	<!-- ENDIF -->

<!-- IF S_BOARD_DISABLED -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="18" height="18"><img src="{T_THEME_PATH}/images/tl.png" width="18" height="18" alt="" /></td>
    <td height="18" style="background:url('{T_THEME_PATH}/images/tm.png');"></td>
    <td width="18" height="18"><img src="{T_THEME_PATH}/images/tr.png" width="18" height="18" alt="" /></td>
  </tr>
  <tr>
    <td width="18" style="background:url('{T_THEME_PATH}/images/ml.png');"></td>
    <td>
    
	<table class="tablebg" width="100%" cellspacing="0">
    <tr>
		<td class="cat" colspan="2"><h4>{MESSAGE_TITLE}</h4></td>
	</tr>
	<tr>
		<td class="row1" align="center" height="30"><span class="error">{L_BOARD_DISABLED}</span></td>
	</tr>
	</table>

  <!-- ENDIF -->   
</td>
    <td width="18" style="background:url('{T_THEME_PATH}/images/mr.png');"></td>
  </tr>
  <tr>
    <td width="18" height="18"><img src="{T_THEME_PATH}/images/bl.png" width="18" height="18" alt="" /></td>
    <td height="18" style="background:url('{T_THEME_PATH}/images/bm.png');"></td>
    <td width="18" height="18"><img src="{T_THEME_PATH}/images/br.png" width="18" height="18" alt="" /></td>
  </tr>
</table>
</div>
<!-- ENDIF -->

<br />
Only One Button Showing. Arcade or Chat why?

Code: Select all

<a class="squarebuttonr" href="{U_FAQ}"><span>{L_FAQ}</span></a>
<!-- IF S_MCHAT_ENABLE and U_MCHAT --><a class="squarebuttonr" href="{U_MCHAT}"><span>{L_MCHAT}</span></a><!-- ENDIF -->
<a class="squarebuttonr" href="{U_ARCADE}"><span>{L_ARCADE}</span></a>
</div>

Re: mChat new version

Posted: Wed Nov 25, 2009 10:42 pm
by tsja
stokerpiller wrote:You have to set permissions for each group, also administrators.
everything is set to 'Yes' by my administror group :roll:
(group permissions, page mChat)

until the moderation of this mod is good, i cant release it for my board members :(

Re: mChat new version

Posted: Wed Nov 25, 2009 11:25 pm
by vietconferencecom
RMcGirr83 wrote: Ermmm, huh?
I meant that step 4 telling to add 2 comment lines only?

Re: mChat new version

Posted: Wed Nov 25, 2009 11:40 pm
by RMcGirr83
tsja wrote:
stokerpiller wrote:You have to set permissions for each group, also administrators.
everything is set to 'Yes' by my administror group :roll:
(group permissions, page mChat)

until the moderation of this mod is good, i cant release it for my board members :(
Setting a permission on a group that a user is a member of to "never" overrides other permissions. Check the permissions by using the masks.
vietconferencecom wrote:
RMcGirr83 wrote: Ermmm, huh?
I meant that step 4 telling to add 2 comment lines only?
This step 4?

http://rmcgirr83.org/mods/mChat/install ... ctions.php

Re: mChat new version

Posted: Thu Nov 26, 2009 3:04 am
by Bushflyer
Installing via AutoMod then following the DIY instructions causes this error:

Mini-Chat
PHP Version: 5.2.10
DBMS: PostgreSQL 8.4.1, compiled by Visual C++ build 1400, 32-bit
phpBB3 Version: 3.0.6

Adding a new database table: phpbb3_mchat
SQL ERROR ERROR: relation "phpbb3_mchat_seq" does not exist

Re: mChat new version

Posted: Thu Nov 26, 2009 5:42 am
by ProtoGT
Figured it out myself, also the disabling the board for "removing" copyright is bogus. If someone install this on a major board then disabling the main page can cause problems for people.

Re: mChat new version

Posted: Thu Nov 26, 2009 6:25 am
by tsja
RMcGirr83 wrote:
tsja wrote:
stokerpiller wrote:You have to set permissions for each group, also administrators.
everything is set to 'Yes' by my administror group :roll:
(group permissions, page mChat)

until the moderation of this mod is good, i cant release it for my board members :(
Setting a permission on a group that a user is a member of to "never" overrides other permissions. Check the permissions by using the masks.

there is not a group on my board where the permission is set to 'never' :cry:

Nice mod... if it works with moderators
I/ve got no idee how to get the moderator options :twisted:

Re: mChat new version

Posted: Thu Nov 26, 2009 9:07 am
by Hippie459MN
Congrats on making it into the ModDB! :D

Re: mChat new version

Posted: Thu Nov 26, 2009 9:36 am
by Krej
need help with this
viewonline.php
$location_url = append_sid("{$phpbb_root_path}index.$phpEx");
break;

i can see there's like 5+ of them
should i put this code after them all?

// BEGIN mChat Mod
case 'mchat':
$location = $user->lang['MCHAT'];
$location_url = append_sid("{$phpbb_root_path}mchat.$phpEx");
break;
// END mChat Mod

Re: mChat new version

Posted: Thu Nov 26, 2009 9:41 am
by stokerpiller
Krej wrote:i can see there's like 5+ of them
should i put this code after them all?
No, just the first. So only one time.

Re: mChat new version

Posted: Thu Nov 26, 2009 10:40 am
by Krej
guess what..
I FAILED AGAIN!
omg for the 4th time! :? :cry:
i still cant get it work.. i hate this.. :x

Re: mChat new version

Posted: Thu Nov 26, 2009 11:24 am
by RMcGirr83
ProtoGT wrote:Figured it out myself, also the disabling the board for "removing" copyright is bogus.
What part of "...only affects index.php" do you not understand?

..and it is the author(s) right to have whatever they want in the mod. Don't like it? Either modify the code or don't use the Mod...seems simple enough.

Krej, you may want to try Automod or have a read of these articles.

Knowledge Base - How to Install MODs

Knowledge Base - How to install a MODX Modification

Re: mChat new version

Posted: Thu Nov 26, 2009 2:49 pm
by Khamosh-Saya
Waiting for help

Re: mChat new version

Posted: Thu Nov 26, 2009 4:32 pm
by davc4
works great thanks for the update to the app. :D