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


All times are GMT. The time now is 06:22 AM.

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.01151 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete