Quote:
Originally Posted by php4dev
:speechless: :speechless: :speechless: :speechless:
but i am looking to install this hack on the quick reply
can you do it yoyoyoyo ?
|
I haven't really looked in to it yet, but will try to do so later. In the meantime, the question came up about whether or not this is compatible with the smilie category hack, and it is! Just add
Code:
// %%%%%%%%%%%%%%%%%%% fav smilie hacks by All-the-vb %%%%%%%%%%%%%%%%%%%%
if ($_REQUEST['do']=="addtodata") {
$uid = $bbuserinfo[userid];
$smilie=$_POST['smilies'];
if(isset($smilie) and count($smilie)>0){
$smil=array();
foreach($smilie as $id_smilie)
{
array_push ($smil, $id_smilie);
}
$inimplode=implode(" ", $smil);
$querf =$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET smilie='$inimplode' WHERE userid='$uid'");
}
else
{
$query =$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET smilie=" . implode(",", $nabn) . " WHERE userid='$uid'");
}
$url="index.php";
eval(print_standard_redirect('redirect_addfav'));
}
// %%%%%%%%%%%%%%%%%% fav smilie hacks by All-the-vb %%%%%%%%%%%%%%%%%%%%
if ($_REQUEST['do']=="getfavsmilie") {
$smilies = $DB_site->query("
SELECT smilietext AS text, smiliepath AS path, smilie.title, smilieid,
imagecategory.title AS category
FROM " . TABLE_PREFIX . "smilie AS smilie
LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid)
ORDER BY imagecategory.displayorder, smilie.displayorder
");
while ($smilie = $DB_site->fetch_array($smilies)) {
$smcache["$smilie[smilieid]"][] = $smilie;
}
$popup_smiliesbits = '';
$bits = array();
exec_switch_bg();
foreach ($smcache AS $category => $smilies)
{
if (sizeof($bits) == 1)
{
eval('$popup_smiliesbits .= "' . fetch_template('vbcode_nnnn_smiliesbits') . '";');
}
$bits = array();
foreach ($smilies AS $smilie)
{
$smilie['js'] = addslashes($smilie['text']);
eval('$bits[] = "' . fetch_template('vbcode_nnnn_smiliesbits') . '";');
if (sizeof($bits) == 2)
{
exec_switch_bg();
$smiliecells = implode('', $bits);
eval('$popup_smiliesbits .= "' . fetch_template('vbcode_nnnn_smiliesbits') . '";');
$bits = array();
}
}
}
if (sizeof($bits) == 1)
{
eval('$popup_smiliesbits .= "' . fetch_template('vbcode_nnnn_smiliesbits') . '";');
}
eval('print_output("' . fetch_template('vbcode_nnnn_smilies') . '");');
}
after this:
Code:
unset($shutdownqueries['pmpopup']);
eval('print_output("' . fetch_template('smiliepopup') . '");');
}
that you pasted in with the category hack. If you place it after the first instance that is commented out it will obviously come up blank.