vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   favorites smilies (https://vborg.vbsupport.ru/showthread.php?t=54257)

all-the-vb 06-12-2003 10:00 PM

favorites smilies
 
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:
PHP Code:

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

--
after that add :
PHP Code:

$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...&threadid=7096

all-the-vb 06-13-2003 12:29 PM

@kie
Quote:

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

ya

PHP Code:

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:
PHP Code:

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

Quote:

Would be great if it could work with random smilies hack.
ya

@kie & @lordofgun


PHP Code:

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:
PHP Code:

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/attachmen...&postid=408308

not apear and i still have this:

https://vborg.vbsupport.ru/attachmen...&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:
PHP Code:

$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

Quote:

06-24-03 at 09:33 PM M.C. said this in Post #19
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/attachmen...&postid=408308

not apear and i still have this:

https://vborg.vbsupport.ru/attachmen...&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:
PHP Code:

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

--
after that add :
PHP Code:

$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

Quote:

06-21-03 at 07:06 PM all-the-vb said this in Post #18
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...

PHP Code:

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 :(


All times are GMT. The time now is 04:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01270 seconds
  • Memory Usage 1,804KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete