Smilie Creator MOD vorhanden ?!?

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Casper
Mitglied
Beiträge: 33
Registriert: 17.05.2003 00:57

Beitrag von Casper »

mmh kann mir keiner helfen?

Casper
Bayer
Mitglied
Beiträge: 20
Registriert: 03.10.2002 21:03
Wohnort: Ruhrpott

Beitrag von Bayer »

Ich dreh gleich noch durch...

Ich hab auch ein phpbb2plus und will diesen mod aller mods (*schleim*) installieren...

Zuerst hab ich nur den text gesehen ([schild=???) usw und dann hab ich nochmal alle beiträge hier durchgelesen, und hab dann das gemacht, was esperitox zu Snoopmore gesagt hat, mit der bbcodes.php...


Jetz krieg ich immer diesen Fehler, wenn ich ein post ansehen will:

Code: Alles auswählen

Parse error: parse error, unexpected '<' in /usr/local/httpd/htdocs/kunden/web175/html/phpBB2/includes/bbcode.php(334) : regexp code on line 1

Fatal error: Failed evaluating code:  in /usr/local/httpd/htdocs/kunden/web175/html/phpBB2/includes/bbcode.php on line 334
Ich hoffe ihr könnt mir helfen, ich will nämlich diesen kewlwn mod auch auf meinem Forum 8) 8) 8)
Wissen ist Macht
Nichts wissen macht nix!!!
Caesar
Mitglied
Beiträge: 1
Registriert: 10.04.2004 23:03

Beitrag von Caesar »

hi
ich bin neu hier und hab mal ne frage
wie mache ich diese statistik auf ein banner in der signatur?
Max.
Mitglied
Beiträge: 42
Registriert: 29.04.2006 22:51

Beitrag von Max. »

Also bei mir klappt das mit der Signatur nicht wirklich

http://www.ein-herz-fuer-bier.de/com/signatur.php
Rettet das Bier - www.ein-herz-fuer-bier.de
SZiebeck01
Mitglied
Beiträge: 49
Registriert: 28.06.2006 08:55
Wohnort: Lübeck
Kontaktdaten:

Noch ein Problemkind...

Beitrag von SZiebeck01 »

Huhu Leute ,ich habe das problem,das der Smilie Creator zwar mit eaufwählen funzt ,aber anziegen tut er nichts...

hier ein screenshot:

[ externes Bild ]
als img link gibt er http://www.weisst-was.eu/%7BURL%7D an :-(

wäre nett ,wenn ihr helfen könntet
Meine Signatur war zu groß und wurde deshalb gelöscht - Siehe phpBB.de-Knigge
SZiebeck01
Mitglied
Beiträge: 49
Registriert: 28.06.2006 08:55
Wohnort: Lübeck
Kontaktdaten:

Beitrag von SZiebeck01 »

Hab den Fehler gefunden:
die text...php war für php 4...ich habe php 5 ;-)
hier der php5 code:

Code: Alles auswählen

<?

define('IN_PHPBB', 'true');
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length);
init_userprefs($userdata);

$raute = "#";
$schriftfarbe = $raute.$HTTP_GET_VARS['fontcolor'];
$schriftdatei = "arial";
$smilie = $HTTP_GET_VARS['smilie'];

if ( $HTTP_GET_VARS['shadowcolor'] == '' )
{
$schattenfarbe = "";
}
else
{
$schattenfarbe = $raute.$HTTP_GET_VARS['shadowcolor'];
}

if ( $HTTP_GET_VARS['smilie'] == 'standard' )
{
$smilie = $std_smilie;
}

$std_smilie = 1;
$schildschatten = $HTTP_GET_VARS['shieldshadow'];

$anz_smilie = -1;
$hdl = opendir("./smilie_creator/images/smilies/schild/");
while($res = readdir($hdl)){
if(strtolower(substr($res, (strlen($res) - 3), 3)) == "png") $anz_smilie++;
}
closedir($hdl);


if($phpversion_nr >= 4.30) $gd_info = gd_info();
else{
$gd_info["FreeType Support"] = 1;
}

if((!$gd_info["FreeType Support"]) || (!file_exists($schriftdatei))){
$schriftwidth = 6;
$schriftheight = 8;
}else{
if((!$schriftheight) || (!$schriftwidth)){
$schriftwidth = imagefontwidth($schriftdatei);
$schriftheight = imagefontheight($schriftdatei);
}
}
$schriftheight += 2;


if(!$text) $text = $_GET["text"];
$text = stripslashes($text);
$text = str_replace("<","<",$text);
$text = str_replace(">",">",$text);

while(substr_count($text, "<")){
$text = ereg_replace(substr($text, strpos($text, "<"), (strpos($text, ">") - strpos($text, "<") + 1)), "", $text);
}

if(!$text) $text = $lang['SC_error'];

if(strlen($text) > 33){
$worte = split(" ", $text);

if(is_array($worte)){
$i = 0;
foreach($worte as $wort){
if((strlen($output[$i]." ".$wort) < 33) && (!substr_count($wort, "[SM"))){
$output[$i] .= " ".$wort;
}else{
if($i <= 11){
if($zeichenzahl < strlen($output[$i])) $zeichenzahl = strlen($output[$i]);
$i++;
$output[$i] = $wort;
}
}
}
}else{
$zeichenzahl = 33;
$output[0] = substr($text, 0, 30)."...";
}
}else{
$zeichenzahl = strlen($text);
$output[0] = $text;
}

if(count($output) > 12) $output[12] = substr($output[12], 0, 30)."...";

$width = ($zeichenzahl * $schriftwidth) + 6;
$height = (count($output) * $schriftheight) + 34;
if($width < 60) $width = 60;

mt_srand((double)microtime()*3216549);
if($smilie == "random") $smilie = mt_rand(1,$anz_smilie);
if(!$smilie){
if($std_smilie) $smilie = $std_smilie;
else $smilie = mt_rand(1,$anz_smilie);
}


$smilie = imagecreatefrompng("./smilie_creator/images/smilies/schild/smilie".$smilie.".png");
$schild = imagecreatefrompng("./smilie_creator/images/smilies/schild/schild.png");
$img = imagecreate($width,$height);

$bgcolor = imagecolorallocate ($img, 111, 252, 134);
$txtcolor = imagecolorallocate ($img, hexdec(substr(str_replace("#","",$schriftfarbe),0,2)), hexdec(substr(str_replace("#","",$schriftfarbe),2,2)), hexdec(substr(str_replace("#","",$schriftfarbe),4,2)));
$txt2color = imagecolorallocate ($img, hexdec(substr(str_replace("#","",$schattenfarbe),0,2)), hexdec(substr(str_replace("#","",$schattenfarbe),2,2)), hexdec(substr(str_replace("#","",$schattenfarbe),4,2)));
$bocolor = imagecolorallocate ($img, 0, 0, 0);
$schcolor = imagecolorallocate ($img, 255, 255, 255);
$schatten1color = imagecolorallocate ($img, 235, 235, 235);
$schatten2color = imagecolorallocate ($img, 219, 219, 219);

$smiliefarbe = imagecolorsforindex($smilie, imagecolorat($smilie, 5, 14));

imagesetpixel($schild, 1, 14, imagecolorallocate($schild, ($smiliefarbe["red"] + 52), ($smiliefarbe["green"] + 59), ($smiliefarbe["blue"] + 11)));
imagesetpixel($schild, 2, 14, imagecolorallocate($schild, ($smiliefarbe["red"] + 50), ($smiliefarbe["green"] + 52), ($smiliefarbe["blue"] + 50)));
imagesetpixel($schild, 1, 15, imagecolorallocate($schild, ($smiliefarbe["red"] + 50), ($smiliefarbe["green"] + 52), ($smiliefarbe["blue"] + 50)));
imagesetpixel($schild, 2, 15, imagecolorallocate($schild, ($smiliefarbe["red"] + 22), ($smiliefarbe["green"] + 21), ($smiliefarbe["blue"] + 35)));
imagesetpixel($schild, 1, 16, imagecolorat($smilie, 5, 14));
imagesetpixel($schild, 2, 16, imagecolorat($smilie, 5, 14));
imagesetpixel($schild, 5, 16, imagecolorallocate($schild, ($smiliefarbe["red"] + 22), ($smiliefarbe["green"] + 21), ($smiliefarbe["blue"] + 35)));
imagesetpixel($schild, 6, 16, imagecolorat($smilie, 5, 14));
imagesetpixel($schild, 5, 15, imagecolorallocate($schild, ($smiliefarbe["red"] + 52), ($smiliefarbe["green"] + 59), ($smiliefarbe["blue"] + 11)));
imagesetpixel($schild, 6, 15, imagecolorallocate($schild, ($smiliefarbe["red"] + 50), ($smiliefarbe["green"] + 52), ($smiliefarbe["blue"] + 50)));


imagecopy ($img, $schild, ($width / 2 - 3), 0, 0, 0, 6, 4); // Bildteil kopieren
imagecopy ($img, $schild, ($width / 2 - 3), ($height - 24), 0, 5, 9, 17); // Bildteil kopieren
imagecopy ($img, $smilie, ($width / 2 + 6), ($height - 24), 0, 0, 23, 23); // Bildteil kopieren

imagefilledrectangle($img, 0, 4, $width, ($height - 25), $bocolor);
imagefilledrectangle($img, 1, 5, ($width - 2), ($height - 26), $schcolor);

if($schildschatten){
imagefilledpolygon($img, array((($width - 2) / 2 + ((($width - 2) / 4) - 3)), 5, (($width - 2) / 2 + ((($width - 2) / 4) + 3)), 5, (($width - 2) / 2 - ((($width - 2) / 4) - 3)), ($height - 26), (($width - 2) / 2 - ((($width - 2) / 4) + 3)), ($height - 26)), 4, $schatten1color);
imagefilledpolygon($img, array((($width - 2) / 2 + ((($width - 2) / 4) + 4)), 5, ($width - 2), 5, ($width - 2), ($height - 26), (($width - 2) / 2 - ((($width - 2) / 4) - 4)), ($height - 26)), 4, $schatten2color);
}

$i = 0;
while($i < count($output)){
if(((!$gd_info["FreeType Support"]) || (!file_exists($schriftdatei)))){
if($schattenfarbe) imagestring($img, 2, (($width - (strlen(trim($output[$i])) * $schriftwidth) - 2) / 2 + 1), ($i * $schriftheight + 6), trim($output[$i]), $txt2color);
imagestring($img, 2, (($width - (strlen(trim($output[$i])) * $schriftwidth) - 2) / 2), ($i * $schriftheight + 5), trim($output[$i]), $txtcolor);
}else{
if($schattenfarbe) imagettftext($img, $schriftheight, 0, (($width - (strlen(trim($output[$i])) * $schriftwidth) - 2) / 2 + 1), ($i * $schriftheight + $schriftheight + 4), $txt2color, $schriftdatei, trim($output[$i]));
imagettftext($img, $schriftheight, 0, (($width - (strlen(trim($output[$i])) * $schriftwidth) - 2) / 2), ($i * $schriftheight + $schriftheight + 3), $txtcolor, $schriftdatei, trim($output[$i]));
}
$i++;
}


imagecolortransparent($img, $bgcolor); // Dummybg als transparenz setzen
imageinterlace($img, 1);

header("Content-Type: image/png");
Imagepng($img); // 100 = komprimierung
ImageDestroy($img);
ImageDestroy($schild);
ImageDestroy($smilie);
?>
Meine Signatur war zu groß und wurde deshalb gelöscht - Siehe phpBB.de-Knigge
Antworten

Zurück zu „phpBB 2.0: Mod Support“