![]() |
Description:
This hack will allow you to set the display order of clickable smilies (if you use them). It's good if you have a lot of smilies, and want the more commonly used to be shown in the box. Demo: http://forum.t-cove.com/order.gif Installation: 1. Run the following queries either in phpMyAdmin or thru Telnet: (one query at a time) Code:
ALTER TABLE smilie ADD showid SMALLINT not null PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
JJR512 That's it! Feedback, requests and anything else is more than welcome. :) Good luck! :D |
nice simple and effective .... I'll try it now :)
|
Alright, it's done, and it's great!
You know in the other thread I was about to say that the one line replacement you had originally (which added the ORDER BY bit) didn't work. I guess there was a lot more to it, though! :D Hope it wasn't too much trouble...but I love it! Thank you! :) |
Yeah I know JJR, I forgot to replace another line. :o
|
Cool Hack and it works directly.
Good work. |
kool hack m8 ur on fire with these hacks @ the mo
|
I was actually doing something similiar at the same time, but wanted random
2. In functions.php (in your admin folder) replace PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Thanks FireFly, it works great!
|
omg, do I ever want this!
but I never thought of it as a hack? THANKS MAN! *snyx runs off to install* |
I tired to copy paste the queries into phpmyadmin and I get errors?
|
[QUOTE]Originally posted by snyx
I tired to copy paste the queries into phpmyadmin and I get errors? |
I obviously tried that genius!
|
How do you expect anyone to help you when you don't even tell what error you get?!? And do you always respond like that when people try to help you? :(
|
whatvere, I got it myself
but now Im getting this when I try to modify my smilies Database error in vBulletin Control Panel: Invalid SQL: SELECT smilietext,smilieid,title,smiliepath,showid FROM smilie ORDER BY showid LIMIT 0,15 mysql error: Unknown column 'showid' in 'field list' mysql error number: 1054 Date: Tuesday 21st of August 2001 07:06:03 PM Script: /forums/admin/smilie.php?action=modify Referer: http://www.xxxx-xxxx.com/forums/admi...php?action=nav Ideas? |
You didn't create the new field, showid.
Hold on a bit, I'll come up with a file to do everything itself. |
sweet, thx
|
Try this file, upload it to your admin folder. Tell me if it worked!
|
I get this man
Database error in vBulletin Control Panel: Invalid SQL: ALTER TABLE smilie DROP showid mysql error: Can't DROP 'showid'. Check that column/key exists mysql error number: 1091 Date: Wednesday 22nd of August 2001 04:34:55 AM Script: /forums/admin/orsmin.php Referer: http://www.xxxx-xxxx.com/forums/admin/orsmin.php? |
Use the second option.
|
Database error in vBulletin Control Panel: Invalid SQL: ALTER TABLE smilie ADD showid TINYINT not null
mysql error: Can't create/write to file './kaos_vbp/#sql-7db_262f.frm' (Errcode: 28) mysql error number: 1 Date: Wednesday 22nd of August 2001 05:30:47 AM Script: /forums/admin/orsmin.php Referer: http://www.xxxx-xxxx.com/forums/admin/orsmin.php? |
I just paid a little visit to your database (with your permission of course), and something is wrong with it, so I did a little search, and it looks like you're out of space in your MySQL partition.
(if you want, search for "mysql error: can't create/write file") I suggest you have a little talk with your host. Oh, and while you're at it, upgrade your phpMyAdmin :p Sorry. :( |
Firefly;
Thanks for the hack, and the incredibly easy instructions (even a newbie like me could follow them!) Having a lot of smilies is now an easily managable thing! :) |
the random smilies are great-but if your in the middle of a post and u refresh to see another random set-you lose the post and need to start over-also could be a problem for those with the auto-refresh installed...
just a heads up!!:) |
Just view all smilies on one Page. It's much, but it's OK and you can Edit the order completely.
I have 85 smilies on one Page, and it works excellent. |
i have over 200 lol
|
u need a hugh Screen. :D
|
Parse error: parse error in ./admin/functions.php on line 135
Fatal error: Call to undefined function: iif() in ./admin/functions.php on line 77 WTF? I did everything right but it screwed my database The dreaded white screen Can anyone help? |
What is line 135?
And did you run the queries successfully? |
yes I did run them sucessfully
I reverted back to my old functions and smilie php files but it didn't change the error Line 135 is this $l if ($highlightlast) { |
i am on aol im
DLRArmyWebsite if you got a sec Thanks in advance |
fixed it
Apparently when I downloaded the file before modifying it was screwed. IT had boxes instead of letters in certain areas. Very weird. Thanks |
Sorry for not answering, I was sleeping. :o
Glad you fixed it. :) |
thanks bud
|
cool hack ! I like it very much ! thanks man !
|
Help~
When I installed the hack, I got this error on the admin panal Parse error: parse error in /home/hongkon/public_html/bbs/admin/functions.php on line 1956 Warning: Cannot add header information - headers already sent by (output started at /home/hongkon/public_html/bbs/admin/functions.php:1956) in /home/hongkon/public_html/bbs/admin/functions.php on line 1467 ========================= And I found that Line 1956: smilies = $DB_site->query("SELECT title, smilietext, smiliepath FROM smilie ORDER BY showid"); Line 1467: setcookie($name,$value,$expire,$cookiepath); What should I do? |
Open your config.php file, and remove ANY whitespaces after the ?> and get back to me. :)
|
Thanks Buds. But there is no whitespaces behind <? in config.php.
Any other suggestion? |
When I login to the admin panal, I got more errors.
Warning: Cannot add header information - headers already sent by (output started at /home/hongkon/public_html/bbs/admin/functions.php:1956) in /home/hongkon/public_html/bbs/admin/functions.php on line 1467 Warning: Cannot add header information - headers already sent by (output started at /home/hongkon/public_html/bbs/admin/functions.php:1956) in /home/hongkon/public_html/bbs/admin/functions.php on line 1467 Warning: Cannot add header information - headers already sent by (output started at /home/hongkon/public_html/bbs/admin/functions.php:1956) in /home/hongkon/public_html/bbs/admin/global.php on line 133 Warning: Cannot add header information - headers already sent by (output started at /home/hongkon/public_html/bbs/admin/functions.php:1956) in /home/hongkon/public_html/bbs/admin/global.php on line 159 ==================================== Global.php Line 133: setcookie("bbadminon",1,0,'/'); Line 159: setcookie("bbadminon",1,0,'/'); :confused: :confused: :confused: |
ying_ho please enter your license information into your profile.
|
Great again, you have alot of nice hacks..
Install was very easy, and it is working perfect! :D |
All times are GMT. The time now is 10:19 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|