hallo leute,
ich möchte mir den Random Userphoto installieren.
Nach dem Download kam eine Datei raus ich glaube eine Anleitung mit Codes (siehe unten).
Aber bisher habe ich sowas nicht gemacht.
Und die Anleitung ist auf Englisch kann mir jemand weiterhelfen?
Wie man sowas installiert?
hier der download link wenn jemand fragen sollte
http://www.pragmamx.org/modules.php?query=Random+Userphoto&x=0&y=0&name=Downloads&op=search&min=0&orderby=dateD
Danke
<?php // $Id: block-Random_Userphoto.php,v 1.1 2004/03/11 23:58:16 EllselAn Exp $
/**********************************************************************/
/* pragmaMx 0.2 / Mx 2.2 Content Management System Platform */
/* ================================================================== */
/* Copyright (C) 2004 by the vkpMx & pragmaMx Developer Team */
/* email: team@pragmamx.org */
/* homepage: http://www.maax-design.de & http://www.pragmaMx.org */
/* ================================================================== */
/* The vkpMx is distributed free of charge by maax-design.de. */
/* The use of this system is allowed until copyright information */
/* is shown perspicuous visible and correcty on all system pages. */
/* Sales, rent out and the use of single code parts from this */
/* system must be allowed by maax-design.de. */
/**********************************************************************/
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
//////////////////////////////////////////
// Blockcache erlauben?
$mxblockcache = TRUE;
// Pfad zu den Bildern
$imagedir = 'modules/User_Fotoalbum/album';
// maximale Breite des Bildes
$maxwidth = 120;
//////////////////////////////////////////
$imglist = array();
$imgs = dir($imagedir);
while ($file = $imgs -> read()) {
if (preg_match('#(.*)([0-9])(\.gif|\.jpe?g)$#i', $file, $matches)) {
$imglist[] = $matches;
}
}
closedir($imgs->handle);
if (count($imglist)) {
srand ((float)microtime()*1000000);
shuffle($imglist);
$size = getimagesize($imagedir.'/'.$imglist[0][0]);
$size = ($size[0] > $maxwidth) ? 'width="120"' : $size[3];
$content = '
<center>
<img src="'.$imagedir.'/'.$imglist[0][0].'" '.$size.' border="0" alt="'.$imglist[0][1].'"><br>
<a href="modules.php?name=Userinfo&uname='.$imglist[0][1].'"><b>'.$imglist[0][1].'</b></a>
</center>';
}
?>
Die im Zip-Archiv enthaltene Datei mußt Du einfach nur in das Verzeichnis /blocks auf deinem Webspace hochladen. Anschliessend kannste den Block über die Blockadministration Adminmenü -> Blöcke -> Neuer Block(Datei) auswählen und platzieren.
habs gemacht aber dann öffnet sich meine startseite nicht mehr bleibt nur weiß. :puzzled: