| Precedente :: Successivo |
| Autore |
Messaggio |
crhistal Newbie


Registrato: 22-06-2006 Messaggi: 218
|
Inviato: 30-04-2008 18:48 Oggetto: Firma Dinamica |
|
|
ciao ragazzi,
sono riuscito anche io a fare la mia firma dinamica come si puà notare,
ma perchè qui si vede e nel mio forum no? dipende da qualche impostazione del mio forum? non credo proprio dalla versione, giusto?
guardate come si vede:
http://www.affarucci.it/modules.php?name=Forums&file=viewtopic&p=2161#2161
help-me, tank you  _________________
----> Niente è impossibile <---- |
|
| Torna in cima |
|
 |
RobinHood Newbie


Registrato: 19-05-2007 Messaggi: 171
|
Inviato: 30-04-2008 20:17 Oggetto: |
|
|
| argomento già trattao nel forum , usa la funzione cerca, in più, proprio in questio sito, c'è anche un tutorial sull'argomento |
|
| Torna in cima |
|
 |
crhistal Newbie


Registrato: 22-06-2006 Messaggi: 218
|
|
| Torna in cima |
|
 |
crhistal Newbie


Registrato: 22-06-2006 Messaggi: 218
|
|
| Torna in cima |
|
 |
crhistal Newbie


Registrato: 22-06-2006 Messaggi: 218
|
Inviato: 02-05-2008 16:58 Oggetto: |
|
|
in realtà sto scoprendo che su molti siti non si vede... uffffff!
come si può fare?  _________________
----> Niente è impossibile <---- |
|
| Torna in cima |
|
 |
crhistal Newbie


Registrato: 22-06-2006 Messaggi: 218
|
Inviato: 07-05-2008 09:39 Oggetto: |
|
|
ciao ragazzi,
vabbhè il fatto che la firma non si vede in tutti i siti ho capito che non è un "problema mio",
però ad esempio vorrei aggiungere nella firma i totale dei download del mio sito, come fare?
ho "studiato" un pò il codice, ma purtroppo sui database sono abbastanza impreparato, com'è il rigo da aggiungere?
questo è il codice:
require_once("mainfile.php");
global $prefix, $user_prefix,$startdate, $db;
list($count) = $db->sql_fetchrow($db->sql_query("SELECT count FROM ".$user_prefix."_counter WHERE type='total' AND var='hits'"));
list($sitename) = $db->sql_fetchrow($db->sql_query("SELECT sitename FROM ".$user_prefix."_config"));
list($overall) = $db->sql_fetchrow($db->sql_query("SELECT COUNT(*) FROM ".$user_prefix."_users"));
list($lastuser) = $db->sql_fetchrow($db->sql_query("SELECT username FROM ".$user_prefix."_users order by user_id DESC limit 0,1"));
list($member_online_num) = $db->sql_fetchrow($db->sql_query("SELECT COUNT(*) FROM ".$user_prefix."_session WHERE guest = 0"));
list($guest_online_num) = $db->sql_fetchrow($db->sql_query("SELECT COUNT(*) FROM ".$user_prefix."_session WHERE guest = 1"));
$who_online_num = $guest_online_num + $member_online_num;
$image = "signature.png";
$im = imagecreatefrompng($image);
$tc = ImageColorAllocate ($im, 5, 50, 250); // Blue
$now = date("d m Y H:i:s");
$red = ImageColorAllocate ($im, 255, 0, 0);
$j = strlen($lastuser);
$space = $j*6+240;
ImageString($im, 3, 65, 1, "$sitename Live! Oggi: $now", $purple);
ImageString($im, 3, 65, 15, "$count visite dal $startdate", $tc);
ImageString($im, 3, 65, 28, "Iscritti: $overall", $tc);
ImageString($im, 3, 170, 28, " Ultimo Iscritto: $lastuser", $red);
ImageString($im, 3, 65, 42, "Online ora($who_online_num): $member_online_num iscritti $guest_online_num visitatori", $tc);
ImageString($im, 3, 65, 38, "Download Gratuiti: ".$prefix."_downloads_downloads", $dbi);
header("Content-Type: image/png");
Imagepng($im);
ImageDestroy ($im);
?>
ad esempio ho capito che in queste stringhe
ImageString($im, 3, 170, 28, " Ultimo Iscritto: $lastuser", $red);
le 3 cifre determinano la posizione dove comparirà la scritta, giusto? però non so come inserire il totale dei download, se qualcuno me lo passa, o me lo spiega
grazie  _________________
----> Niente è impossibile <---- |
|
| Torna in cima |
|
 |
websol Newbie


Registrato: 26-09-2005 Messaggi: 88 Località: Brescia
|
Inviato: 07-05-2008 11:08 Oggetto: |
|
|
secondo me in alcuni siti non si vede perchè magari l'admin ha disattivato il BBcode nella firma... ^^
altrimenti non saprei!
per la richiesta che fai...
secondo me dovrebbe diventare circa così:
| Citazione: |
require_once("mainfile.php");
global $prefix, $user_prefix,$startdate, $db;
list($count) = $db->sql_fetchrow($db->sql_query("SELECT count FROM ".$user_prefix."_counter WHERE type='total' AND var='hits'"));
list($sitename) = $db->sql_fetchrow($db->sql_query("SELECT sitename FROM ".$user_prefix."_config"));
list($overall) = $db->sql_fetchrow($db->sql_query("SELECT COUNT(*) FROM ".$user_prefix."_users"));
list($lastuser) = $db->sql_fetchrow($db->sql_query("SELECT username FROM ".$user_prefix."_users order by user_id DESC limit 0,1"));
list($member_online_num) = $db->sql_fetchrow($db->sql_query("SELECT COUNT(*) FROM ".$user_prefix."_session WHERE guest = 0"));
list($guest_online_num) = $db->sql_fetchrow($db->sql_query("SELECT COUNT(*) FROM ".$user_prefix."_session WHERE guest = 1"));
FROM ".$user_prefix."_config"));
list($download) = $db->sql_fetchrow($db->sql_query("SELECT COUNT(*) FROM ".$user_prefix."_download"));
$who_online_num = $guest_online_num + $member_online_num;
$image = "signature.png";
$im = imagecreatefrompng($image);
$tc = ImageColorAllocate ($im, 5, 50, 250); // Blue
$now = date("d m Y H:i:s");
$red = ImageColorAllocate ($im, 255, 0, 0);
$j = strlen($lastuser);
$space = $j*6+240;
ImageString($im, 3, 65, 1, "$sitename Live! Oggi: $now", $purple);
ImageString($im, 3, 65, 15, "$count visite dal $startdate", $tc);
ImageString($im, 3, 65, 28, "Iscritti: $overall", $tc);
ImageString($im, 3, 170, 28, " Ultimo Iscritto: $lastuser", $red);
ImageString($im, 3, 65, 42, "Online ora($who_online_num): $member_online_num iscritti $guest_online_num visitatori", $tc);
ImageString($im, 3, 65, 38, "Download Gratuiti: $download, $tc);
header("Content-Type: image/png");
Imagepng($im);
ImageDestroy ($im);
?> |
però devi vedere nel tuo db qual'è la voce che conteggia i download...
se di chiama davvero ".$user_prefix."_download
come ho messo nel testo in rosso... ^^ _________________
 |
|
| Torna in cima |
|
 |
|
|
Non puoi inserire nuovi Topic in questo forum Non puoi rispondere ai Topic in questo forum Non puoi modificare i tuoi messaggi in questo forum Non puoi cancellare i tuoi messaggi in questo forum Non puoi votare nei sondaggi in questo forum
|
Powered by phpBB
© 2001-2006 phpBB Group
Versione 2.0.21 by Nuke Cops © 2006 http://www.nukecops.com
- Generazione pagina: 0.12 Secondi
|