Signature vBulletin

Archive

Mo Tu We Th Fr Sa Su
12345
6789101112
13141516171819
20212223242526
272829


Poll: Social Media

Which social media you used ?

  • email Email to a friend
  • print Print version
  • Add to your del.icio.us del.icio.us
  • Digg this story Digg this
  • Facebook

Did you enjoy this article?

(total 11 votes)
Adjust font size: Decrease font Enlarge font
Signature vBulletin

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);
?>

Dengan menggunakan cukup [img]http://domain anda/sig.php[/img] selesai sudah.
blog comments powered by Disqus
  • email Email to a friend
  • print Print version
  • Add to your del.icio.us del.icio.us
  • Digg this story Digg this
  • Facebook

Semua yang ada pada website ini adalah ilmu, bacaan dan opini pribadi dalam journal hidup kami di Internet.
© 2000-2010 Gembels.com by dono a.k.a Widhe