Jump to content

Emoticons are not displayed in orders


Guest

Recommended Posts

Posted

last time Jason emailed me this:

This was the solution for 3.0.5

Hello,



Emoticons are not displayed on the forum in alphabetical order. They are displayed in the ACP in alphabetical order, but they are displayed on the forum, when you click on "Show All" or the emoticon button in the order that they are stored in the database.



Changing the filename or the replacement would have no effect on their ordering.



To change the ordering when displayed on the forum, you would have to edit the /admin/applications/forums/modules_public/ajax/emoticons.php file



$this->DB->build( array( 'select' => 'typed, image', 'from' => 'emoticons', 'where' => "emo_set='".$this->registry->output->skin['set_emo_dir']."'" ) );



Changing that to something like



$this->DB->build( array( 'select' => 'typed, image', 'from' => 'emoticons', 'where' => "emo_set='".$this->registry->output->skin['set_emo_dir']."'", 'order' => 'image' ) );



WOULD cause them to be sorted by the image name, which is the actual filename on the disk, when the "Show All" link was clicked.



Jason


IPS Support



And for the IP.Chat

Hello,



Same change, but in the file



/admin/applications_addon/ips/ipchat/modules_public/ipschat/chat.php



Jason


IPS Support



I did the code changing and works great for the IP.Board 3.0.5:

%7Boption%7D

works great for the IP.Chat:

%7Boption%7D

But now.. there's a problem... with 3.1.1 ... i see this on the /admin/applications/forums/modules_public/ajax/emoticons.php

%7Boption%7D

What is this ZEND ? Why the change ?

Now my emoticons are displayed like this:

%7Boption%7D
Posted

Is there a solution on how to put my 500 emoticons in orders ?

My emoticons are in numerical orders (example: 001.png 002.png 003.png 004.png ....)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...