17/11/2007, 14:15
|
| | Fecha de Ingreso: noviembre-2007
Mensajes: 2
Antigüedad: 17 años, 1 mes Puntos: 0 | |
Re: Tutorial: Joomla + SMF + Bridge hola amigos aun sigo sin poder usar este bridge de joomlahacks, es posible que no sepa parchearlo por que el ingles muy mal... y la guia viene en ingles.. no se si este codigo tengo que incluirlo en algun sitio, sabesi que tengo que hacer con esto??:
3.1. Retrieving JSMF Parameters
JSMF stores its parameters in the Joomla! database table prefix_jsmf_config. To retrieve the JSMF parameters make a direct call to the loadParams function. This will retrieve the params from cache if it has not expired or directly from the database and return an object.
The file smf.class.php needs to be included in order to make the call to the function loadParam. This should have occurred in the Joomla! index however using the statement include_once you can safely make sure the file has been included. The following code example shows how to retrieve the parameter object.
include_once($mosConfig_absolute_path.'/components/com_smf/smf.class.php');
$jsmfConfig = jsmfFrontend::loadParams();
After retrieving the parameter object access the parameters like any PHP object. For example
$jsmfConfig->smf_prefix |