Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
user favorites smilies Details »»
user favorites smilies
Version: 1.00, by all-the-vb all-the-vb is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 07-01-2004 Last Update: Never Installs: 23
 
No support by the author.

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:3
new Phrases: 3

if you use this hack don't forgot click

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 07-14-2005, 08:21 AM
php4dev php4dev is offline
 
Join Date: Jan 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Anette
Worked fine. But not on smilies on quick reply!
all-the-vb


please help us to put it on the quick reply ......


thanks & best regards
Reply With Quote
  #33  
Old 07-14-2005, 11:29 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This thread is a mess, and the author has not even posted here since april, so I am upping a fixed version of the instructions, with the changes mentioned in this thread by amykhar and melker, so people won't have to wade through the posts. If you follow the new install info it will install fine in to 3.0.7
Reply With Quote
  #34  
Old 07-14-2005, 02:55 PM
php4dev php4dev is offline
 
Join Date: Jan 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yoyoyoyo
This thread is a mess, and the author has not even posted here since april, so I am upping a fixed version of the instructions, with the changes mentioned in this thread by amykhar and melker, so people won't have to wade through the posts. If you follow the new install info it will install fine in to 3.0.7

:speechless: :speechless: :speechless: :speechless:


but i am looking to install this hack on the quick reply

can you do it yoyoyoyo ?
Reply With Quote
  #35  
Old 07-14-2005, 08:05 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #36  
Old 07-15-2005, 12:41 AM
php4dev php4dev is offline
 
Join Date: Jan 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not done :disappointed:
Reply With Quote
  #37  
Old 07-15-2005, 01:32 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by php4dev
not done :disappointed:
I do not have time to do this, and since it is something you care about more than I do, this is the general code:
Code:
[<a href="#" onclick="open_smilie_window(smiliewindow_x, smiliewindow_y, $wysiwyg, '$forumid'); return false" title="<phrase 1="$vboptions[smtotal]" 2="$totalsmilies">$vbphrase[showing_x_smilies_of_y_total]</phrase>">$vbphrase[more]</a>]
(note: you may have to place that inside of a <td class="smallfont" colspan="$vboptions[smcolumns]"></td> set)

the template you are looking for is showthread_quickreply

Just look around in that template and try placing that code, or some variation where you need it.
Reply With Quote
  #38  
Old 07-16-2005, 12:29 AM
php4dev php4dev is offline
 
Join Date: Jan 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i want to put a favorites smilies in quick reply

not the other smilies

i wish you understand me

thanks for your caring
Reply With Quote
  #39  
Old 08-03-2005, 09:23 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yoyoyoyo
This thread is a mess, and the author has not even posted here since april, so I am upping a fixed version of the instructions, with the changes mentioned in this thread by amykhar and melker, so people won't have to wade through the posts. If you follow the new install info it will install fine in to 3.0.7
The instructions state:

Code:
in misc.php also FIND:

foreach ($smilies AS $smilie)
		{
That code is in misc.php 3 times. Can somebody give some decent instructions... Also I have the smilie category hack installed, after I install this hack do I just need to follow the instructions given by yoyo?


Can someone actually clean up the code and instructions? You could at least put both file edits for misc.php by each, or add them together as it look as the 2nd one is just under the original insert. It's not that hard... I just need to know where to post the F'in code.

Can somebody please help!?
Reply With Quote
  #40  
Old 08-08-2005, 08:38 PM
Black_Widow Black_Widow is offline
 
Join Date: Aug 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a very useful hack however it still need some fixes.
i have installed on 3.0.7 and have the same problem of Kali
https://vborg.vbsupport.ru/showpost....8&postcount=21

Quote:
I just installed this on a 3.0.6. and it works quite nicely once you add the modification amykhar added to it. I did run into one snag though and I was wondering someone out there could help me sort it out.

As it is currently, when I attempt to remove all my selected favorites, rather than go back to the default smiley set, it causes an error and refuses to remove the last smiley. I want people to be able to go back to the default if they decide they don't want to use favorites.

The only way I'm able to reset it back to default currently is to go into the user table and manually take out the data... which is a bit of a pain obviously.

The error I'm getting is:

Warning: implode(): Bad arguments. in /misc.php on line 505

Database error in vBulletin 3.0.6:

Invalid SQL: UPDATE user SET smilie= WHERE userid='1'
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE userid='1'' at line 1

mysql error number: 1064
Can someone fix this please?
Thanks
Reply With Quote
  #41  
Old 08-18-2005, 09:35 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gutspiller
The instructions state:

Code:
in misc.php also FIND:

foreach ($smilies AS $smilie)
		{
That code is in misc.php 3 times. Can somebody give some decent instructions... Also I have the smilie category hack installed, after I install this hack do I just need to follow the instructions given by yoyo?


Can someone actually clean up the code and instructions? You could at least put both file edits for misc.php by each, or add them together as it look as the 2nd one is just under the original insert. It's not that hard... I just need to know where to post the F'in code.

Can somebody please help!?
after the first instance
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04499 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete