AJAX Chat 2.0 Beta bbcodes and smilies

Misc MOD Downloads for phpBB3 -- Any MOD that does not fit into any other category
Forum rules
Image Please feel free to download any MOD's here, support for each MOD is located it's own thread.

To post your own MOD, please first read the MOD Guidelines

Re: AJAX Chat 2.0 Beta bbcodes and smilies

Postby Pietje15 » 30 Mar 2009, 11:58

Are those codes for the people whith BBCode mod problems in IE?
Pietje15
Cadet II
Cadet II
 
Posts: 29
Joined: 08 Oct 2008, 06:13
Gender: Male
phpBB Knowledge: 7


Re: AJAX Chat 2.0 Beta bbcodes and smilies

Postby plexx » 15 Apr 2009, 05:56

Hey..I have the black smoke style and here is my chat_body.html

Spoiler:
<!-- IF S_GET_CHAT -->
<!-- IF S_READ or S_ADD -->
<!-- BEGIN chatrow -->
<div id="p{chatrow.MESSAGE_ID}" class="post bg{chatrow.CLASS}">
<div class="inner"><span class="corners-top"><span></span></span>
<div>
<!-- IF U_ACP or U_MCP -->
<div style="float: left;margin-top: -5px">
<ul class="profile-icons">
<li class="delete-icon"><a href="javascript:void({chatrow.MESSAGE_ID})" title="{L_DELETE_POST}" onClick="delete_post('{chatrow.MESSAGE_ID}')"><span>{L_DELETE_POST}</span></a></li>
</ul>
</div>
<!-- ENDIF -->
<div>{chatrow.USERNAME_FULL} &laquo; {chatrow.TIME} <br /> <span style="color: #999;font-size: 1.1em">{chatrow.MESSAGE}</span></div>
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- END chatrow -->--!--{LAST_ID}
<!-- IF S_WHOISONLINE -->--!--
<!-- BEGIN whoisrow -->
<div>
<div class="inner">
<div class="user"><img src="{T_IMAGESET_PATH}/{whoisrow.USER_STATUS}.png" class="online_img" /> <span nowrap="nowrap">{whoisrow.USERNAME_FULL}</span></div>
</div>
</div>
<!-- END whoisrow -->--!--{LAST_TIME}--!--{DELAY}--!--{LAST_POST}
<!-- ENDIF -->
<!-- IF ALERT -->---1<!-- ENDIF -->
<!-- ENDIF -->
<!-- ELSE -->
<!-- IF S_CHAT -->
<!-- INCLUDE overall_header.html -->
<!-- ENDIF -->
<script type="text/javascript">
<!--
var fieldname = 'chat';
var last_time = 0;
var xmlHttp = http_object();
var last_id = {LAST_ID};
var type = 'receive';
var post_time = {TIME};
var read_interval = 15000;
var interval = setInterval('handle_send("read", last_id);', read_interval);

function handle_send(mode, f)
{
if (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)
{
indicator_switch('on');
type = 'receive';
param = 'mode=' + mode;
param += '&last_id=' + last_id;
param += '&last_time=' + last_time;
param += '&last_post=' + post_time;
param += '&read_interval=' + read_interval;

if (mode == 'add' && document.text.message.value != '')
{
type = 'send';
for(var i = 0; i < f.elements.length; i++)
{
elem = f.elements[i];
param += '&' + elem.name + '=' + encodeURIComponent(elem.value);
}
document.text.message.value = '';
}
else if (mode == 'delete')
{
type = 'delete';
param += '&chat_id=' + f;
}
xmlHttp.open("POST", '{FILENAME}', true);
xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xmlHttp.onreadystatechange = handle_return;
xmlHttp.send(param);
}
}

function handle_return()
{
if (xmlHttp.readyState == 4)
{
if (type != 'delete')
{
results = xmlHttp.responseText.split('--!--');
if (results[1])
{
if (last_id == 0)
{
document.getElementById(fieldname).innerHTML = results[0];
}
else
{
document.getElementById(fieldname).innerHTML = results[0] + document.getElementById(fieldname).innerHTML;
}
last_id = results[1];
if (results[2])
{
document.getElementById('whois_online').innerHTML = results[2];
last_time = results[3];
if (results[4] != read_interval * 1000)
{
window.clearInterval(interval);
read_interval = results[4] * 1000;
interval = setInterval('handle_send("read", last_id);', read_interval);
document.getElementById('update_seconds').innerHTML = results[4];
}
post_time = results[5];
}
else if ((results[2] && results[2] == 1) || results[6])
{
$sound = '<embed src="startrek_red_alert.wav" hidden="true" volume="4" autostart="true"><noembed><bgsound src="startrek_red_alert.wav" volume="4"></noembed>';
document.getElementById('sound').innerHTML = $sound;
}
}
}
indicator_switch('off');
}
}

function delete_post(chatid)
{
document.getElementById('p' + chatid).style.display = 'none';
handle_send('delete', chatid);
}

function indicator_switch(mode)
{
if(document.getElementById("act_indicator"))
{
var img = document.getElementById("act_indicator");
if(img.style.visibility == "hidden" && mode == 'on')
{
img.style.visibility = "visible";
}
else if (mode == 'off')
{
img.style.visibility = "hidden"
}
}
}

function http_object()
{
if (window.XMLHttpRequest)
{
return new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
return new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
document.getElementById('p_status').innerHTML = 'Status: Cound not create XmlHttpRequest Object. Consider upgrading your browser.';
}
}
-->
</script>
<style type="text/css">
<!--
#act_indicator {
visibility:hidden;
}
.shouts {
background-color: #303030;
width: 84%;
height:<!-- IF S_CHAT -->340px<!-- ELSE -->240px<!-- ENDIF -->;
overflow:auto;
float:left;
margin: 4px 0;
}
#chat {
width: 99%;
text-align:left;
}
.postprofile {
min-height: 5px !important;
}
.chatform {
color: #2A435D;
width: 100%;
text-align:center;
padding-bottom: 2px;
}
.onlinelist {
width: 16%;
overflow:auto;
height:<!-- IF S_CHAT -->290px<!-- ELSE -->190px<!-- ENDIF -->;
margin: 4px 0;
}
.users {
width: 95%;
text-align: left;
margin-left:auto;
margin-right:auto;
}
.user {
width: 97%;
font-size: 1.1em;
font-family:Verdana, Arial, Helvetica, sans-serif;
white-space: nowrap; /* For Opera */
}
#act_indicator {
visibility: hidden;
}
.chatinput {width: 70% !important;}
.online_img {
vertical-align:middle;
}
-->
</style>
</ul>

<ul class="outer-cat">
<li class="top-cat">
<dl class="cat-container">
<dd class="cat-left">
<div style="float: left"><h4 style="color: #FF6604">&nbsp;<!-- IF not S_CHAT --><a href="{U_CHAT}">Darkshares Shoutbox</a><!-- ELSE --><strong>{SITENAME} {L_CHAT_EXPLAIN}</strong><!-- ENDIF --></h4></div>
</dd>
<dd class="cat-text">
<div style="text-align: center;padding-bottom: 4px">
<!-- IF S_USER_LOGGED_IN -->
<form name="text" id="text" method="post" action="javascript:void(0);" onSubmit="handle_send('add', this)" autocomplete="off">
<strong style="color: #FF6604">{L_MESSAGE}:</strong> <input type="text" tabindex="1" size="39" name="message" id="message" class="inputbox chatinput" />
<input type="submit" class="button1" value="{L_SUBMIT}" name="submit" tabindex="6" accesskey="s"/><br />
</form>
<!-- ELSE -->
<b style="color: white;">You must be a Registered User to Chat in the Shoutbox</b>
<!-- ENDIF -->
</div>
</dd>
<dd class="cat-right" style="text-align: right"></dd>
</dl>
</li>
</ul>
<ul class="topiclist forums">
<li class="row" style="background-color: #303030;border: 6px solid #000;padding-left: 4px">
<dl class="icon">
<div>
<div align="left">
<div class="shouts">
<div id="chat">
<!-- BEGIN chatrow -->
<div id="p{chatrow.MESSAGE_ID}" class="post bg{chatrow.CLASS}">
<div class="inner"><span class="corners-top"><span></span></span>

<div>
<!-- IF U_ACP or U_MCP -->
<div style="float: left;margin-top: -5px">
<ul class="profile-icons">
<li class="delete-icon"><a href="javascript:void({chatrow.MESSAGE_ID})" title="{L_DELETE_POST}" onClick="delete_post('{chatrow.MESSAGE_ID}')"><span>{L_DELETE_POST}</span></a></li>
</ul>
</div>
<!-- ENDIF -->
<div>{chatrow.USERNAME_FULL} &laquo; {chatrow.TIME} <br /> <span style="color: #999;font-size: 1.2em">{chatrow.MESSAGE}</span></div>
</div>

<span class="corners-bottom"><span></span></span></div>
</div>
<!-- END chatrow -->
</div>
</div>
<span style="color: #999">&nbsp; {L_ONLINE_LIST}:</span>
<div class="onlinelist">
<div class="users" id="whois_online">
<!-- BEGIN whoisrow -->
<div>
<div class="inner">
<div class="user"><img src="{T_IMAGESET_PATH}/{whoisrow.USER_STATUS}.png" class="online_img" /> {whoisrow.USERNAME_FULL}</div>
</div>
</div>
<!-- END whoisrow -->
</div>
</div>
</dl>
</li>
</ul>
<div class="forabg" style="color: #FF6604;text-align: center">
{L_DETAILS} &nbsp; <img src="{T_IMAGESET_PATH}/act_indicator.gif" id="act_indicator" style="margin-bottom: -4px;margin-top: 2px" alt="" /> &nbsp; <strong>{L_UPDATES} <span id="update_seconds">{DELAY}</span> {L_UNIT}</strong>
<span class="corners-bottom"><span></span></span>
</div>

<!-- IF S_CHAT -->
<!-- IF S_DISPLAY_ONLINE_LIST -->
<div style="float: left;margin-bottom: 8px;"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="" /> &nbsp; </div><!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
<p style="margin-bottom:4px;">{TOTAL_USERS_ONLINE}<br />{LOGGED_IN_USER_LIST}
<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->

<!-- INCLUDE overall_footer.html --> <!-- ENDIF -->
<!-- ENDIF -->


When i post a smillie it is not showing only the text is showing.

How to resolve this problem.? :scratch:
plexx    
Cadet I
Cadet I
 
Posts: 12
Joined: 03 Dec 2008, 03:00
Gender: Male

Re: AJAX Chat 2.0 Beta bbcodes and smilies

Postby MJF » 01 Jun 2009, 06:04

I´ve installed the Smileys and the BBCode Buttons,but when i klick on a Smiley or an BBCode nothing happens..It should be appear in the Message Box,but nothing happens?Anyone who can help me :D Thanks so far..

The Buttons helped me really much to tune my Shoutbox ;)

Have a nice day everyone :bye: :wave:
MJF
Cadet I
Cadet I
 
Posts: 14
Joined: 29 May 2009, 08:47
Gender: Male

Re: AJAX Chat 2.0 Beta bbcodes and smilies

Postby hiphopusa » 24 Oct 2009, 09:27

How do I install this? I don't know how to install mods :/
hiphopusa    
Crewman
Crewman
 
Posts: 4
Joined: 24 Oct 2009, 09:13
Gender: Male
phpBB Knowledge: 7

Re: AJAX Chat 2.0 Beta bbcodes and smilies

Postby hmmmmmm » 02 Dec 2009, 13:40

Jaymie1989 wrote:Well i have eliminated the problem of all the smiles showing. Of course as the friendly person that I am i will share this with all of you for $55 just send it to my pay pal :P

Na you all can have it for free.

Ok here is what you do. Open styles/templates/chat_body.html
Find:
Code: Select all
<!-- IF S_SMILIES_ALLOWED and .smiley -->
<!-- BEGIN smiley -->
<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
<!-- END smiley -->
<!-- ENDIF -->


Replace with:
Code: Select all
<!-- IF S_SMILIES_ALLOWED and .smiley -->
<a href="./posting.php?mode=smilies&amp;f=2" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;"><font color="#FFFFFF">View more smilies</font></a>
<!-- ENDIF -->


Now you have 2 options, You can change the text from "View More Smileys" To do this you need to
Find:
Code: Select all
View more smilies

on the lines i just gave you. Then change it to what ever

Second option is to change the color of the font.
I have wrapped the font that says "View More Smilies" as white, To change this find the <font></font> tags which show like this on the lines above (the code that you replaced it with)
Code: Select all
<font color="#FFFFFF">View more smilies</font>
and just change the #FFFFFF which a Hex Decimal font color, Here is a good place to get the font color View Here

When you click on a smilie it will also add the text to the chat box just like it does when making a post

So there it is.
Enjoy :grin:


This Worked For Me..

Just One Question Is That... I Have Many Smilies Installed In My Forum... But When I Click On ViewMore Smilies... All Smilies Did Not ShowUp Except Few Ones...

What To Do To SHow All Smilies In PopUp WIndow....

Regards
hmmmmmm    
Cadet III
Cadet III
 
Posts: 38
Joined: 20 Feb 2009, 13:23
Gender: Male

Re: AJAX Chat 2.0 Beta bbcodes and smilies

Postby hmmmmmm » 02 Dec 2009, 13:47

hiphopusa wrote:How do I install this? I don't know how to install mods :/


Fir Install Ajax Chat ... DOwnload Mod Here

Follow The Instructions Via Install.Xml ;)
hmmmmmm    
Cadet III
Cadet III
 
Posts: 38
Joined: 20 Feb 2009, 13:23
Gender: Male

Re: AJAX Chat 2.0 Beta bbcodes and smilies

Postby hmmmmmm » 02 Dec 2009, 13:48

hmmmmmm wrote:
Jaymie1989 wrote:Well i have eliminated the problem of all the smiles showing. Of course as the friendly person that I am i will share this with all of you for $55 just send it to my pay pal :P

Na you all can have it for free.

Ok here is what you do. Open styles/templates/chat_body.html
Find:
Code: Select all
<!-- IF S_SMILIES_ALLOWED and .smiley -->
<!-- BEGIN smiley -->
<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
<!-- END smiley -->
<!-- ENDIF -->


Replace with:
Code: Select all
<!-- IF S_SMILIES_ALLOWED and .smiley -->
<a href="./posting.php?mode=smilies&amp;f=2" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;"><font color="#FFFFFF">View more smilies</font></a>
<!-- ENDIF -->


Now you have 2 options, You can change the text from "View More Smileys" To do this you need to
Find:
Code: Select all
View more smilies

on the lines i just gave you. Then change it to what ever

Second option is to change the color of the font.
I have wrapped the font that says "View More Smilies" as white, To change this find the <font></font> tags which show like this on the lines above (the code that you replaced it with)
Code: Select all
<font color="#FFFFFF">View more smilies</font>
and just change the #FFFFFF which a Hex Decimal font color, Here is a good place to get the font color View Here

When you click on a smilie it will also add the text to the chat box just like it does when making a post

So there it is.
Enjoy :grin:


This Worked For Me..

Just One Question Is That... I Have Many Smilies Installed In My Forum... But When I Click On ViewMore Smilies... All Smilies Did Not ShowUp Except Few Ones...

What To Do To SHow All Smilies In PopUp WIndow....

Regards
hmmmmmm    
Cadet III
Cadet III
 
Posts: 38
Joined: 20 Feb 2009, 13:23
Gender: Male

Re: AJAX Chat 2.0 Beta bbcodes and smilies

Postby jojork » 30 Dec 2009, 00:45

Please
disable features such as -----
when I send 5x ----- so the error
can prohibit these characters

Sorry my english languange
jojork
Cadet IV
Cadet IV
 
Posts: 40
Joined: 06 Jan 2009, 02:47
Location: Slovakia
Gender: Male

Re: AJAX Chat 2.0 Beta bbcodes and smilies

Postby marpo22 » 26 Apr 2010, 13:33

hello, how address the problem of BBCode in chat box? no I do not work the key
marpo22    
Cadet II
Cadet II
 
Posts: 21
Joined: 26 Dec 2007, 12:08
Gender: Male

Re: AJAX Chat 2.0 Beta bbcodes and smilies

Postby Darky » 19 Jun 2010, 01:19

WOW!! I want to try it, nut haven't understood how to install.
where are the instructions?

Two question:

1- where I'll put orangedark_1
2- Don't work the image delete
Darky    
Cadet I
Cadet I
 
Posts: 10
Joined: 13 Jun 2010, 03:26
Gender: Male
phpBB Knowledge: 5

PreviousNext

Return to Miscellaneous MODs, Hacks and Downloads

Who is online

Users browsing this forum: Googlebot, MSNbot Media and 7 guests