Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Favorite Smilies Details »»
Favorite Smilies
Version: 1.0.5, by Darwinist Darwinist is offline
Developer Last Online: May 2009 Show Printable Version Email this Page

Category: End-User Options - Version: 3.6.8 Rating:
Released: 08-04-2006 Last Update: 07-23-2007 Installs: 393
Uses Plugins Template Edits
Code Changes Additional Files  
No support by the author.

This add-on will allow members to create their own favorite smilies list, which can be useful on boards with lots of smilies. If a member creates a list, it will be displayed in place of the normal smilie box.

Maximum number of smilies is based on the 'Smilie Menu Total Smilies' option in 'Message Posting Interface Options'.


Features:
  • Edit List in UserCP
  • Javascript Enforced Limit
  • Ignore Certain Smilie Categories
  • Allow/Disallow usage based on usergroup
  • Admin CP Help
Installation Overview:
Files to Modify: 1
Templates to Modify: 1
Files to Upload: 2
Product:
-Plug-Ins: 6
-Templates: 5
-vB Options: 4
-Phrases: 29

NOTICE: If you're upgrading to version 1.0.4 from a previous version, please read the 'Upgrade.htm' file. Otherwise, read the 'Install_3.6.0.htm' for vBulletin 3.6.0 installations or 'Install_3.6.1.htm' file for vBulletin 3.6.1 or newer installations for the installation procedure.

Version History:
1.0.5 - Fixed vulnerability.
1.0.4 - Added smilie selection count under smilie selection menu. One less template to edit.
1.0.3 - Added option to hide smilie titles on the selection menu (for boards with a very large number of smilies). Icon link to edit the list on the editor toolbar. Admin CP help text. Improved integration with the UserCP. One less file to edit. Fixed some text that wasn't phrased.
1.0.2 - Added option to limit who can use the Favorite Smilies listed based on usergroup permissions. Changed smilie selection page to include category names. Fixed Missing 'More' link in Smilie dropdown menu.
1.0.1 - Fixed problem with missing table prefixes.
1.0.0 - Initial release.

A version for 3.5 can be found Here
A version for 3.7 can be found Here

Show Your Support

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

Comments
  #92  
Old 11-20-2006, 02:19 AM
Invalid ID's Avatar
Invalid ID Invalid ID is offline
 
Join Date: Apr 2006
Location: Karachi. Pakistan
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I noticed in my functions_editor.php, the code is different from what I was asked to find in the instructions. My actual code is as below:

Code:
$smilies = $vbulletin->db->query_read_slave("
				SELECT smilieid, smilietext, smiliepath, smilie.title,
					imagecategory.title AS category
				FROM " . TABLE_PREFIX . "smilie AS smilie
				LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid)
				ORDER BY imagecategory.displayorder, imagecategory.title, smilie.displayorder
			");
}else{
$nabn = explode(" ", $vbulletin->userinfo['smilie']);
$smilies= $vbulletin->db->query_read_slave("SELECT smilieid,smilietext,title,smiliepath FROM " . TABLE_PREFIX . "smilie AS smilie WHERE smilieid IN (" . implode(",", $nabn) . ")");

eval('$vbcode_smilies_editfav = "' . fetch_template('vbcode_smilies_editfav') . '";');
}
			// get total number of smilies
			$totalsmilies = $vbulletin->db->num_rows($smilies);
When I replaced it with

Code:
############### FAVORITE SMILIES #################
			global $permissions;
			if (($vbulletin->userinfo['favsmilies']) AND ($vbulletin->options['favsmiliesactive']) AND ($permissions['favsmiliepermissions'] & $vbulletin->bf_ugp_favsmiliepermissions['canusefavsmilies'])) {
				$show['favsmilies'] = true;
				$favsmilies = str_replace(" ", ", ", $vbulletin->userinfo['favsmilies']);
				$smilies = $vbulletin->db->query_read_slave("
					SELECT smilieid, smilietext, smiliepath, smilie.title,
						imagecategory.title AS category
					FROM " . TABLE_PREFIX . "smilie AS smilie
					LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid)
					WHERE smilieid IN ($favsmilies)
					ORDER BY imagecategory.displayorder, imagecategory.title, smilie.displayorder
				");
				$favsmtotal = $vbulletin->db->num_rows($smilies);
				$smilietotal = $vbulletin->db->query_first("SELECT COUNT(*) as total FROM " . TABLE_PREFIX . "smilie");
				$totalsmilies = $smilietotal['total'];
			}
			else {
				$smilies = $vbulletin->db->query_read_slave("
					SELECT smilieid, smilietext, smiliepath, smilie.title,
						imagecategory.title AS category
					FROM " . TABLE_PREFIX . "smilie AS smilie
					LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid)
					ORDER BY imagecategory.displayorder, imagecategory.title, smilie.displayorder
				");
				$totalsmilies = $vbulletin->db->num_rows($smilies);
			}
############### /FAVORITE SMILIES ################
A parse error message appeared.

May I know what to do?

Thanks
Reply With Quote
  #93  
Old 11-22-2006, 01:53 PM
acegames acegames is offline
 
Join Date: Jan 2006
Location: UK
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome hack , love it , and worked fine untill I upgraded I now have this small bug which hopefully you can help me fix :
Reply With Quote
  #94  
Old 11-23-2006, 03:22 PM
Darwinist Darwinist is offline
 
Join Date: Apr 2002
Location: Richmond, Virginia
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Invalid ID View Post
I noticed in my functions_editor.php, the code is different from what I was asked to find in the instructions. My actual code is as below:

SNIP

When I replaced it with

SNIP

A parse error message appeared.

May I know what to do?

Thanks
Looks like your script was previously modified. Try using a fresh copy of the script.

Quote:
Originally Posted by acegames View Post
Awesome hack , love it , and worked fine untill I upgraded I now have this small bug which hopefully you can help me fix :
Does your smilie box display properly? If so, you may have a coding error in the 'includes/functions_editor.php' file. Confirm you've made all the necessary changes exactly as they are shown in the installation instructions.
Reply With Quote
  #95  
Old 11-24-2006, 07:40 AM
shete shete is offline
 
Join Date: Aug 2006
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by apiasto View Post
hi, love this mod but can't get it to work.it let me choose favorite smilies and save them.but when i go to post reply i dont see any smilies nor the favorite smilies icon, just an empty space. can any one tell me what i am doing wrong thnx
It can't be because i have smilies in quick reply as well

I ahve the same problem as this guy . Everything I did was correct , set the right options in Admin CP . Saved some fav. smilies .

But then I go to the Reply section and its not modified . Same stuff . Nothing new .

What do I need to do ?
Reply With Quote
  #96  
Old 11-24-2006, 07:47 AM
shete shete is offline
 
Join Date: Aug 2006
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind I got it to work ,Wonderful hack .
Reply With Quote
  #97  
Old 11-25-2006, 10:22 AM
acegames acegames is offline
 
Join Date: Jan 2006
Location: UK
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Darwinist View Post

Does your smilie box display properly? If so, you may have a coding error in the 'includes/functions_editor.php' file. Confirm you've made all the necessary changes exactly as they are shown in the installation instructions.
Yes it displays ok but is just empty , I have made all the changes as shown in the installation , I think it may be another hack that has conflicted but not sure

I will check my functions_editor.php
Reply With Quote
  #98  
Old 11-28-2006, 07:26 AM
cykelmyggen's Avatar
cykelmyggen cykelmyggen is offline
 
Join Date: Oct 2006
Location: Europe
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did anyone try this with 3.5.7 - what are the chances it'll work?
Reply With Quote
  #99  
Old 11-28-2006, 10:02 AM
Darwinist Darwinist is offline
 
Join Date: Apr 2002
Location: Richmond, Virginia
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A version for 3.5 can be found Here.
Reply With Quote
  #100  
Old 11-28-2006, 06:54 PM
cykelmyggen's Avatar
cykelmyggen cykelmyggen is offline
 
Join Date: Oct 2006
Location: Europe
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Darwinist View Post
A version for 3.5 can be found Here.
I'm fully aware of this, but I was not sure if the 3.5.7. changes would affect some of the features in this mod. In the meantime I installed it , and it worked out fine!
I was just wondering about how to translate the phrases and submit/clear List-buttons to my own language. Can't seem to find these in the phrase manager?
Reply With Quote
  #101  
Old 12-01-2006, 10:34 AM
WAHMama WAHMama is offline
 
Join Date: Jun 2006
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is an awesome code, I just installed it NP
Reply With Quote
Reply


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:19 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.05078 seconds
  • Memory Usage 2,321KB
  • 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
  • (2)bbcode_code
  • (5)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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