1
Gallerie di immagini / Re:weblink ozio gallery
« il: 19 Mar 2010, 09:41:45 »
see attached image
[allegato vecchio più di un anno eliminato automaticamente]
[allegato vecchio più di un anno eliminato automaticamente]
Questa sezione ti permette di visualizzare tutti i post inviati da questo utente. N.B: puoi vedere solo i post relativi alle aree dove hai l'accesso.
<?php
// no direct access
defined('_JEXEC') or die('Restricted access');
jimport('joomla.base.tree');
jimport('joomla.utilities.simplexml');
$database = & JFactory::getDBO();
$my = JFactory::getUser();
$usertype = 'unregistered';
if ($my->id != 0)
{
// Esiste un utente autenticato. Interrogo il DB e cerco il campo "usertype" che è quello che mi interessa
$query = "SELECT usertype FROM jos_users WHERE id=$my->id";
$database->setQuery($query);
$usertype = $database->loadResult();
}
// se usertype è uguale a Registered imposto lo sfondo scuro (background1.jpg)
if ($usertype == 'Registered')
{ echo ('<style type="text/css">body#page_bg{background: black; color: black;} div#header {background:url(http://www.TUOSITO_PERCORSO_ALLA_TUA_IMMAGINE_DI_SFONDO1.jpg)}"></style>');
}
// in tutti gli altri casi imposto il background2.jpg
else
{echo ('<style type="text/css">body#page_bg{background: black; color: black;} div#header {background:url(http://www.TUOSITO_PERCORSO_ALLA_TUA_IMMAGINE_DI_SFONDO2.jpg)}"></style>');
}
?>
<?php
include("____PERCORSO___Nomefile.php");
?>
![]() |
|