PDA

View Full Version : favorites smilies


all-the-vb
06-12-2003, 10:00 PM
Hello Everyone.

hack : user favorites smilies

by All-the-vb

Description:
that's hack allow each member to choose his favorite smiles .. let's discover the other features guyz


Queries to Run: 1
Files to edit: 2
Templates to edit:2
Templates to add:4


i forgot this edit

open File: vb/admin/functions.php

find:

function getclickysmilies () {
global $DB_site,$session,$smcolumns,

--
after that add :

$bbuserinfo,



Requested by:
Cyricx

all-the-vb
06-13-2003, 01:43 AM
example, after using the hack and before using the favorite smiles in newthread/newreply

all-the-vb
06-13-2003, 01:44 AM
example, from the select smiles page

all-the-vb
06-13-2003, 01:46 AM
example after using in newthread/newreply

Legendary Kid
06-13-2003, 01:51 AM
cool idea, i might install it later when my host is up agian.

Leah
06-13-2003, 12:00 PM
Great hack! :)
How can I use this if i also have the random smilies installed?

Sho
06-13-2003, 12:07 PM
Cool! I did something similar two weeks ago: http://www.forenplanet.de/showthread.php?s=&threadid=7096

all-the-vb
06-13-2003, 12:29 PM
@kie

Great hack!
How can I use this if i also have the random smilies installed?

@kie

ya


if($bbuserinfo[smilie] ==''){
$smilies=$DB_site->query("SELECT smilieid,smilietext,title,smiliepath FROM smilie");
}else{
$nabn = explode(" ", $bbuserinfo['smilie']);
$smilies=$DB_site->query("SELECT smilieid,smilietext,title,smiliepath FROM smilie WHERE smilieid IN (" . implode(",", $nabn) . ")");
eval ("\$vbcode_smilies_editfav = \"".gettemplate("vbcode_smilies_editfav")."\";");
}


Replace it with:

if($bbuserinfo[smilie] ==''){
$smilies=$DB_site->query("SELECT smilieid,smilietext,title,smiliepath FROM smilie ORDER BY RAND()");
}else{
$nabn = explode(" ", $bbuserinfo['smilie']);
$smilies=$DB_site->query("SELECT smilieid,smilietext,title,smiliepath FROM smilie WHERE smilieid IN (" . implode(",", $nabn) . ")ORDER BY RAND()");
eval ("\$vbcode_smilies_editfav = \"".gettemplate("vbcode_smilies_editfav")."\";");
}


##########
@Sho
nice :) hehe

vbulletin-arab
06-13-2003, 01:08 PM
good hack and good idea ..

thanx all-the-vb

kevinnguyen
06-13-2003, 08:32 PM
dunno why it doesnt work

gmarik
06-14-2003, 05:42 AM
great, great , great

all-the-vb
06-14-2003, 06:08 PM
@kevinnguyen
that's work 100%

---
@gmarik
:) welcome , welcome , welcome :)

lordofgun
06-15-2003, 02:58 AM
Would be great if it could work with random smilies hack.

all-the-vb
06-15-2003, 03:08 AM
Would be great if it could work with random smilies hack.
ya

@kie & @lordofgun



if($bbuserinfo[smilie] ==''){
$smilies=$DB_site->query("SELECT smilieid,smilietext,title,smiliepath FROM smilie");
}else{
$nabn = explode(" ", $bbuserinfo['smilie']);
$smilies=$DB_site->query("SELECT smilieid,smilietext,title,smiliepath FROM smilie WHERE smilieid IN (" . implode(",", $nabn) . ")");
eval ("\$vbcode_smilies_editfav = \"".gettemplate("vbcode_smilies_editfav")."\";");
}


Replace it with:

if($bbuserinfo[smilie] ==''){
$smilies=$DB_site->query("SELECT smilieid,smilietext,title,smiliepath FROM smilie ORDER BY RAND()");
}else{
$nabn = explode(" ", $bbuserinfo['smilie']);
$smilies=$DB_site->query("SELECT smilieid,smilietext,title,smiliepath FROM smilie WHERE smilieid IN (" . implode(",", $nabn) . ")ORDER BY RAND()");
eval ("\$vbcode_smilies_editfav = \"".gettemplate("vbcode_smilies_editfav")."\";");
}

Cyricx
06-17-2003, 11:54 AM
O rock!!

Thank you so very much, I can't wait to try this out on my board :)

:) :)

all-the-vb
06-18-2003, 03:28 PM
@Cyricx
welcome :)
don't forgot click install if you use this hack. ;)

Konrad0
06-21-2003, 05:38 AM
i tried to install it.. i all done like it stands in de readme-file but when i click "favourite smileys" (misc.php?action=getfavsmilie) than nothing happend.. its just a white blank page :(


what did i wrong?

ps. sorry for my bad english :)

all-the-vb
06-21-2003, 05:06 PM
edit misc.php in the vb folder
not misc.php in admin

M.C.
06-24-2003, 07:33 PM
same with me... i did all same, but it`s not work..

i can choose favorite smilies, but then nothing happends:

https://vborg.vbsupport.ru/attachment.php?s=&postid=408308

not apear and i still have this:

https://vborg.vbsupport.ru/attachment.php?s=&postid=408305

i did

ALTER TABLE `user` ADD `smilie` TEXT NOT NULL;

and all other instructions....

one question - you saying: "open File: misc.php" - which one? forum/misc.php or forum/admin/misc.php ?

all-the-vb
06-24-2003, 09:03 PM
forum/misc.php

JoergZ
06-26-2003, 09:58 PM
Nice hack.

I make it work for my 2.6.0 with this little modification: When editing the functions.php then add to the global-section 2 lines above:
$bbuserinfo

J?rg


P.S. Improvment suggestion: Add to the template vbcode_smilies_editfav the "more" link out of the template vbcode_smilies_getmore . Then you have still the possibility to choice other smilies then your favorites. :)

Kwesi
07-04-2003, 05:29 AM
06-24-03 at 09:33 PM M.C. said this in Post #19 (https://vborg.vbsupport.ru/showthread.php?postid=412335#post412335)
same with me... i did all same, but it`s not work..

i can choose favorite smilies, but then nothing happends:

https://vborg.vbsupport.ru/attachment.php?s=&postid=408308

not apear and i still have this:

https://vborg.vbsupport.ru/attachment.php?s=&postid=408305

i did

ALTER TABLE `user` ADD `smilie` TEXT NOT NULL;

and all other instructions....

one question - you saying: "open File: misc.php" - which one? forum/misc.php or forum/admin/misc.php ?

Im having a similar problem. I edited the misc.php in the root directory and it still won't work. when i submit my favorite smilies it returns me to my favorites page but nothing changes. i still have the normal list of icons. can you help?

all-the-vb
07-04-2003, 12:44 PM
@Kwesi


i forgot this edit

open File: vb/admin/functions.php

find:

function getclickysmilies () {
global $DB_site,$session,$smcolumns,

--
after that add :

$bbuserinfo,

Ryne
07-18-2003, 12:58 AM
I have a question what is this suppose to add? Does the favorite smileys show up in the clickable area or where?

Ryne
07-18-2003, 01:51 AM
06-21-03 at 07:06 PM all-the-vb said this in Post #18 (https://vborg.vbsupport.ru/showthread.php?postid=411381#post411381)
edit misc.php in the vb folder
not misc.php in admin


That's exactly what's happening to me. And i did put that extra in.

Ryne
07-18-2003, 02:14 AM
Okay, it's me again. This is my exact situation...


I go to a posting page and I click [favorites smilies] and add the smileys that I want as favorites and then it takes me to the main page, but the smileys never change. That last update you gave me I put in this is what mine looks like...

function getclickysmilies () {
global $DB_site,$session,$smcolumns,$bbuserinfo,$smtotal;

matthepepe
07-18-2003, 07:25 PM
it would be really cool if a user could go into there user cp and select like there 5 favorite smilies, and those 5 would show up in the quick reply box all the time. would kill that huge smilies box and keep a good clean look with easy access to their most commonly used smilies

highlander_RD
02-25-2004, 10:23 AM
Cool hack, all-the-vb, thanxs. *installed*
Everything works fine.
By the way, I've this problem: when I click on "edit my favorite smilies", whereas I had already selected my smilies, I get the page with all the boxes are blank again.
Is this my problem?
In case not, it is possible to open the edit page with my previous selected smilies?
Thanks for reply!
;-)

random1
05-25-2007, 09:29 AM
hey i acted hastily and installed this on a 3.6.7 board. it appears to be workin well with the exception that i get this error: Warning: implode() [function.implode]: Bad arguments. in \includes\functions_editor.php on line 566
when i hit reply to any thread

did i goof something up, thanks in advance\

never mind, it allows you to set your smilies but not click on them or "more" to get to any others. had to uninstall :(