vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Change the display order of smilies (https://vborg.vbsupport.ru/showthread.php?t=25888)

Erwin 03-01-2002 11:21 AM

Good one. Easy install, worked first time round! Two thumbs up! :D

Vlad 03-26-2002 11:24 PM

Sorry to bring this back to the top, but I am in the middle of doing this. The queries were all successful. In phpMyadmin however, I don't have a folder "functions.php" I have the other ones but not that one.......

wooolF[RM] 03-27-2002 12:40 AM

functions.php is a filename that must be in your forum/admin folder

Vlad 03-27-2002 01:07 AM

yeah, hehe, I figured that out, lol. I was brainfarting for a bit there, but thank you anyway :D

Austin Dea 03-27-2002 03:25 AM

Quote:

Originally posted by FireFly
Description:
Below
PHP Code:

echo makelinkcode("remove","smilie.php?s=$session[sessionhash]&action=remove&smilieid=$smilie[smilieid]&perpage=$perpage&statrpage=$startpage"); 

add
PHP Code:

echo "<br>Order: <input type=text name=\"order[$smilie[smilieid]]\" size=5 value=\"$smilie[showid]\">"


I guess I'm the only one to notice this...(I don't know how the other peeps installed...) but you have a type there..should be $perpage&startpage=$startpage") right?


I couldn't find that line so i looked at it a little more closely...what i don't get is how everyone else installed it O_O...

amsch 03-27-2002 03:44 PM

I go this erro when I did my query?
Error
SQL-query:

ALTER TABLE smilie ADD showid SMALLINT not null
ALTER TABLE smilie ADD INDEX (showid)
UPDATE smilie SET showid=smilieid
MySQL said: You have an error in your SQL syntax near 'ALTER TABLE smilie ADD INDEX (showid) UPDATE smilie SET showid=smilieid' at line 2

Vlad 03-27-2002 04:56 PM

My queries worked and all that, but I got that header error that a couple other people posted earlier in the thread. I couldn't figure it out, I even went to check the white spaces behind ?> like Firefly said as that could help in the config.php, but that did nothing either. I ultimately reverted back to my backup copies of my files, because I couldn't get the hack working. Any help on fixing those header errors would be appreciated. Thanks!

Austin Dea 03-27-2002 05:28 PM

Quote:

Originally posted by amsch
I go this erro when I did my query?
Error
SQL-query:

ALTER TABLE smilie ADD showid SMALLINT not null
ALTER TABLE smilie ADD INDEX (showid)
UPDATE smilie SET showid=smilieid
MySQL said: You have an error in your SQL syntax near 'ALTER TABLE smilie ADD INDEX (showid) UPDATE smilie SET showid=smilieid' at line 2


They are each different queries.

Run ALTER TABLE smilie ADD showid SMALLINT not null

Then run ALTER TABLE smilie ADD INDEX (showid)

Then UPDATE smilie SET showid=smilieid

All separately.

Wayne2k1.com 03-28-2002 06:21 AM

and they all must end with

;

:cheeky:

Austin Dea 03-28-2002 04:10 PM

no...You can run them through phpMyAdmin and there doesn't need to be ';' at the end...I don't know about other ways cuz I've only ran queries with phpMyAdmin.

JulianD 04-20-2002 04:06 AM

Thanks! Finally I found something useful for this hack :D Already installed!

Rheinblitz 04-22-2002 06:49 PM

hi there,

nice hack, but i got one error during clicking "smilies-modify" in the admin cp!

Parse error: parse error in */admin/smilie.php on line 266

the hack works great, but i cant change the settings..

plz help

Neo 04-30-2002 12:09 AM

This work of 2.2.5

FWC 04-30-2002 12:36 AM

Quote:

Originally posted by neo
This work of 2.2.5
Yes, it does.

Fatty_Bolger 05-14-2002 10:59 PM

Thanks for the great hack!!

I have to agree that it woud be great if the order was carried over into the "Get More Smilie" pop-up, or is there another way to affect the popup directly?

Kinda junior at this stuff.....:)

Help please!! :confused:

Admin 05-15-2002 09:35 AM

Edit misc.php and replace this:
Code:

  $smilies = $DB_site->query("SELECT smilietext AS text, smiliepath AS path, title FROM smilie");
With this:
Code:

  $smilies = $DB_site->query("SELECT smilietext AS text, smiliepath AS path, title FROM smilie ORDER BY showid");

Fatty_Bolger 05-15-2002 11:40 AM

Thanks Firefly, worked a treat. Mucho Happiness :-)

mariochiosso 05-16-2002 12:41 AM

hi,
does it work with 2.2.5 release?

Fatty_Bolger 05-16-2002 01:01 AM

Mario, seems to fine on our board and it is 2.2.5. Very easy to install. :-)

Keyser S?ze 05-17-2002 01:49 AM

works great for me in 2.2.5

anyways, heresa important addition, after i have, lets say about 40 smilies or so, and i have them arranged smallest to biggest, to make it look better, well lets say i want to add another small one, i cant just give it a number and have the ones above it bumped up, it messes it up and doesnt change the others

like, if i make it num 14, it should make the one that was 14 now 15, and al the others above it should go up 1 number (after u hit the update order button)

think that could be done?

Kat 05-31-2002 12:34 PM

Anybody had luck with this for version 2.2.6?

I'm getting this error:

You have an error in your SQL syntax near 'nullALTER TABLE smilie ADD INDEX (showid)' at line 1

Thanks for any help!

Admin 05-31-2002 02:15 PM

You need to run each query separately, or separate them with ;.

Kat 05-31-2002 03:08 PM

Thanks Firefly! I did run them separately, but I think I must have had a timeout and just not noticed it... because it happened again... but third time was the charm and its working now!

I've installed your wonderful hack so many times, I think I got lazy and didnt pay close enough attention.

Jeremy W. 06-21-2002 10:18 PM

I attempted to install this, and it worked fine until I tried to update the order in the admin cp... I hit Update Order and it doesn't save the results (or display them perhaps).

Jeremy W. 06-21-2002 10:22 PM

Okay, it does update the order, it simply does not show the order on the admin smilie page.

Schorsch 07-16-2002 05:20 AM

thanks, works great, easy install :)

MarkyBuzz 07-22-2002 08:26 PM

Just wanna add my thanks FireFly yoos the man ;)

Worked like a charm on 2.2.6!

THANK YOOOOO! :cool:

Barret 08-30-2002 05:49 PM

Works great on 2.2.6 but..........
if you have quick reply, it will not work with the quick reply box even though you see the smilies.
Any way to fix that?

Rose 08-30-2002 06:35 PM

Quote:

Originally posted by Barret
Works great on 2.2.6 but..........
if you have quick reply, it will not work with the quick reply box even though you see the smilies.
Any way to fix that?


What do you mean it won't work with the QRB? I have 2.2.6, smilies in the QRB, and they show up ordered as they should.

:)

Barret 08-30-2002 06:49 PM

Quote:

What do you mean it won't work with the QRB? I have 2.2.6, smilies in the QRB, and they show up ordered as they should.
They show up fine but when you click them in QRB they wont work..or havent yet :(

Rose 08-30-2002 07:05 PM

Did you remember to add the tags to the end of the QRB template, the two tags listed in the addon? I think they are <*java> tags, but there's two of them.

Barret 08-30-2002 09:23 PM

Yepper.
I did a stupid thing and found the problem :)
My smiley of all things wasnt named.
Sorry for all the confusion.
Boy was I confused as I couldn`t see why in the world this hack would mess that up.
Thanks again for the help.
Glad found my stupidity! :ermm:

Rose 09-06-2002 08:06 PM

Quote:

Originally posted by Barret
Yepper.
I did a stupid thing and found the problem :)
My smiley of all things wasnt named.
Sorry for all the confusion.
Boy was I confused as I couldn`t see why in the world this hack would mess that up.
Thanks again for the help.
Glad found my stupidity! :ermm:

*hehe* We all have moments. ;) Glad it's working. :D

Illuvatar 09-10-2002 05:02 PM

/me moves his whole site to a new server, installs VB 2.2.7, and re-installs this most excellent hack!

Thanks again! I was really gratefull that all I had to do was the template/php mods again as the databse retained the queries during the move and I didn't have to re-order all our flipping smilies again! lol

Buddha 09-12-2002 12:38 AM

thanks.
*clicks install*

groovesalad 09-20-2002 09:09 PM

EDIT: Figured it out....

groovesalad 10-05-2002 12:33 PM

Firefly - You contribute SO much to this board. Thank you VERY much! :)

otacon 10-17-2002 05:06 PM

aaaaa......

is there like some sort of submit button i did not put in or something cus i will put the order i want it to but then what...... nuthing happens

N9ne 10-19-2002 10:41 PM

Does this work in 2.2.8?

N9ne 10-20-2002 03:44 PM

bump...


All times are GMT. The time now is 02:40 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.01492 seconds
  • Memory Usage 1,814KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete