Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Strike (http://www.bvlist.com/forumdisplay.php?f=21)
-   -   [More Smilies] for shoutbox (http://www.bvlist.com/showthread.php?t=4241)

wigaer 13th January 2010 19:40

[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=&text=","mywin","height=500,width=450,resizable=no,scrollbars=yes");
}

and I added in index.php :

Code:

More Smiles
but not work when I click on it.
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:


More Smiles


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');
?>



Insert Smilie







dbconn(false);

$query = 'SELECT * FROM shoutbox_emoticons GROUP BY image';

$result = mysql_query($query);
$alt = false;

while ($row = mysql_fetch_assoc($result)) {

echo "
";

}
?>





When i go with mouse on the emoticon, arrow from my mouse should transform into a litle hand and should appear below the window of firefox something like this: "javascript:InsertSmilie(xxxx,xxxx)" but there is nothing and arrow remains the same.

wMan 20th June 2011 19:39

button
 
button for more smilys
for shoutbox.php

after
PHP Code:

require('ts_shoutbox/ts_shoutbox.php');
$shoutbox $SHOUTBOXCONTENTS;
$shoutbox .= 

ADD

PHP Code:

    <input type="button" value="'.$lang->global['shoutmoresmilies'].'" alt="'.$lang->global['shoutmoresmilies'].'" title="'.$lang->global['shoutmoresmilies'].'" onclick="window.open(\''.$BASEURL.'/moresmiles.php\'); return false;" class="button"

moresmiles.php

PHP Code:

<?
/***********************************************/
/*=========[TS Special Edition v.5.6]==========*/
/*=============[Special Thanks To]=============*/
/*        DrNet - wWw.SpecialCoders.CoM        */
/*          Vinson - wWw.Decode4u.CoM          */
/*    MrDecoder - wWw.Fearless-Releases.CoM    */
/*           Fynnon - wWw.BvList.CoM           */
/***********************************************/


  
require_once 'global.php';
  if (!
defined ('IN_SCRIPT_TSSEv56'))
  {
    exit (
'<font face=\'verdana\' size=\'2\' color=\'darkred\'><b>Error!</b> Direct initialization of this file is not allowed.</font>');
  }

  
define ('MS_VERSION''0.5');
  
gzip ();
  
dbconn ();
  
loggedinorreturn ();
  
maxsysop ();
  
parked ();
  require_once 
$rootpath '/' $cache '/smilies.php';
  
$defaultsmilies $smilies;
  
$smilies '';
  
$editor htmlspecialchars ($_GET['editor']);
  
$e 1;
  
$class 'trow1';
  
$smilies '<tr>';
  while (list (
$code$url) = each ($defaultsmilies))
  {
    
$url addslashes ($url);
    
$url htmlspecialchars_uni ($url);
    
$smilies .= '' '
    <td class="' 
$class '" align="center"><img src="' $BASEURL '/' $pic_base_url 'smilies/' $url '" alt="' $code '" onclick="insertSmilie(\'' $code '\');" style="cursor: pointer;" /></a></td>
    <td class="' 
$class '">' $code '</td>';
    if (
$e == 2)
    {
      
$smilies .= '</tr><tr>';
      
$e 1;
      continue;
    }
    else
    {
      
$e 2;
      continue;
    }
  }

  if (
$e == 2)
  {
    
$smilies .= '' '<td colspan="2" class="' $class '">&nbsp;</td>';
  }

  
$str '
<script type="text/javascript" src="' 
$BASEURL '/scripts/prototype.lite.js?v=' O_SCRIPT_VERSION '"></script>
<script type="text/javascript" src="' 
$BASEURL '/scripts/general.js?v=' O_SCRIPT_VERSION '"></script>
<script type="text/javascript" src="' 
$BASEURL '/scripts/editor.js?v=' O_SCRIPT_VERSION '"></script>';
  
$norightclick '
<script language=javascript>
<!--
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>'
;
  
$defaulttemplate ts_template ();
  echo 
'' '
<html>
<head>
<title>' 
$SITENAME ' - ' $lang->global['smilies_listing'] . '</title>

<script type="text/javascript">
    var editor = eval(\'opener.\' + \'' 
$editor '\');
    function insertSmilie(code)
    {
        if(editor)
        {
            editor.performInsert(code, "", true, false);
        }
    }
</script>
$str '
<link rel="stylesheet" href="' 
$BASEURL '/include/templates/' $defaulttemplate '/style/style.css" type="text/css" media="screen" />
</head>
<body>
$norightclick '
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="thead" colspan="4"><strong>' 
$lang->global['smilies_listing'] . '</strong></td>
</tr>
<tr>
<td class="tcat" colspan="4"><span class="smalltext">' 
$lang->global['click_to_add'] . '</span></td>
</tr>
$smilies '
<tr>
<td class="thead" colspan="4" align="center"><span class="smalltext">[<a href="javascript:window.close();">' 
$lang->global['buttonclosewindow'] . '</a>]</span></td>
</tr>
</table>
</body>
</html>'
;
?>



All times are GMT +2. The time now is 12:15.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.