AjaxChat Integration (latest version 3.2.1)

Started by .HuNTeR., August 27, 2008, 12:59:06 AM

Previous topic - Next topic

foempspeedy

Quote from: mrtrc266 on April 20, 2009, 01:52:24 AM
@ looks like a template edit was done improperly, I will have to take a look in the morning I have to get to bed. Looks like you're making progress though  :)
i was making progress...its bad now :(

Kat-2

#1381
Quote from: Kat-2 on April 20, 2009, 02:25:25 AM
Quote from: Godsongz on April 20, 2009, 12:39:28 AM
Kat-2 & Buwan, can you confirm that this code is in your modifications.english.php file?

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Use shoutBox';
$txt['permissionhelp_shout_access'] = 'Give access to use the shoutBox';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration





Oh my gosh  Godsongz  and mrtrc266 ! That was it! Thank you! Thank you!!

Now the language string was in the Modifications.english.php, but there was also a Modifications.english-utf8.php file in there, and the language string was not there.
I installed, and wah-la! I can see! No more blank!

Are both those files supposed to be there?



Lastly...can either of you help me to get the chat to show in other themes?? First off..Dilber...


Again...thank you so much!





I used the parser to try and edit the Dilber theme. Some of the lines that I am supposed to replace are not in there.
I don't know where to put them.


// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}


Supposed to be replaced with

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
if (!empty($modSettings['enableChatBelowPM'])){
$count = count(chatOnlineUsers());
if ($count == 0 )
echo '<br />' . $txt['chat_no_user'];
elseif ($count == 1 )
  echo '<br />  1' . $txt['chat_aUser']. '.<br />';
else
  echo '<br /> ' . $count . $txt['chat_users']. '<br />';
}
echo ' </span>';
}


It isn't there. Where do I put it?


And

</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// Otherwise, they might want to [logout]...



Is supposed to be replaced with..


</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// the [chat] button
if (!empty($modSettings['chatPopUp']))
echo '    <script type="text/javascript">
            function openWindow(url,width,height,options,name) {
                width = width ? width : 800;
                height = height ? height : 600;
                options = options ? options : \'resizable=yes\';
                name = name ? name : \'openWindow\';
                window.open(
                    url,
                    name,
                    \'screenX=\'+(screen.width-width)/2+\',screenY=\'+(screen.height-height)/2+\',width=\'+width+\',height=\'+height+\',\'+options
                )
            }
    </script>';

$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';
// Otherwise, they might want to [logout]...


Not there..where do I put it?


ETA: oops..that is in the index.template.php

Kat-2

Also..how do you get rid of the sound? (yes I have searched).

I have too many people that post from work..need that gone!

mrtrc266

Quote from: foempspeedy on April 20, 2009, 02:26:43 PM
Quote from: mrtrc266 on April 20, 2009, 01:52:24 AM
@ looks like a template edit was done improperly, I will have to take a look in the morning I have to get to bed. Looks like you're making progress though  :)
i was making progress...its bad now :(

Yikes, undo whatever you did

frantic

wow that guide is fantasic thank you.  Only one thing left.  What is the php code to enter into a portal block to get the normaly shoutbox to appear in, in say simple portals custom php block?

mrtrc266

QuoteOh my gosh  Godsongz  and mrtrc266 ! That was it! Thank you! Thank you!!

Now the language string was in the Modifications.english.php, but there was also a Modifications.english-utf8.php file in there, and the language string was not there.
I installed, and wah-la! I can see! No more blank!

Are both those files supposed to be there?
It looks like you have your forum set to utf8 so for every mod that you install that requires modifying your Modification.english.php you will more than likely have to manually add the same code to your Modifications.english-utf8.php. It will not hurt to open both files and copy the entire contents of your Modification.english.php to your Modifications.english-utf8.php.

QuoteLastly...can either of you help me to get the chat to show in other themes?? First off..Dilber...

Find
   <div align="center" style="width: 90%; margin-left: auto; margin-right: auto; margin-top:10px; border: 0px solid;" class="middletext">
    ', $settings['custom_global_html'], '
   </div>';

Add After

//shoutBox
if (!empty($modSettings['enableShoutBox'])){
  if (allowedTo('shout_access')){
   // We'll have to use the cookie to remember the shoutBox header...
   if ($context['user']['is_guest'])
    $options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);
   
   echo '
  <script language="JavaScript" type="text/javascript">
   var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

   function ajax_shoutBox_collapse(mode)
   {';

   if ($context['user']['is_guest'])
    echo '
    document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
   else
    echo '
    smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
    document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

    document.getElementById("ShoutBox").style.display = mode ? "none" : "";

    sb_current_header = mode;
    }
  </script>';

   if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
    echo'
  <div class="tborder" style="margin: 10px 0 10px 0;">
   <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
    <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
   </div>
   <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
   ', getShoutBoxContent() ,'
   </div>
  </div>';
   }
  }
}

Find
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

Replace with
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

Find
       // But, let's always show minutes - Time wasted here: 0 minutes.
       echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }

Replace with
       // But, let's always show minutes - Time wasted here: 0 minutes.
       echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      if (!empty($modSettings['enableChatBelowPM'])){
   $count = count(chatOnlineUsers());
   if ($count == 0 )
    echo '<br />' . $txt['chat_no_user'];
   elseif ($count == 1 )
     echo '<br />  1' . $txt['chat_aUser']. '.<br />';
   else
     echo '<br /> ' . $count . $txt['chat_users']. '<br />';
  }
  echo '    </span>';

Find
// Otherwise, they might want to [logout]...
Replace with

// the [chat] button
if (!empty($modSettings['chatPopUp']))
  echo '    <script type="text/javascript">
            function openWindow(url,width,height,options,name) {
                width = width ? width : 800;
                height = height ? height : 600;
                options = options ? options : 'resizable=yes';
                name = name ? name : 'openWindow';
                window.open(
                    url,
                    name,
                    'screenX='+(screen.width-width)/2+',screenY='+(screen.height-height)/2+',width='+width+',height='+height+','+options
                )
            }
    </script>';
 
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
  <td align="center" class="menubg">
   <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
  </td>';
// Otherwise, they might want to [logout]...


In your style sheets find....You will have to do this for each color style.css, style_lightblue.css, style_lightbrown.css, etc.
/* Normal, standard links. */
Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Normal, standard links. */


If I screwed that up too bad attach your index.template.php file here and I'll get it for ya.

mrtrc266

Quote from: frantic on April 20, 2009, 07:02:29 PM
wow that guide is fantasic thank you.  Only one thing left.  What is the php code to enter into a portal block to get the normaly shoutbox to appear in, in say simple portals custom php block?

At the moment there isn't one that I'm aware of. You could enable the shoutbox on all pages and it will sit on the top of the portal page.

mrtrc266

Quote from: Buwan on April 20, 2009, 06:36:08 AM
Quote from: mrtrc266 on April 20, 2009, 12:41:09 AM
LMAO!!!

Oh, sure!  Jump in and help when the member with the smokin' hot avatar asks!!!

;D


That worked!!  Thank you, guys!!

LOL Glad you got it sorted

frantic

Quote from: mrtrc266 on April 20, 2009, 07:11:46 PM
Quote from: frantic on April 20, 2009, 07:02:29 PM
wow that guide is fantasic thank you.  Only one thing left.  What is the php code to enter into a portal block to get the normaly shoutbox to appear in, in say simple portals custom php block?

At the moment there isn't one that I'm aware of. You could enable the shoutbox on all pages and it will sit on the top of the portal page.

THanks for trying to help, i personally never really like the shout boxes at the top of pages, however the irc like chat is more than fantasic, maybe i'll go get the neo shout box and run both on my forum, your chat and that neo shout in a portal.  but  Really, thank you.

mrtrc266

Quote from: frantic on April 20, 2009, 07:27:16 PM
Quote from: mrtrc266 on April 20, 2009, 07:11:46 PM
Quote from: frantic on April 20, 2009, 07:02:29 PM
wow that guide is fantasic thank you.  Only one thing left.  What is the php code to enter into a portal block to get the normaly shoutbox to appear in, in say simple portals custom php block?

At the moment there isn't one that I'm aware of. You could enable the shoutbox on all pages and it will sit on the top of the portal page.

THanks for trying to help, i personally never really like the shout boxes at the top of pages, however the irc like chat is more than fantasic, maybe i'll go get the neo shout box and run both on my forum, your chat and that neo shout in a portal.  but  Really, thank you.

That should work, it shouldn't conflict. Not "my" Mod I just love it and would like to see everyone have on their site ;)

Gitominoti

Is there a way to get rid of some of the smileys? There is too many for the width of my forum  :-\

dzinerfusion

#1391
hi im getting this error ChatBot: Error: Connection status: 0

*EDIT* I do not know if i editted it right ,if someone could tell me step by step what i need to modify for my THEME MEGAPOLIS. I cannot find

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}

Kat-2

Quote from: mrtrc266 on April 20, 2009, 07:07:39 PM
QuoteOh my gosh  Godsongz  and mrtrc266 ! That was it! Thank you! Thank you!!

Now the language string was in the Modifications.english.php, but there was also a Modifications.english-utf8.php file in there, and the language string was not there.
I installed, and wah-la! I can see! No more blank!

Are both those files supposed to be there?
It looks like you have your forum set to utf8 so for every mod that you install that requires modifying your Modification.english.php you will more than likely have to manually add the same code to your Modifications.english-utf8.php. It will not hurt to open both files and copy the entire contents of your Modification.english.php to your Modifications.english-utf8.php.

QuoteLastly...can either of you help me to get the chat to show in other themes?? First off..Dilber...

Find
   <div align="center" style="width: 90%; margin-left: auto; margin-right: auto; margin-top:10px; border: 0px solid;" class="middletext">
    ', $settings['custom_global_html'], '
   </div>';

Add After

//shoutBox
if (!empty($modSettings['enableShoutBox'])){
  if (allowedTo('shout_access')){
   // We'll have to use the cookie to remember the shoutBox header...
   if ($context['user']['is_guest'])
    $options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);
   
   echo '
  <script language="JavaScript" type="text/javascript">
   var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

   function ajax_shoutBox_collapse(mode)
   {';

   if ($context['user']['is_guest'])
    echo '
    document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
   else
    echo '
    smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
    document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

    document.getElementById("ShoutBox").style.display = mode ? "none" : "";

    sb_current_header = mode;
    }
  </script>';

   if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
    echo'
  <div class="tborder" style="margin: 10px 0 10px 0;">
   <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
    <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
   </div>
   <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
   ', getShoutBoxContent() ,'
   </div>
  </div>';
   }
  }
}

Find
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

Replace with
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

Find
       // But, let's always show minutes - Time wasted here: 0 minutes.
       echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }

Replace with
       // But, let's always show minutes - Time wasted here: 0 minutes.
       echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      if (!empty($modSettings['enableChatBelowPM'])){
   $count = count(chatOnlineUsers());
   if ($count == 0 )
    echo '<br />' . $txt['chat_no_user'];
   elseif ($count == 1 )
     echo '<br />  1' . $txt['chat_aUser']. '.<br />';
   else
     echo '<br /> ' . $count . $txt['chat_users']. '<br />';
  }
  echo '    </span>';

Find
// Otherwise, they might want to [logout]...
Replace with

// the [chat] button
if (!empty($modSettings['chatPopUp']))
  echo '    <script type="text/javascript">
            function openWindow(url,width,height,options,name) {
                width = width ? width : 800;
                height = height ? height : 600;
                options = options ? options : 'resizable=yes';
                name = name ? name : 'openWindow';
                window.open(
                    url,
                    name,
                    'screenX='+(screen.width-width)/2+',screenY='+(screen.height-height)/2+',width='+width+',height='+height+','+options
                )
            }
    </script>';
 
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
  <td align="center" class="menubg">
   <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
  </td>';
// Otherwise, they might want to [logout]...


In your style sheets find....You will have to do this for each color style.css, style_lightblue.css, style_lightbrown.css, etc.
/* Normal, standard links. */
Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Normal, standard links. */


If I screwed that up too bad attach your index.template.php file here and I'll get it for ya.
Quote from: mrtrc266 on April 20, 2009, 07:07:39 PM
QuoteOh my gosh  Godsongz  and mrtrc266 ! That was it! Thank you! Thank you!!

Now the language string was in the Modifications.english.php, but there was also a Modifications.english-utf8.php file in there, and the language string was not there.
I installed, and wah-la! I can see! No more blank!

Are both those files supposed to be there?
It looks like you have your forum set to utf8 so for every mod that you install that requires modifying your Modification.english.php you will more than likely have to manually add the same code to your Modifications.english-utf8.php. It will not hurt to open both files and copy the entire contents of your Modification.english.php to your Modifications.english-utf8.php.

QuoteLastly...can either of you help me to get the chat to show in other themes?? First off..Dilber...

Find
   <div align="center" style="width: 90%; margin-left: auto; margin-right: auto; margin-top:10px; border: 0px solid;" class="middletext">
    ', $settings['custom_global_html'], '
   </div>';

Add After

//shoutBox
if (!empty($modSettings['enableShoutBox'])){
  if (allowedTo('shout_access')){
   // We'll have to use the cookie to remember the shoutBox header...
   if ($context['user']['is_guest'])
    $options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);
   
   echo '
  <script language="JavaScript" type="text/javascript">
   var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

   function ajax_shoutBox_collapse(mode)
   {';

   if ($context['user']['is_guest'])
    echo '
    document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
   else
    echo '
    smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
    document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

    document.getElementById("ShoutBox").style.display = mode ? "none" : "";

    sb_current_header = mode;
    }
  </script>';

   if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
    echo'
  <div class="tborder" style="margin: 10px 0 10px 0;">
   <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
    <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
   </div>
   <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
   ', getShoutBoxContent() ,'
   </div>
  </div>';
   }
  }
}

Find
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

Replace with
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

Find
       // But, let's always show minutes - Time wasted here: 0 minutes.
       echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }

Replace with
       // But, let's always show minutes - Time wasted here: 0 minutes.
       echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      if (!empty($modSettings['enableChatBelowPM'])){
   $count = count(chatOnlineUsers());
   if ($count == 0 )
    echo '<br />' . $txt['chat_no_user'];
   elseif ($count == 1 )
     echo '<br />  1' . $txt['chat_aUser']. '.<br />';
   else
     echo '<br /> ' . $count . $txt['chat_users']. '<br />';
  }
  echo '    </span>';

Find
// Otherwise, they might want to [logout]...
Replace with

// the [chat] button
if (!empty($modSettings['chatPopUp']))
  echo '    <script type="text/javascript">
            function openWindow(url,width,height,options,name) {
                width = width ? width : 800;
                height = height ? height : 600;
                options = options ? options : 'resizable=yes';
                name = name ? name : 'openWindow';
                window.open(
                    url,
                    name,
                    'screenX='+(screen.width-width)/2+',screenY='+(screen.height-height)/2+',width='+width+',height='+height+','+options
                )
            }
    </script>';
 
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
  <td align="center" class="menubg">
   <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
  </td>';
// Otherwise, they might want to [logout]...


In your style sheets find....You will have to do this for each color style.css, style_lightblue.css, style_lightbrown.css, etc.
/* Normal, standard links. */
Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Normal, standard links. */


If I screwed that up too bad attach your index.template.php file here and I'll get it for ya.



I don't think you screwed up anything, but just as it was when I tried this before..I can't find everything in the file. No clue why.. :-[

I have it attached..

mrtrc266

#1393
Kat, this is weird you're missing all kinds of code. What's the link to your site. PM me if you don't want it public.

Ok I think I got it...try this one

mrtrc266

Quote from: bluesinjid on April 20, 2009, 08:03:54 PM
hi im getting this error ChatBot: Error: Connection status: 0

*EDIT* I do not know if i editted it right ,if someone could tell me step by step what i need to modify for my THEME MEGAPOLIS. I cannot find

// But, let's always show minutes - Time wasted here: 0 minutes.
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      echo '            </span>';
   }


You might not need that depending on how your theme is laid out, it just shows # of users under the user info. What's the url to your site?

mrtrc266

Quote from: Gitominoti on April 20, 2009, 07:55:34 PM
Is there a way to get rid of some of the smileys? There is too many for the width of my forum  :-\

Open chat/js/config.js
Find and remove the emotes you don't want

// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':)',
':(',
';)',
':P',
':D',
':|',
':O',
':?',
'8)',
'8o',
'B)',
':-)',
':-(',
':-*',
'O:-D',
'>:-D',
':o)',
':idea:',
':important:',
':help:',
':error:',
':warning:',
':favorite:'
  ),


Also find and remove the associations with the emotes you remove from the above...EXAMPLE if your remove the last 5 line from the above also remove the last 5 lines from below. If you remove line 7 from above also remove line 7 from below...etc.

// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.png',
'sad.png',
'wink.png',
'razz.png',
'grin.png',
'plain.png',
'surprise.png',
'confused.png',
'glasses.png',
'eek.png',
'cool.png',
'smile-big.png',
'crying.png',
'kiss.png',
'angel.png',
'devilish.png',
'monkey.png',
'idea.png',
'important.png',
'help.png',
'error.png',
'warning.png',
'favorite.png'
),

dzinerfusion


Gitominoti

Quote from: mrtrc266 on April 20, 2009, 08:56:01 PM
Quote from: Gitominoti on April 20, 2009, 07:55:34 PM
Is there a way to get rid of some of the smileys? There is too many for the width of my forum  :-\

Open chat/js/config.js
Find and remove the emotes you don't want

// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':)',
':(',
';)',
':P',
':D',
':|',
':O',
':?',
'8)',
'8o',
'B)',
':-)',
':-(',
':-*',
'O:-D',
'>:-D',
':o)',
':idea:',
':important:',
':help:',
':error:',
':warning:',
':favorite:'
  ),


Also find and remove the associations with the emotes you remove from the above...EXAMPLE if your remove the last 5 line from the above also remove the last 5 lines from below. If you remove line 7 from above also remove line 7 from below...etc.

// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.png',
'sad.png',
'wink.png',
'razz.png',
'grin.png',
'plain.png',
'surprise.png',
'confused.png',
'glasses.png',
'eek.png',
'cool.png',
'smile-big.png',
'crying.png',
'kiss.png',
'angel.png',
'devilish.png',
'monkey.png',
'idea.png',
'important.png',
'help.png',
'error.png',
'warning.png',
'favorite.png'
),

Thanks :)

Another question, how do I make it look like the way it looks on the default skin? The default one has the name bold and red, the text is spaced from the edge. Also, I'm missing the "X" so I can delete posts. Is there any way to add those things?

mrtrc266

Quote from: bluesinjid on April 20, 2009, 09:15:20 PM
oh sorry,forgot the url, its  http://www.modernopolis.co.nr

With your theme I wouldnt worry about the edit you can't find.

mrtrc266

Quote from: Gitominoti on April 20, 2009, 09:25:00 PM
Quote from: mrtrc266 on April 20, 2009, 08:56:01 PM
Thanks :)

Another question, how do I make it look like the way it looks on the default skin? The default one has the name bold and red, the text is spaced from the edge. Also, I'm missing the "X" so I can delete posts. Is there any way to add those things?

As Admin you're name should be in red and you should see a red x next to every post. Try clearing your cache if you just got it going.

Advertisement: