|
#1
|
|||
|
|||
[More Smilies] for shoutbox
Hello to all!
I want to add [More Smilies] in the shoutbox and not really succeed .... in global.php i found: Code:
function winop() { windop = window.open("moresmiles.php?form=<?=$form?>&text=<?=$text?>","mywin","height=500,width=450,resizable=no,scrollbars=yes"); } Code:
<a href="javascript:winop();">More Smiles</a> in "Add a full comment" on the torrent works perfectly mention that i using "Torrent Strike Fully Modded" source. __________________________________________________ ____________________________ Edit after one day: In index.php i added: Code:
<script> function winop() { windop = window.open("shout_smilies.php?form=<?=$form?>&text=<?=$text?>","mywin","height=500,width=450,resizable=no,scrollbars=yes"); } </script> <a href="javascript:winop();">More Smiles</a> I added the emoticon in the database in "shoutbox_emoticons" and now window appears when I click on "More Smiles" but nothing appears in "Message:" when I click on the emoticon. This is my shout_smilies.php Code:
<? require_once("include/bittorrent.php"); require_once('include/config.php'); ?> <HTML> <HEAD> <TITLE>Insert Smilie</TITLE> <SCRIPT Language="JavaScript"> <!-- function InsertSmilie(texttoins) { window.opener.document.shoutform.message.value = window.opener.document.shoutform.message.value+' '+texttoins+' '; window.opener.document.shoutform.message.focus(); window.close(); } //--> </SCRIPT> <script type="text/javascript"> window.google_analytics_uacct = "UA-3186736-1"; </script> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#800000" ALINK="#FF00FF"> <? dbconn(false); $query = 'SELECT * FROM shoutbox_emoticons GROUP BY image'; $result = mysql_query($query); $alt = false; while ($row = mysql_fetch_assoc($result)) { echo " <img src='".$SITEURL."./images/shoutbox/".$row['image']."' onClick=\"InsertSmilie('".$row['text']."');\">"; } ?> <script type="text/javascript"><!-- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); //--> </script> <script type="text/javascript"><!-- try { var pageTracker = _gat._getTracker("UA-3186736-1"); pageTracker._trackPageview(); } catch(err) {} //--> </script> </BODY> </HTML> Last edited by wigaer; 14th January 2010 at 19:11. |
#2
|
|||
|
|||
button
button for more smilys
for shoutbox.php after PHP Code:
PHP Code:
PHP Code:
Last edited by wMan; 20th June 2011 at 22:16. |
Tags |
shoutbox , smilies |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Make "More Smilies" and "Help" on FTS shoutbox a clickable link | benjaminbih | Mods & Themes | 1 | 22nd December 2009 07:22 |
Smilies | Fynnon | Downloads | 5 | 18th December 2009 23:52 |
More Smilies | C2DaJ | Template Shares | 0 | 4th October 2009 03:52 |
Smilies | rulebreaker | Template Shares | 5 | 6th March 2009 15:30 |
Ts 5.1 smilies in a chat | zenja7777 | Template Shares | 0 | 10th August 2008 16:29 |