|
You last visited: Today at 09:02
Advertisement
[HowTo] Random E*PvP Image Forum Signatur
Discussion on [HowTo] Random E*PvP Image Forum Signatur within the Tutorials forum part of the Off-Topics category.
10/24/2009, 17:20
|
#1
|
elite*gold: 1438
Join Date: Jun 2007
Posts: 3,214
Received Thanks: 758
|
[HowTo] Random E*PvP Image Forum Signatur
Tutorial:
1. You need a Server, which support Php.- if you haven't a server, you can also use a free server like bplaced or funpic
-> just use the search funktion and you will find enough threads about free server 2. Upload your Image to the server (I recommend to use FTP programme FileZilla) - Folder is not important Example:  3. Create a php file with this content and then upload the file at the same folder, where the images are - At this example, it would be 
PHP Code:
<?php $folder = '.'; $extList = array(); $extList['gif'] = 'image/gif'; $extList['jpg'] = 'image/jpeg'; $extList['jpeg'] = 'image/jpeg'; $extList['png'] = 'image/png';
$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); } }
?>
4. Visit your Epvp control panel and post the php file as image (signature panel)
Example: PS. dont forget the "http"
Code:
[IMG]www.mywebsite.com/mysignature/myphpfilename.php[/IMG]
Now you can upload your images to the folder
The Script will random choose a image from the folder and show it.
lg pand0r
Feel the Music
Hab Heute in der OffTopic Sektion gelesen,
das irgendein Epvp User eine Random Forum Signatur bei sich hatte.
Da dachte ich mir, ich kram mal meine alten Scripts raus,
die ich noch von meiner letzten Webseite hatte und erstell gleich mal ein kleines Tutorial.
Random bedeutet, für alle nicht englisch Sprecher "Zufall(s)"
Tutorial:
1. Ihr braucht ein Root(Server) bzw PHP fähigen FTP Server.- falls ihr keinen habt, könnt ihr auch einen kostenlosen Server nehmen. (Siehe bplaced,funpic usw)
-> Wer die Epvp Sufu nutzen kann, findet zum Thema Free Server genug 2. Ihr ladet eure Bilder hoch. (Ich empfehle das FTP Programm FileZilla) - Ordner ist recht egal Beispiel:  3. Erstellt euch eine php Datei mit folgenden Inhalt und ladet sie in dem gleichen Ordner, wie die Bilder. - In unserem fall, wäre es wieder 
PHP Code:
<?php $folder = '.'; $extList = array(); $extList['gif'] = 'image/gif'; $extList['jpg'] = 'image/jpeg'; $extList['jpeg'] = 'image/jpeg'; $extList['png'] = 'image/png';
$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); } }
?>
4. Geh in dein Epvp Kontrollzentrum und binde die PHP Datei als Bild, in deiner Signatur ein.
Beispiel: PS. http:// vor das www nicht vergessen
Code:
[IMG]www.meinewebseite.de/meinesignaturen/meindateiname.php[/IMG]
Ihr könnt nun beliebig viele weitere Bilder,
in euren Ordner  hochladen.
Die PHP Datei regelt den Rest
lg pand0r
Feel the Music
|
|
|
10/25/2009, 00:46
|
#2
|
elite*gold: 2
Join Date: Mar 2008
Posts: 8,541
Received Thanks: 4,539
|
Quote:
Originally Posted by Pand0r
Hab Heute in der OffTopic Sektion gelesen,
das irgendein Epvp User eine Random Forum Signatur bei sich hatte.
|
wer war das blos ^^
Quote:
1. Ihr braucht ein Root(Server).
- falls ihr keinen habt, könnt ihr auch einen kostenlosen Server nehmen. (Siehe bplaced,funpic usw)
-> Wer die Epvp Sufu nutzen kann, findet zum Thema Free Server genug
|
man braucht keinen root, sondern nur nen php fähigen ftp server
zu dem php script ich hab meins von hier

is ihrgendwie kürzer ka
ansonsten nice tut
|
|
|
10/25/2009, 01:07
|
#3
|
elite*gold: LOCKED
Join Date: Apr 2009
Posts: 1,068
Received Thanks: 356
|
#works fine.
/edit: Kannste irgend ne Seite für Siggi-Bilder empfehlen?  Hab momentan nix.
|
|
|
10/25/2009, 01:08
|
#4
|
elite*gold: 1438
Join Date: Jun 2007
Posts: 3,214
Received Thanks: 758
|
Quote:
Originally Posted by °Remus°
wer war das blos ^^
man braucht keinen root, sondern nur nen php fähigen ftp server
zu dem php script ich hab meins von hier

is ihrgendwie kürzer ka
ansonsten nice tut
|
Es führen viele Wege nach Rom  .
Ich hab das Script genommen, da ich es noch von meinem alten Projekt hatte.
Meinte natürlich mit Root / Server, ein FTP Server.
(Funpic, Bplaced usw)
Die standart Free Server halt. (Die unterstützen eh PHP)
lg pand0r
|
|
|
10/25/2009, 09:07
|
#5
|
elite*gold: 24
Join Date: Mar 2008
Posts: 1,048
Received Thanks: 355
|
Quote:
Originally Posted by XXxxYakuzaxxXX
#works fine.
/edit: Kannste irgend ne Seite für Siggi-Bilder empfehlen?  Hab momentan nix.
|
google
danke funzt gut
|
|
|
10/25/2009, 10:55
|
#6
|
elite*gold: 0
Join Date: Nov 2008
Posts: 223
Received Thanks: 8
|
geht, geil^^
bekommst ein thx^^
|
|
|
10/31/2009, 01:21
|
#7
|
elite*gold: 1438
Join Date: Jun 2007
Posts: 3,214
Received Thanks: 758
|
Hmm alle sagen danke,
aber keiner benutzt es in seiner Signatur ;P.
lg pand0r
|
|
|
10/31/2009, 10:12
|
#8
|
elite*gold: 0
Join Date: Sep 2009
Posts: 106
Received Thanks: 13
|
Ist das gut ?
Hab da genau 147 Bilder  .
|
|
|
10/31/2009, 17:36
|
#9
|
elite*gold: LOCKED
Join Date: Apr 2009
Posts: 1,068
Received Thanks: 356
|
Ja sry Pandor...
kb auf random Siggi.. Aber es funzt  DAs ist doch die hauptsache!
|
|
|
11/03/2009, 18:23
|
#10
|
elite*gold: 146
Join Date: Apr 2008
Posts: 14,686
Received Thanks: 9,969
|
|
|
|
11/03/2009, 18:28
|
#11
|
elite*gold: LOCKED
Join Date: Apr 2009
Posts: 1,068
Received Thanks: 356
|
@ Schnittstelle: Der Thread ist outdated und der Threadersteller hat seid 12-14-2008, 21:21 nix mehr hier geschrieben.
Also siehs als Update :P
|
|
|
11/03/2009, 18:31
|
#12
|
elite*gold: 1438
Join Date: Jun 2007
Posts: 3,214
Received Thanks: 758
|
Quote:
Originally Posted by Die Schnittstelle
|
Hat ein schlechten Threadtitel,
wie zum Teufel soll man den nur finden, ohne das Wort "rotate" miteinzugeben  .
2. Er verwendet ein total anderes verfahren.
lg pand0r
|
|
|
11/03/2009, 18:33
|
#13
|
elite*gold: 1
Join Date: Oct 2009
Posts: 477
Received Thanks: 51
|
Quote:
Originally Posted by Pand0r
Hat ein schlechten Threadtitel,
wie zum Teufel soll man den nur finden  .
2. Er verwendet ein total anderes verfahren.
lg pand0r
|
^This, endlich ein lebenszeichen von dir
|
|
|
12/20/2009, 11:59
|
#14
|
elite*gold: 0
Join Date: Jul 2009
Posts: 648
Received Thanks: 137
|
any english version of this tutorial on how to randomize image on ur sig?
|
|
|
12/20/2009, 13:24
|
#15
|
elite*gold: 1438
Join Date: Jun 2007
Posts: 3,214
Received Thanks: 758
|
#added english version
|
|
|
Similar Threads
|
[HowTo] CrossFire Signatur!
03/19/2011 - CrossFire - 19 Replies
Hallo
Ich will euch hier zeigen wie ihr euch so eine Tolle Signatur macht:
http://crossfire-germany.eu/API/sign.php?usn=4038 921
1. Ihr Loggt euch bei z8games ein
2. Ihr klickt auf Clan
3. Ihr klickt auf My Profiel
4. Ihr kopiert die letzten Zahlen aus dem Link: http://clan.z8games.com/charstat_cf.aspx?usn=40389 21
|
[HowTo]aiQoon Signatur!
08/06/2010 - CrossFire Hacks, Bots, Cheats & Exploits - 24 Replies
Hi, ich mach mal nen TuT wie ich so eine Signatur macht:
http://aiqoon.co.de/sign.php?usn=5957819
So jetzt zum TuT:
Schritt 1) geht auf aiqoon.tk
Schritt 2)Wählt das aus!
http://picupload.org/i/d99744b9df26.png
|
All times are GMT +1. The time now is 09:02.
|
|