PHP Classes

Tona Smileys: Replaces smiley tags with images defined in MySQL

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 499 All time: 5,822 This week: 455Up
Version License Categories
cl_smiley 1.0GNU Lesser Genera...HTML, Databases, Text processing
Description 

Author

This class is meant to replace smiley tags with images defined in a table of a MySQL database.

The class is based on the original developed by Lennart Groetzbach.

Picture of Tonacho
Name: Tonacho <contact>
Classes: 1 package by
Country: Spain Spain
Age: 44
All time rank: 326888 in Spain Spain
Week rank: 181 Up7 in Spain Spain Up

Details

============================ = Class Tona_Smileys = ============================ Esta clase, usa una Base de Datos Mysql, donde guarda la información sobre los Smileys. Cuando le pasas una cadena de texto, busca coincidencias en la Base de Datos y sustituye el código por el smiley correspondiente. Descripcion de los parámetros y métodos: - $_Smileys: Es un array con los Smileys - $ruta: La ruta hacia los smileys - smiley(): Invoca al método _resetsmiley(). - insertasmiley($str): Evalúa la cadena $str y sustituye los códigos por smileys - getsmiley(): Devuelve todos los smileys, es un array de arrays. - _resetsmiley(): Hace una consulta a la Base de datos y pone los resultados en el array $_smileys. - set_ruta_smilie($url): Indica la ruta donde están los smileys en el servidor. Si teneis alguna mejora para esta clase, no dudeis en escribirme. webmaster@tonachadas.com

  Files folder image Files (5)  
File Role Description
Plain text file cl_smiley.php Class Main File
Accessible without login Plain text file license.txt Lic. License
Accessible without login Plain text file prueba_smilies.php Example An Example
Accessible without login Plain text file readme.txt Doc. The Readme File
Accessible without login Plain text file tona_icon.sql Data Mysql Table

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:499
This week:0
All time:5,822
This week:455Up