Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Añadir boton caritas foro al Shout Box

Aloittaja Jochy01, helmikuu 26, 2009, 06:19:35 IP

« edellinen - seuraava »

Jochy01



Buenas, tengo el shoutbox instalado, me he dado cuenta de que se le puede añadir un boton con las caritas del foro, alguien sabe como lo puedo hacer? tiene alguien el codigo?.




Saludos!.
SMF: 1.1.9
MKPortal: C 1.2.1
FreedomQashqaiForums

#jsDotx3

mm creo que toma por las del foro, anda a Adminsitracion Conjunto de smilies y listo. Hay agregas,quitas , etcétera.

Solved
(Life would be easy with a simple solution.)

Jochy01

Lainaus käyttäjältä: [L]okitox; - maaliskuu 01, 2009, 10:48:30 AP
mm creo que toma por las del foro, anda a Adminsitracion Conjunto de smilies y listo. Hay agregas,quitas , etcétera.


No si, eso si, pero queria añadir un boton para que le saliera un desplegable con los smileys, pq si no te sabes el codigo no salen.


Saludos!.
SMF: 1.1.9
MKPortal: C 1.2.1
FreedomQashqaiForums


Jochy01

Lainaus käyttäjältä: NIBOGO - maaliskuu 08, 2009, 01:28:02 IP
Cual es el shoutbox??

Debe dar informacion detallada de sus problemas para poder dar buenas respuestas


Tengo instalado nneonneo's Shoutbox 1.21 y me gustaria añadir una caja con las caritas del foro, aqui dicen algo, pero esta en ingles :( :

Lainaus käyttäjältä: nneonneo - tammikuu 19, 2008, 11:01:07 AP
I'm reposting pongsak's smiley guide because the recent server crash has deleted the smiley.php attachment.

Lainaus käyttäjältä: pongsak - elokuu 18, 2007, 11:10:08 IP
For adding smiley .Let's go.
1. Adding 1 line of script between <head> and </head> index.template.php  .


<script src="',$boardurl,'/mymod/animatedcollapse.js" type="text/javascript"></script>


This file will create sliding effect.

2. Create "mymod" dir in root forum dir and put the attached animatedcollapse.js in that dir.

3. download smiley.php and safe in mymod dir. (download smiley_SMF2.php instead for SMF 2.x, but name it smiley.php)

4. Search after in index.template.php or boardindex.template.php depend on where u put shout box.

<div id="yshout"', empty($options['collapse_header']) ? '>' : ' style="display: none;">',$txt['yshout_loading'],'<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>
or
<div id="yshout">',$txt['yshout_loading'],'<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>
or
<div id="yshout">';
include_once($boarddir.'/yshout/yshout.php');
echo '</div>

   add

<div class="smalltext" style="padding-left:25px;"><a href="javascript:collapse1.slidedown()">Open Smiley</a> | <a href="javascript:collapse1.slideup()">Close</a>';
require('mymod/smiley.php');
loadSmileys();
echo '
<div id="smiley_pic">';
printSmileys('shout_form','shout_text');
echo '
</div>
<script type="text/javascript">
//Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )
var collapse1=new animatedcollapse("smiley_pic", 1000, false)
</script>
</div>

NOTE: Don't put it after the '; or it will not work!

5. Open yshout.php for namely some input.

find and replace (up to 4 times)

*id="shout-form"

with

*id="shout-form" name="shout_form"

find and replace (up to 4 times)

*id="shout-text"

with

*id="shout-text" name="shout_text"

That's it.  :D



EDIT [Feb 4 2008]: Updated a few instructions. Changes are noted in red, changes to code marked with a red *.
EDIT [June 22 2008]: Clarified instructions.
EDIT [June 27 2008]: Add 1.20 instructions.
EDIT [June 29 2008]: Moved animatedcollapse.js to an attachment, added a version of smiley.php for SMF 2.x.
EDIT [July 15 2008]: Clarified a common error.

SMF: 1.1.9
MKPortal: C 1.2.1
FreedomQashqaiForums

Advertisement: