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

Reply
 
Thread Tools
Custom User Smileys Details »»
Custom User Smileys
Version: 1.02, by Jafo232 Jafo232 is offline
Developer Last Online: Oct 2022 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 05-17-2006 Last Update: 05-21-2006 Installs: 64
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

-----------------
- Brought To You By:
-
- MediaFlavor.com
-
- Custom VB Mods, Extensions, and Plugins

-----------------

As an administrator of a pretty busy forum, I get tired of users asking to add this smiley, or that smiley, so I wrote up this extension that allows users to upload their own smileys. Each user has a custom smiley set that they can choose from.

Users smilies are private, meaning everyone can see their smilies, but that smiley is only displayed in that users smiley set when they post/reply to an article.

The administrator can limit what groups can use custom smileys, and can define how many smilies users can have, their file size, and W X H restrictions.

ChangeLog:

May 18th, 2006 - Patched popup smilie hook for standard editor (advanced was fine)
May 21st, 2006 - Patched popup smilie hook to include phrases instead of static names. Modified readme slightly for smiliebits.

Installation

Installation is simple and there are NO source code edits.

Set it up, enjoy and

CLICK INSTALL!


This modification is FREE of charge, but if you wish to reward me for my work, and encourage future modifications by me, please donate below:

Supporters / CoAuthors

Show Your Support

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

Comments
  #42  
Old 05-19-2006, 08:45 PM
rex_b rex_b is offline
 
Join Date: Jul 2004
Location: LA
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack, thanks
Reply With Quote
  #43  
Old 05-20-2006, 06:30 PM
hotwheels hotwheels is offline
 
Join Date: May 2005
Location: Cheyenne, wy
Posts: 1,380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice job.........works perfectly.

Like suggested earlier, if you have alot of smilies, put $usmiliebits above $smiliebits that way it will be the first list your user's see......
Reply With Quote
  #44  
Old 05-21-2006, 09:09 PM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nachtfalke
Seems to be something wrong. I have translated the phrases into german, but still the english phrase "Custom milies" show up in the smilie popup.
Fixed this in the latest version (1.02). You should download the patch file for 1.02 and follow the directions in the file.
Reply With Quote
  #45  
Old 05-22-2006, 02:38 PM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Minor Update:

Adjusted template edit in readme to put the $usmiliebits above OR below $smiliebits.
Reply With Quote
  #46  
Old 05-25-2006, 10:11 PM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another edit: Removed this out of BETA. Has been extensively tested on three forums that I administer.

Happy smiling!
Reply With Quote
  #47  
Old 05-26-2006, 05:53 PM
Silver_Seagull Silver_Seagull is offline
 
Join Date: May 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a question about the file permissions and security.

Would CHMOD 766 [Owner: r/w/e, Group: r/w, Public: r/w] be good enough to use? I don't want an exploit-area open on the server [execute a malicious script, for example]
Reply With Quote
  #48  
Old 05-26-2006, 06:40 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Useful mod, will probably install, but few suggestions:
1. Would you please format your code to make it more readable?
2. First bit should have a value of 1, not 2.
Reply With Quote
  #49  
Old 05-27-2006, 08:09 AM
Cybertims Cybertims is offline
 
Join Date: Nov 2005
Location: Bedfordshire
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why does it show your uploaded smilie in two columns in the smilie popup, and only the left one is clickable?

Each smilie I upload is shown twice in the popup window...anyone else getting this?

Cheers.
Reply With Quote
  #50  
Old 05-27-2006, 07:19 PM
sinaluna sinaluna is offline
 
Join Date: Feb 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get this also, though both of mine are clickable. The official screen shots show it as well.
Reply With Quote
  #51  
Old 05-28-2006, 11:36 PM
sinaluna sinaluna is offline
 
Join Date: Feb 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I think I have it figured. In the User Smilies Popup Hook replace the code with this:


Quote:
$pics = unserialize($vbulletin->userinfo['usmilies']);
if (!empty($pics)) {

$usmiliebits = "<tr valign=\"top\"><td class=\"tcat\" colspan=4>$vbphrase[usmilies_custom_smilies]</td></tr>";

$num = 0;
foreach ($pics as $key => $value) {

$num++;

if (($num % 2) == 1) {
$usmiliebits .= "<tr valign=\"top\">";
}

$usmiliebits .= "<td class=\"alt1\"><img src=\"" . $vbulletin->options[bburl] . "/user_pics/$value\" id=\"" . $vbulletin->options[bburl] . "/user_pics/$value\" alt=\"\" title=\"$key\" /></td><td class=\"alt1\">$key</td>";

if (($num % 2) == 0) {
$usmiliebits .= "</tr>";
}

}
if (($num % 2) == 1) {
$usmiliebits .= "<td class=\"alt1\">&nbsp;</td><td class=\"alt1\">&nbsp;</td></tr>";
}

}
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 11:26 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.06323 seconds
  • Memory Usage 2,307KB
  • Queries Executed 26 (?)
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_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
  • (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