Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

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
  #322  
Old 05-22-2008, 01:43 AM
leannet leannet is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where do I find this?

Open file includes/functions_editor.php
Reply With Quote
  #323  
Old 05-22-2008, 01:52 AM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by leannet View Post
Where do I find this?

Open file includes/functions_editor.php
When I did edit that the smilies stopped working all together.
Reply With Quote
  #324  
Old 05-22-2008, 04:23 AM
leannet leannet is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found the includes/function_editor but couldnt get it to load to my site, but it seems to be working fine without it so I think I will leave it how it is, thanks for your reply.
Reply With Quote
  #325  
Old 05-22-2008, 06:58 AM
FENIX FENIX is offline
 
Join Date: Dec 2004
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

On 3.7.0 this code is no longer included in functions_editor.php

Code:
else
						{
							$vBeditJs['smilie_options_array']["$smilie[category]"][] = "\t\t'more' : '" . addslashes_js($vbphrase['show_all_smilies']) . "'\n";
							break;
						}
					}
I added the required phrase a little further down however this caused my topics to open as blank pages. Could someone post the correct placement for it, incase its just me

Thanks
Reply With Quote
  #326  
Old 05-22-2008, 08:48 AM
leannet leannet is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had previously added smilies in quick reply and now its not working, does anyone know how I can fix this?
Reply With Quote
  #327  
Old 05-22-2008, 11:36 PM
Pamela Pamela is offline
 
Join Date: Apr 2004
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I make the recommended edits in includes/functions_editor.php on 3.7.0, the smilies box goes completely missing!

Can anyone get this to work in 3.7.0?

Darwinist, can you please update this for us? It's an awesome mod so a ton of us would appreciate it. Thanks!
Reply With Quote
  #328  
Old 05-27-2008, 05:45 PM
gpc10347 gpc10347 is offline
 
Join Date: May 2008
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whew.. just updated to 3.7.1 - had to remod functions_editor but: The smilies are working well! Installed... Officially Installed!

Nice mod!
Reply With Quote
  #329  
Old 05-29-2008, 07:41 PM
Pamela Pamela is offline
 
Join Date: Apr 2004
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gpc10347 View Post
Whew.. just updated to 3.7.1 - had to remod functions_editor but: The smilies are working well! Installed... Officially Installed!

Nice mod!
Can you (or anyone) please share with us how you did that?

Thank you!
Reply With Quote
  #330  
Old 05-29-2008, 11:50 PM
gpc10347 gpc10347 is offline
 
Join Date: May 2008
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pamela View Post
Can you (or anyone) please share with us how you did that?

Thank you!
I am a true newbie at this so... forgive me..

includes/functions_editor.php

Immediately following this:
PHP Code:
if ($toolbartype AND ($vbulletin->options['smtotal'] > OR $vbulletin->options['wysiwyg_smtotal'] > 0))
        { 
I have this:
PHP Code:
        // query smilies
    ############### 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 ################ 

I replaced the original coding as mentioned immediately following this:

PHP Code:
while ($smilie $vbulletin->db->fetch_array($smilies))
                    { 
Here's the code above and below with the code pasted in where it works:

PHP Code:
while ($smilie $vbulletin->db->fetch_array($smilies))
                    {
############### FAVORITE SMILIES #################
                        
if ($show['favsmilies']) {$smilie['category']=$vbphrase['favorite_smilies'];}
############### /FAVORITE SMILIES #################                    
                        
if (empty($prevcategory)) 
And finally, my line 614 is this:
PHP Code:
$prevcategory $smilie['category'];
                    } 
Following that, I have this:

PHP Code:
############### FAVORITE SMILIES #################
                    
if ($show['favsmilies']) {
$vBeditJs['smilie_options_array']["$smilie[category]"][] = "\t\t'more' : '" addslashes_js($vbphrase['show_all_smilies']) . "'\n";
                    }
############### /FAVORITE SMILIES ################ 
And it works very nicely...


I've attached my version in case it might help - Good Luck!!
Reply With Quote
  #331  
Old 05-30-2008, 12:39 AM
thepub thepub is offline
 
Join Date: Aug 2006
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you!
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 05:00 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.05862 seconds
  • Memory Usage 2,343KB
  • Queries Executed 27 (?)
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
  • (1)bbcode_code
  • (6)bbcode_php
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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