the hack works fine together with firefly's hack. the order of smilies still works for the smilies shown directly in the post form, but is not adhered to in the pop-up window.
Is there ady idea, how to make relative the smilie paths store in the db? I mean, not "images/smilies/red" but just adding variable $redsmile, if the path maches predefined values? So if I have to later the site structure, I can only change the variable values?
Today at 03:40 AM tkeil69575 said this in Post #22 the hack works fine together with firefly's hack. the order of smilies still works for the smilies shown directly in the post form, but is not adhered to in the pop-up window.
greets
tina
tina great hack, but there is one line that makes firefly's hack not work and it is in the smilie.php file (step 16 from your instructions)
original code:
Quote:
$smilies=$DB_site->query("SELECT smilietext,smilieid,title,smiliepath FROM smilie LIMIT ORDER by title LIMIT ".($limitlower-1).",$perpage");
firefly version of the code:
Quote:
$smilies=$DB_site->query("SELECT smilietext,smilieid,title,smiliepath,showid FROM smilie ORDER BY showid LIMIT ".($limitlower-1).",$perpage");
and your version of the code:
Quote:
$smilies=$DB_site->query("SELECT smilietext,smilieid,smilie.title,smiliegroup.title AS catname,smiliepath,smiliecat FROM smilie LEFT JOIN smiliegroup ON smiliecat=smiliegroup.smiliegroupid ORDER by smilie.title LIMIT ".($limitlower-1).",$perpage");
like i said pirate
the order of smilies according to fireflys hack works only in the smilies shown in the reply form and not in the pop up windows of the smiley category hack. smilies there are sorted acording to the smiley title. you could change that if you wanted by editing "ORDER BY smilie.title" to "ORDER BY smilie.showid" if you wanted. when I say it works with fireflys hack, I mean it doesnt conflict with it.
Great to see, what you have done. If there could only be one person (or the vb.com team) that could unite the good features of your and the other (Avatars Category and Permission) hack. Because I would love to categorize not only smilies, but the images I upload as well.
An idea I had about this matter looks like this: we need to have just one "category" and one "metacategory" (last added, time and all other meta info about the other table) where, for example, all smilie groups have one cid incommon, all the avatar categorys have another and another feature would be good - to create subcategorys as we have subforums here. I understand that it's very hard, but you're not the only one arround, we could help. You're just on the right way )
hi sidekick,
i have fireflys hack installed on my board too. there should be no problem and it should not interfeer with his hack. recheck the instructions.
yes i was thinking about an integration with the favourite smilies hack, but am too busy right now for that. maybe someone else will come up with that.