Archive
| Mo | Tu | We | Th | Fr | Sa | Su | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | ||||||||||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 | |||||||
| 10 | 11 | 12 | 13 | 14 | 15 | 16 | |||||||
| 17 | 18 | 19 | 20 | 21 | 22 | 23 | |||||||
| 24 | 25 | 26 | 27 | 28 | 29 | 30 | |||||||
Poll: Indonesia
Did you enjoy this article?
Selama kurang dari 1 Jam saya membuat beberapa untaian code untuk `mempercantik' signature saya pada forums nyit-nyit.net. Semoga bisa difungsikan untuk para admin forum vBulletin lainnya. Code ini adalah karya buatan saya sendiri ? Tetapi contoh Query pemanggilan database vBulletin tetap bagian dari vBulletin Forums. Berikut code nya:
<?php
// Saya memberikan header browser menjelaskan ini bukan php file tapi images file.
header("Content-type: image/png");
/** Random text yg bisa diganti*/
$number = rand(1,9);
if($number==1)$string2 = "Kami tidak bertanggung jawab atas hasil yang didapatkan dari forums kami.";
if($number==2)$string2 = "Posting, Upload diforums ini tanggung jawab user itu sendiri.";
if($number==3)$string2 = "Kami tidak membujuk, memaksa user untuk setuju atau mengikuti kami.";
if($number==4)$string2 = "[ x ] Tukang Sapu Nyit-nyit.Net";
if($number==5)$string2 = "[ x ] Tukang Sapu Batamgamers.com";
if($number==6)$string2 = "[ x ] Tukang Sapu Gembels.com";
if($number==7)$string2 = "[ + ] Email: gembels@gmail.com";
if($number==8)$string2 = "[ + ] Web Personal: www.widhe.com";
if($number==9)$string2 = "[ + ] FS: gembels@gmail.com";
/** Nama file yg di exec atau cwd disini saya sebut dono (dono.php) contoh nyit-nyit.net/dono.php */
define('CWD', (($getcwd = getcwd()) ? $getcwd : '.'));
define('THIS_SCRIPT', 'dono');
/** Pemanggilan string database pada init file vBulletin */
require_once(CWD . '/includes/init.php');
/** Jumlah Thread */
$totalthreads = $db->query_first("SELECT COUNT(threadid) FROM " . TABLE_PREFIX . "thread");
$totalthreads = implode(",",$totalthreads);
/** Jumlah Post */
$totalposts = $db->query_first("SELECT COUNT(postid) FROM " . TABLE_PREFIX . "post");
$totalposts = implode(",",$totalposts);
/** Total Users */
$totalusers = $db->query_first("SELECT COUNT(userid) FROM " . TABLE_PREFIX . "user");
$totalusers = implode(",",$totalusers);
$ip = $_SERVER["REMOTE_ADDR"] ;
// Nama Images yg akan dijadikan background dalam bentuk .PNG file images.
// Dan bisa diremote memakai http://nyit-nyit.net/base2.png misalnya
// Atau pemanggilan langsung lewat *root* folder seperti dibawah ini
$im = imagecreatefrompng("base2.png");
/**
Sets bermacam color atau warna tulisan dalam RGB format.
*/
$color = imagecolorallocate($im, 255, 255, 0);
$color1 = imagecolorallocate($im, 0, 255, 255);
$color2 = imagecolorallocate($im, 255, 0, 255);
$color3 = imagecolorallocate($im, 255, 0, 0);
$color4 = imagecolorallocate($im, 255, 255, 255);
// Sets posisi images dalam satuan pixels.
$px=10;
$py=10;
// Menampilkan tulisan berdasarkan variables dan posisi x (horizontal)
// Dan y (vertikal) dalam satuan pixels yg bisa set oleh variables px dan py diatas
imagestring($im, 5, $px, $py, "dono - widhe - D0N-Q - Gembels - VaLendoNo", $color1);
imagestring($im, 2, $px, $py+20, "Jabatan : Tukang Sapu", $color);
imagestring($im, 2, $px, $py+30, "Jumlah Thread : $totalthreads topik", $color);
imagestring($im, 2, $px, $py+40, "Jumlah Posting : $totalposts post", $color);
imagestring($im, 2, $px, $py+50, "Jumlah User : $totalusers users", $color);
imagestring($im, 5, $px+200, $py+30," NYIT-NYIT.NET", $color3);
imagestring($im, 2, $px+200, $py+50, "IP Kamu: $ip", $color4);
/** Untuk random text **/
imagestring($im, 2, $px, $qy+65,$string2, $color2);
// Penampakan bpada images PNG sebagai background dan selesai!
imagepng($im);
imagedestroy($im);
?>
Post your comment
Comments (2 posted)
-
Posted by h4ntu, 22 December, 2007 07:46:17Bingung mesti post kemana... http://www14.gembels.com/include/lang.php?default_language=CSS found here Ada sedikit bug nih pak di vivvo. Beli nya mahal... but not too good... LOL
-
Posted by dono, 22 December, 2007 07:46:17thanks bro.. but.. sum 1 do it for you.. hehe namanya th0r dan merasa lebih jagoan.. gitu sih katanya..





J o u r n a l


