MoonPoint Support Logo

 

Shop Amazon Warehouse Deals - Deep Discounts on Open-box and Used ProductsAmazon Warehouse Deals



Advanced Search
July
Sun Mon Tue Wed Thu Fri Sat
         
10
           
2011
Months
Jul


Sun, Jul 10, 2011 10:30 pm

Changing Smileys from Post form to Popup

To change smileys on a Simple Machines Forum (SMF) from "Post form" to "Popup", you can take the following steps:
  1. Click on Admin.
  2. Select Forum.
  3. Select Smileys and Message Icons.
  4. Select Edit Smileys.

You will then see a table of smileys with the smiley itself in the far-left column followed by columns titled "Code", "Filename", "Location", "Tooltip or description", and "Modify".

You can change the location from "Post form" to "Popup" by clicking on Modify and then changing the location. There are three options for location: Post form, Popup, and Hidden.

In the database there is a table, smf_smileys, if you used the default prefix of "smf" for tables created within the database. It has the following fields, i.e., columns:

id_smiley
code
filename
description
smiley_row
smiley_order
hidden

The hidden field is where information is stored about whether the value of location is post form, popup, or hidden. If the value is "Post form", then a 0 is stored in the field. If it is "Hidden" then a 1 is stored in the field. If it is "Popup", then a 2 is stored in the Hidden field for that particular' smiley's entry in the smiley table.

TextNumber
Post form0
Hidden1
Popup2

If you can directly access the tables in the database from a command prompt, e.g., by running mysql at a command prompt, or can issue Structured Query Language (SQL) statements through software such as phpMyAdmin, you can update the value for a range of smileys simultaneously. E.g. if I wanted to update those smileys with smiley_id between 768 and 778 to change the location from "post form" to "Popup", which is represented by a "2" in the Hidden field of the table, I could change the value using the SQL statement below, assuming the database itself is called "myforum":

UPDATE myforum.smf_smileys SET hidden = '2' WHERE smf_smileys.id_smiley BETWEEN 768 AND 778;

References:

  1. MySQL BETWEEN Clause
    TutorialsPoint.COM

[/network/web/forums/smf] permanent link

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo