The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Favorite Smilies Details »» | |||||||||||||||||||||||||
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:
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
|
Comments |
#92
|
||||
|
||||
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); 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 ################ May I know what to do? Thanks |
#93
|
|||
|
|||
Awesome hack , love it , and worked fine untill I upgraded I now have this small bug which hopefully you can help me fix :
|
#94
|
|||
|
|||
Quote:
Quote:
|
#95
|
|||
|
|||
Quote:
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 ? |
#96
|
|||
|
|||
Nevermind I got it to work ,Wonderful hack .
|
#97
|
|||
|
|||
Quote:
I will check my functions_editor.php |
#98
|
||||
|
||||
Did anyone try this with 3.5.7 - what are the chances it'll work?
|
#100
|
||||
|
||||
Quote:
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? |
#101
|
|||
|
|||
This is an awesome code, I just installed it NP
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|