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

Reply
 
Thread Tools
MySmilies VB (v3.7.0) Details »»
MySmilies VB (v3.7.0)
Version: 3.7.005, by Mosh Mosh is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Major Additions - Version: 3.7.x Rating:
Released: 05-13-2008 Last Update: 09-30-2008 Installs: 207
DB Changes Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

Hack Support

This hack is now discontinued - this means that while it will remain available for download and use, there will be no further updates, nor will support be provided as the thread is no longer monitored.

Please click Mark as Installed if you are using this hack.

NOTE: I have marked this hack as Re-usable Code - This means that code from this hack may be used in other hacks, which can ONLY be released on official vB sites that use Jelsoft's verification system to verify your vBulletin license status, and as long as Kentaurus and I are credited in your hack.


vBulletin Version Compatibility

This hack can only be used with vBulletin v3.7.x.


NOTE 1:
This is a port of Kentaurus's MySmilies VB for v3.6.x (version 1.03) to work with vBulletin v3.7.0.

Kentaurus has indicated that he would be helping me provide support - see this post in his thread for confirmation. He has been added as a CoAuthor for this hack. Permission for me to port his hack is granted at the bottom of the 1st post in his thread.

NOTE 2:
Because I did not write the original hack (this version of the hack was originally only ever meant to be an interim version before Kentaurus released his version), hacks that I have written myself will always take priority over this one, and as a consequence, this hack only tended to get worked on whenever I felt the urge to look at it. I do not feel the urge anymore so have discontinued the hack.

People are free to install or un-install this whenever they want.

If anyone wants to continue the development of this hack, then they are more than welcome to take over, as I have marked this as re-usable code, I don't mind either way.


So Whats New?
  • Now has CSRF (cross-site request forgery) Protection (introduced in vBulletin v3.6.10 and v3.7.0 RC 4)
  • 9 new plugins (cached all uncached templates, WOL sorted)
  • Now fully phrased
  • Auto-template injection (no template edits should now be needed)
  • Smilie Links now only appear if the member has permission to use MySmiles
  • Prettied up a couple of the templates
  • Template edits, if needed, now use only a single variable in each case
  • Signature custom smilie support added
  • Fixed attachments showing when posted inline within the same post (this only affects a very small amount of installations to start with, which is why it took so long to replicate, and I can not replicate this with every installation)


What Does This Hack Do?

This hack puts the control of the smilies on the users. It lets any user (that you give permission to) upload or modify the smilies that he can use.

These are not the smilies that vb uses, these are user-customized smilies. The smilies that you already have in place are preserved and are still used. But users may upload their own smilies for their use, and they are kept separate from the standard forum smilies.

For users:
  • Users can keep a library of their own smilies (they can upload them from their computer or web)
  • Users enter their replacement text, for example, :iamhappy: would be changed to their own user happy smilie
  • The custom smilies are parsed in any post, signature, or pm (does not include the new social network fuctionality that was added with v3.7.0 yet, it is on my to-do list)
  • If they have enabled the WYSIWYG editor, smilies are shown there

For administrators:
  • Usergroup control of who may upload custom smilies
  • Usergroup control of the size (width, height, size in bytes) of the smilie
  • Smilie quota, both for max number of smilies and max number of bytes or hard disk space
  • The administrator can choose where to save the smilies (the directory, default: mysmiliesvb)
  • Auto-template Injection - if the appropriate template hooks are available, you will not need to make any template edits at all, if edits needed you only need to paste a single variable where you need it

Installation Instructions

See the included Installation Instructions.txt file in the ms_mysmiliesvb.zip zip file.

ADDITIONAL NOTE:
A limitation exists with the fix that rectifies the problem of attachments showing when also posting them inline within the same post; when applied, all attachments will need to be displayed inline, if they have not been, then the ones that have not been posted inline will be hidden along with the ones that have been posted inline. Read Post #106 for more information on this.


Uninstall Instructions
  1. Delete mysmiliesvb.php from your forum's root directory.
  2. Delete the mysmiliesvb directory from your forum's root directory.
  3. Delete class_dm_mysmiliesvb.php from your forum's /includes directory.
  4. Delete bitfield_mysmiliesvb.xml from your forum's /includes/xml directory.
  5. Delete delete.gif from your forum's /images/misc directory (if more than one style remember to delete it from all misc directories).
  6. Optional Step: This step is only if the auto template injection does not work, and you did the optional template edits.
    In the USERCP_SHELL template, find and delete:
    PHP Code:
    $mysmilie_usercp 
    In the navbar template, find and delete:
    PHP Code:
    $mysmilie_navbar 
  7. Uninstall the product in vB using the AdminCP Product Manager.


To Do List

Features are being done in the order that they appear on the list, and when I feel the urge to work on this hack. And as I have now completely lost the urge, it means that the rest of the requests will never be added.
  1. [s]Signature custom smilie support[/s] - DONE
  2. [s]Fully phrase the hack[/s] - DONE
  3. [s]Usergroup Permissions - disabled by default[/s] - DONE
  4. [s]Profile Comments custom smilie support[/s] - Will never be done
  5. [s]Album Comments custom smilie support[/s] - Will never be done
  6. [s]Social Group Comments custom smilie support[/s] - Will never be done
  7. [s]Admin Control Panel utility to view/delete one, some or all custom smilies[/s] - Will never be done
  8. [s]vB Blog custom smilie support[/s] - Will never be done


Version History

v3.7.005 - Wednesday 1st October 2008
-- Final Release
-- Fixed: Workaround for people having issues with uploading smilies from a url
-- Added: AdminCP Option to allow for which upload option shows for the end user
-- Added: Phrase for navbits - this hack is now fully phrased
-- Changed: mysmiliesvb.php file
-- Changed: MYSMILIES_MAIN template
-- Changed: Usergroup permissions - Can use custom smilies? now set to No by default

v3.7.004 - Thursday 7th August 2008
-- Fixed: Attachments were showing when the attachment was shown inline in the same post
-- Added: AdminCP Option to turn this fix On or Off

v3.7.003 - Wednesday 16th July 2008
-- Fixed: Cached templates
-- Changed: mysmilies_delete template
-- Added: Signature custom smilie support
---- thread/post creation
---- thread/post preview
---- postbit (including postbit_legacy)
---- edit signature
---- signature preview
---- user profile

v3.7.002 - Thursday 29th May 2008
-- Fixed: SQL Error problems some people upgrading from the v3.6.x version of this hack were having

v3.7.001 - Wednesday 14th May 2008
-- Initial v3.7.0 release


Thanks

My thanks go out to Kentaurus (who originally created this fantastic hack I have updated), and also to Paul M who gave me permission to use some of his install code.


Show Your Appreciation

Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.

Supporters / CoAuthors

Show Your Support

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

Comments
  #42  
Old 05-18-2008, 10:34 PM
mauisun mauisun is offline
 
Join Date: Jul 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the great work bro. I am running th enewest v3.7.0 and followed the instructions to a t making sure admins can have custom smilies etc so I can test it as an admin but the smilies link does not show in my user cp even though I am positive I have it in the correct table right below attachments etc. reloaded everything, triple checked all my work but just does not show up. It is set to yes for all my users besides admin lso in the admin controls, that all works fine but it just does not show up as a user option. done hundreds of hacks over the years and this is the first one to stup me. any thoughts? By the way, I didn't have the older version for v3.6 on my board before this, just ran this one right out of the can. thanks for the time, great hack and would love to make it an option for my members
Reply With Quote
  #43  
Old 05-18-2008, 11:01 PM
mauisun mauisun is offline
 
Join Date: Jul 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Iok I fixed it, had to turn off auto template injection and now it is working, will check everything but looks good bro
Reply With Quote
  #44  
Old 05-19-2008, 07:14 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, but a gallery to view the custom smilies by user would be nice.
Reply With Quote
  #45  
Old 05-19-2008, 08:40 PM
bing11 bing11 is offline
 
Join Date: Feb 2003
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack ,but how can work for vblog?
Reply With Quote
  #46  
Old 05-19-2008, 09:13 PM
Marcel Adam Marcel Adam is offline
 
Join Date: Feb 2008
Location: Syria
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice

thank u man
Reply With Quote
  #47  
Old 05-20-2008, 02:38 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Betablocker View Post
Sorry to be the only one with problems

I did it again the right order.....nothing to uninstall i must have done it already.

So i got this error for each step but with different table names..

An error occurred while attempting to execute your query. The following information was returned.
error number: 1091
error desc: Can't DROP 'mysmiliesvb_totalsize'; check that column/key exists


When i try to install now i get this error


Database error in vBulletin 3.7.0:

Invalid SQL:
ALTER TABLE DTP_usergroup ADD mysmiliesvb_permissions INT DEFAULT 1 NOT NULL;

MySQL Error : Duplicate column name 'mysmiliesvb_permissions'
Error Number : 1060
Request Date : Sunday, May 18th 2008 @ 04:31:18 PM
Error Date : Sunday, May 18th 2008 @ 04:31:18 PM
Script : http://www.webaddy/vb/admincp/plugin...=productimport
Referrer :
IP Address : ip
Username : Betablocker
Classname : vB_Database
MySQL Version : 5.0.27

But if i go into phpmyadmin i can see DTP_mysmiles blah blah
and if i click on it i get 9 tables ......

i dont play in there very often but just went to look again.........last time i ticked them all and dropped them......me noob


So sorry to be a pain.
What I posted should have worked, so I can not suggest anything more without checking out your installation.

[s]If you want me to take a look then feel free to PM me your site address, a temp admin user (with admin permissions - Can Administer Settings for editing options, Can Administer Styles for editing templates, Can Administer Language Settings for editing phrases, Can Administer Plugins for editing products and plugins, and finally Can Run Maintenance Tools for running queries), and ftp access details, without these I can not help you. I will look when I have time, and even if I have a look, I can not guarantee that I will be able to fix it, if your site is not in English (I only read/write in English), so it is up to you what you want to do. You can revoke these after I have helped you out.[/s]
Reply With Quote
  #48  
Old 05-20-2008, 02:40 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cheat-master30 View Post
Installed, but a gallery to view the custom smilies by user would be nice.
As the custom smilies are individual to a user, I do not see any point in having galleries, as no one else will be able to use them.
Reply With Quote
  #49  
Old 05-20-2008, 02:44 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bing11 View Post
nice hack ,but how can work for vblog?
That is on my to-do list, once I have sorted the functionality for a base vBulletin installation [signatures, profile (visitor messages and albums) so far], and that will be a while yet, I still have my exams coming up, so will not be releasing the next main version, until at least the beginning of July (apart from maybe bug fixes).
Reply With Quote
  #50  
Old 05-20-2008, 02:50 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by John Stone View Post
Hi Mosh,

Thanks for looking into it so quickly.

Yes, I created a fresh unmodified style and it still happens. What I do is upload an attachment, then insert the attachment "inline" by clicking the attachment icon and then the name of the attached image to insert it "inline" in my post. At that point it looks fine, but after a refresh it shows "inline" and then again at the end of the post as an attachment. It's happening to all users in all browsers. Please see attached screenshot.
I still can not recreate this problem, so I am going to have to look at your installation.

[s]If you want me to take a look then feel free to PM me your site address, a temp admin user (with admin permissions - Can Administer Settings for editing options, Can Administer Styles for editing templates, Can Administer Language Settings for editing phrases, Can Administer Plugins for editing products and plugins, and finally Can Run Maintenance Tools for running queries), and ftp access details, without these I can not help you. I will look when I have time, and even if I have a look, I can not guarantee that I will be able to fix it, if your site is not in English (I only read/write in English), so it is up to you what you want to do. You can revoke these after I have helped you out.[/s]
Reply With Quote
  #51  
Old 05-20-2008, 02:53 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zweeper View Post
i have a problem, i can not use the "add smiliey by url" function.
there just comes the error "wrong url", by every url i tried.
what did i wrong?
I have absolutely no idea, I can not recreate that issue.

Nobody has commented on this in v3.5.x, v3.6.x or v3.7.x versions of this hack about this issue.

Give me some example of urls that you are using please, I will then use them to see if I can recreate the problem.

BTW, please click Mark as Installed if you are using this and want support.
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 05:36 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.06867 seconds
  • Memory Usage 2,337KB
  • 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_php
  • (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