|
Computer Science Programming, System Design, etc
Selamat datang di Gamexeon Forum !
Saat ini kamu sepertinya masih menjadi tamu saja yang hanya dapat memanfaatkan situs ini secara terbatas. Dengan bergabung bersama kami, kamu dapat menanyakan semuanya mulai dari panduan sebuah game sampai utak atik game dan hardware. Banyak fitur lain seperti blogging, fasilitas realtime feeds, video post, poll dan lain sebagainya sebagai sarana diskusi juga disertakan dan siap digunakan oleh siapapun. Registrasinya cepet dan gampang kok, nggak bertele tele, makanya itu daftar sekarang!
Kalo ada masalah mengenai pendaftaran dan lain sebagainya, hubungi kami segera.
Kalau mau lihat index forum aktif yang sedang melakukan diskusi, kamu bisa klik disini .
Kalau mau tau apa saja yang sedang berlangsung di GX secara realtime, kamu bisa klik Newpost. Nggak usah di tutup lagi, nanti dia update sendiri :)
|
|
|
|
|
GX Author ~ Kelelep di Laut ~
Posts: 5,514
Join Date: Dec 2003
Location: Where it should be
Rep Power: 27
Status : Younha....♥
Points: 80,745, Level: 29 |
Level up: 44%, 3,205 Points needed |
|
Sign/Image Random Rotator (Buat yg suka Gonta-ganti) -
07-04-07, 04:21
ditanya radeonator kl ga salah dulu
karena randomimage.net udah terlalu sering down (dan skrg lagi dihack)
jd gw cari2 sendiri deh compilernya
berguna buat banyak hal...
tinggal copy paste trus save jd *.php
Code:
<?php
/* ------------------------- CONFIGURATION -----------------------
Set $folder to the full path to the location of your images.
For example: $folder = '/user/me/example.com/images/';
If the rotate.php file will be in the same folder as your
images then you should leave it set to $folder = '.';
*/
$folder = '.';
/*
Most users can safely ignore this part. If you're a programmer,
keep reading, if not, you're done. Go get some coffee.
If you'd like to enable additional image types other than
gif, jpg, and png, add a duplicate line to the section below
for the new image type.
Add the new file-type, single-quoted, inside brackets.
Add the mime-type to be sent to the browser, also single-quoted,
after the equal sign.
For example:
PDF Files:
$extList['pdf'] = 'application/pdf';
CSS Files:
$extList['css'] = 'text/css';
You can even serve up random HTML files:
$extList['html'] = 'text/html';
$extList['htm'] = 'text/html';
Just be sure your mime-type definition is correct!
*/
$extList = array();
$extList['gif'] = 'image/gif';
$extList['jpg'] = 'image/jpeg';
$extList['jpeg'] = 'image/jpeg';
$extList['png'] = 'image/png';
// You don't need to edit anything after this point.
// --------------------- END CONFIGURATION -----------------------
$img = null;
if (substr($folder,-1) != '/') {
$folder = $folder.'/';
}
if (isset($_GET['img'])) {
$imageInfo = pathinfo($_GET['img']);
if (
isset( $extList[ strtolower( $imageInfo['extension'] ) ] ) &&
file_exists( $folder.$imageInfo['basename'] )
) {
$img = $folder.$imageInfo['basename'];
}
} else {
$fileList = array();
$handle = opendir($folder);
while ( false !== ( $file = readdir($handle) ) ) {
$file_info = pathinfo($file);
if (
isset( $extList[ strtolower( $file_info['extension'] ) ] )
) {
$fileList[] = $file;
}
}
closedir($handle);
if (count($fileList) > 0) {
$imageNumber = time() % count($fileList);
$img = $folder.$fileList[$imageNumber];
}
}
if ($img!=null) {
$imageInfo = pathinfo($img);
$contentType = 'Content-type: '.$extList[ $imageInfo['extension'] ];
header ($contentType);
readfile($img);
} else {
if ( function_exists('imagecreate') ) {
header ("Content-type: image/png");
$im = @imagecreate (100, 100)
or die ("Cannot initialize new GD image stream");
$background_color = imagecolorallocate ($im, 255, 255, 255);
$text_color = imagecolorallocate ($im, 0,0,0);
imagestring ($im, 2, 5, 5, "IMAGE ERROR", $text_color);
imagepng ($im);
imagedestroy($im);
}
}
?>
Quote:
Check the Requirements
In order to use the Rotator, your site must be hosted on a server that supports PHP (version 4.2 or newer). If you’re unsure, it’s best to ask your hosting provider if they have PHP before you move ahead.
|
Done?
yg perlu dilakukan
1. Taro semua images/gambar di 1 folder
2. Image source ganti dengan http://linkmu.com/folder/*.php (taro kode IMG untuk forum), gw sendiri kasih namanya rotator.php
example:
Code:
http://www.blebekblebek.net/blogger/wp-content/themes/mistylook/images/rotator.php
jadinya ya:
Ah... akhirnya... bisa jg gw 
*Note: ga semua forum support sign dengan ext *.php
♥ ♥
» Warnet SiniSitu - Jl. A Yani Km. 35.5 Banjarbaru «
You don't have to force your smile for anyone, It's okay to smile for yourself.
|
|
|
|
|
|
|
|
Moderator 14
Posts: 16,387
Join Date: Aug 2004
Location: In its right place
Rep Power: 59
Status : 64bit whore
Points: 185,403, Level: 44 |
Level up: 8%, 8,047 Points needed |
|
27-12-07, 16:14
^ wuhuu .. good thread lah
thanks
saya harus pahami dulu nih
|
|
|
|
|
|
|
|
GX Author ~ Kelelep di Laut ~
Posts: 5,514
Join Date: Dec 2003
Location: Where it should be
Rep Power: 27
Status : Younha....♥
Points: 80,745, Level: 29 |
Level up: 44%, 3,205 Points needed |
|
27-12-07, 16:18
kyknya ga perlu deh
tinggal copy paste ke notepad aja yg di tag code
taro di hosting bareng ama gambar, test jalan apa ngga
done... gt aja
gile ni thread....
tuaaaaaaaaaaaaaaaaaaaaaaaaaa
♥ ♥
» Warnet SiniSitu - Jl. A Yani Km. 35.5 Banjarbaru «
You don't have to force your smile for anyone, It's okay to smile for yourself.
|
|
|
|
|
|
|
|
Moderator 14
Posts: 16,387
Join Date: Aug 2004
Location: In its right place
Rep Power: 59
Status : 64bit whore
Points: 185,403, Level: 44 |
Level up: 8%, 8,047 Points needed |
|
27-12-07, 16:21
sorry membangkitkan dari kubur

|
|
|
|
|
|
|
|
Moderator 14
Posts: 16,387
Join Date: Aug 2004
Location: In its right place
Rep Power: 59
Status : 64bit whore
Points: 185,403, Level: 44 |
Level up: 8%, 8,047 Points needed |
|
27-12-07, 17:05
blebek ... hotlink image2 ku di paste kemana?
ato folder nya aja?
dari photobucket btw
harap maklum yee .. wa cupu abis bout php 
|
|
|
|
|
|
|
|
GX Author ~ Kelelep di Laut ~
Posts: 5,514
Join Date: Dec 2003
Location: Where it should be
Rep Power: 27
Status : Younha....♥
Points: 80,745, Level: 29 |
Level up: 44%, 3,205 Points needed |
|
27-12-07, 17:11
hahaha... photobucket mah ga bs bos...
mau tes?
ym-aja om biar lebih cepet
♥ ♥
» Warnet SiniSitu - Jl. A Yani Km. 35.5 Banjarbaru «
You don't have to force your smile for anyone, It's okay to smile for yourself.
|
|
|
|
|
|
|
|
Moderator 14
Posts: 16,387
Join Date: Aug 2004
Location: In its right place
Rep Power: 59
Status : 64bit whore
Points: 185,403, Level: 44 |
Level up: 8%, 8,047 Points needed |
|
27-12-07, 17:28
gwe oot
dari kantor gak boleh YM  .. ketahuan dimarahin ntar 
oot end
ok bek .. aku pelajari dulu *kasih hint dung share image nya di mana? geocities  satu folder?
PR nih
|
|
|
|
|
|
|
|
GX Author ~ Kelelep di Laut ~
Posts: 5,514
Join Date: Dec 2003
Location: Where it should be
Rep Power: 27
Status : Younha....♥
Points: 80,745, Level: 29 |
Level up: 44%, 3,205 Points needed |
|
27-12-07, 17:32
bs ftp?
kukasih loginnya kl bs
gampang banget semua config dah kuupload
kl ngga bs Y
♥ ♥
» Warnet SiniSitu - Jl. A Yani Km. 35.5 Banjarbaru «
You don't have to force your smile for anyone, It's okay to smile for yourself.
|
|
|
|
|