View Thread
 Print Thread
[CODE] Yolks Smileys
NetriX
Preview this code in Admin Panel -> Custom Pages to auto-setup yolks smiley package.

www.psdhelpline.com/wp-content/uploads/2013/06/yolks-icon.png

You can download this smiley package here.



// Uncomment below to Delete all other smilies before installing.
// $truncate = dbquery("TRUNCATE TABLE ".DB_PREFIX."smileys");
$lol = dbquery("INSERT INTO " . DB_PREFIX .
    "smileys (smiley_code, smiley_image, smiley_text) VALUES
('!zzz!', '10.png', '!zzz!'),
(':)', '15.png', ':)'),
('!angry!', '11.png', '!angry!'),
(':D', '6.png', ':D'),
('!wtf!', '1.png', '!wtf!'),
('!boo!', '12.png', '!boo!'),
('!dead!', '13.png', '!dead!'),
('!blush!', '16.png', '!blush!'),
('!love!', '17.png', '!love!'),
('!bomb!', '18.png', '!bomb!'),
('!oreally!', '19.png', '!oreally!'),
('!dizzy!', '2.png', '!dizzy!'),
(':3', '20.png', ':3'),
('!ninja!', '21.png', '!ninja!'),
('O_O', '22.png', 'O_O'),
('!omg!', '23.png', '!omg!'),
('!fire!', '24.png', '!fire!'),
(':(', '25.png', ':('),
('!pissed!', '26.png', '!pissed!'),
('!serious!', '27.png', '!serious!'),
('!sick!', '28.png', '!sick!'),
('!slow!', '29.png', '!slow!'),
('!music!', '3.png', '!music!'),
('!snooty!', '30.png', '!snooty!'),
('|o', '31.png', '|o'),
('!cry!', '32.png', '!cry!'),
('!want!', '33.png', '!want!'),
('!wegonnadie!', '34.png', '!wegonnadie!'),
('!what!', '35.png', '!what!'),
('!XP!', '36.png', 'XP'),
('XD', '37.png', 'XD'),
('!goodfeeling!', '38.png', '!goodfeeling!'),
('!yarr!', '39.png', '!yarr!'),
('!devil!', '4.png', '!devil!'),
('!yourkidding!', '40.png', '!yourkidding!'),
('=B', '9.png', '=B'),
('!crazy!', '66.png', '!crazy!'),
('!fpac!', '65.png', '!fpac!'),
(':P', '46.png', ':P'),
('!wristpain!', '64.png', '!wristpain!'),
('B)', '48.png', 'B)'),
(':|', '50.png', ':|'),
('!baby!', '63.png', '!baby!'),
('!nosebleed!', '61.png', '!nosebleed!'),
('!yawn!', '59.png', '!yawn!'),
('!ok!', '57.png', '!ok!'),
('!nope!', '56.png', '!nope!'),
('!well!', '55.png', '!well!'),
('!overview!', '52.png', '!overview!'),
('!rage!', '51.png', '!rage!'),
('!ashes!', '47.png', '!ashes!'),
('!ohnoz!', '45.png', '!ohnoz!'),
('!hurt!', '44.png', '!hurt!'),
('!youdidit!', '43.png', '!youdidit!'),
('|)', '76.png', '|)'),
('!whisper!', '77.png', '!whisper!'),
('X3', '79.png', 'X3'),
('!gangster!', '80.png', '!gangster!'),
('!whoo!', '67.png', '!whoo!'),
('!scared!', '68.png', '!scared!'),
('!hehe!', '69.png', '!hehe!'),
('!gk!', '70.png', '!gk!'),
('!scream!', '72.png', '!scream!'),
('!sorry!', '73.png', '!sorry!');");

if ($lol) {
    echo "All smilies have been added to your database.

Ensure that you actually have the images uploaded now. ;)
Crafted by NetriX @ PHP-Fusion.us";
} else {
    echo "Oooops, something went wrong. Your smilies where not added! Contact support if problem persist.";
}
?>

Edited by NetriX on 01-11-2015 14:32
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=https://php-fusion.co.uk/articles.php?cat_
 
https://netrixhosting.com
Homdax
And the files? AHH!!
...just one among some friends...
 
NetriX
Updated the file:

http://php-fusion...load_id=23

Will update first post to reflect changes.
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=https://php-fusion.co.uk/articles.php?cat_
 
https://netrixhosting.com
karak
Hi netrix,
Problem:
Not Implemented
POST to /administration/custom_pages.php not supported.
 
NetriX

Quote

karak wrote:

Hi netrix,
Problem:
Not Implemented
POST to /administration/custom_pages.php not supported.

I have no idea what you're referring to. You simply copy the code above beginning with "
It should return the following message: All smilies have been added to your database.

Kind Regards.
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=https://php-fusion.co.uk/articles.php?cat_
 
https://netrixhosting.com
karak
Yes, I did that and I got this error message
 
NetriX
I've updated the code, your server configuration probably requires it have a closing tag.

Added ?> to the end. Please, copy, paste, and try again.

Thanks.
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=https://php-fusion.co.uk/articles.php?cat_
 
https://netrixhosting.com
karak
One by adding good, but all at once not.
for example: (thus good)


 // Uncomment below to Delete all other smilies before installing.
 // $truncate = dbquery("TRUNCATE TABLE ".DB_PREFIX."smileys");
 $lol = dbquery("INSERT INTO " . DB_PREFIX .
     "smileys (smiley_code, smiley_image, smiley_text) VALUES
 ('!zzz!', '10.png', '!zzz!');");
 if ($lol) {
     echo "All smilies have been added to your database.

Ensure that you actually have the images uploaded now. ;)
Crafted by NetriX @ PHP-Fusion.us";
 } else {
     echo "Oooops, something went wrong. Your smilies where not added! Contact support if problem persist.";
 }
 ?>
 
NetriX
Usually, smilieys need to be added manually using Admin Panel -> System Admin -> Smileys.

This just quickens the process as we have a lot of smileys to cover.

Glad it worked! Thumb Up
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=https://php-fusion.co.uk/articles.php?cat_
 
https://netrixhosting.com
penehoff
penehoff
13-01-2015 15:11

style='vertical-align:middle;' />
[Edit] [Delete]


In shout box i get the smiley then this code afterward, if you don't quit understand look at the shout box on my site ..
 
http://unsignedandindependentbands.com/
skpacman
Fixed it. You must have ran the script twice. Your DB had duplicates, I'm just going through and deleting the doubles and it's working fine now.

There are 10 kinds of people in this world.
Those who understand binary,
and those who don't...
 
http://www.skpacman.com
penehoff
Yeah i did it once but didnt get the success msg and i done it again
 
http://unsignedandindependentbands.com/
Jump to Forum
Similar Threads
Thread Forum Replies Last Post
Yolks Smileys [7.02.XX] Other / Integrations / Images 1 09-30-2017 08:21
bb code image Errors and Bugs 15 01-24-2015 07:30
Code Snippet Infusion Addon Requests 3 12-07-2014 01:20
Php code allowed? General Chat 10 05-09-2014 10:26
broken bbcodes like smileys on comments few places on site Errors and Bugs 10 05-17-2012 15:39