Admin Eingabefelder bleiben Leer nach Update auf PHP 5,4
Verfasst: 19. Apr 2018, 14:59
Hi Gemeinde nach langem bin mal wieder hier und hab gleich ein Problem, die Eingabefelder in der Admin beim bearbeiten der Artikel sind leer seit PHP 5.4 (bei 5.3 geht es) hat da jemand eine Idee...? Ich war ja nie der Progger sondern mehr der Videoman
Die Server werden nun zwangsupgedatet.... ;(
Redaxo 4.21
Eingabe
Ausgabe
Bin für jede Hilfe dankbar...
LG Richy
Die Server werden nun zwangsupgedatet.... ;(
Redaxo 4.21
Eingabe
Code: Alles auswählen
<?php
// geht nur wenn das addon textile installiert ist
if(OOAddon::isAvailable('textile'))
{
?>
<strong>Text: Tooltip beim Link: "Linkname(Linktooltip)":redaxo//ID</strong><br/>
<textarea name="VALUE[1]" class="markitup-text" cols="80" rows="10">REX_VALUE[1]</textarea>
<?php
a287_markitup::markitup('textarea.markitup-text',
'h1,h2,h3,h4,h5,h6,separator,bold,italic,separator,listbullet,listnumeric,separator,intlink,extlink,separator,mailtolink,separator,filelink',
'540','380'
);
?>
<br />
<br />
<strong>Artikelfoto</strong>:<br />
REX_MEDIA_BUTTON[1]
<?php
$file = "";
if ("REX_FILE[1]" != "")
$file = '<img src="'.$REX['HTDOCS_PATH'].'index.php?rex_resize='.$width.'REX_FILE[1]" title="'."REX_VALUE[2]".'" alt="'."REX_VALUE[2]".'" />';
?>
<br />
<br />
<strong>Title des Fotos</strong>:<br />
<input type="text" name="VALUE[2]" value="REX_VALUE[2]" size="80" class="inp100" />
<br /><br />
<?php
//Werte beliebig anpassen
//muessen mit den Werten der Ausgabe übereinstimmen!
?>
<strong>Bildgrösse</strong>:<br />
<select name="VALUE[8]" class="inp100">
<option value='100'<? if ("REX_VALUE[8]" =='100') echo 'selected'; ?>>100px</option>
<option value='150'<? if ("REX_VALUE[8]" =='150') echo 'selected'; ?>>150px</option>
<option value='200'<? if ("REX_VALUE[8]" =='200') echo 'selected'; ?>>200px</option>
<option value='230'<? if ("REX_VALUE[8]" =='230') echo 'selected'; ?>>230px</option>
<option value='300'<? if ("REX_VALUE[8]" =='300') echo 'selected'; ?>>300px</option>
<option value='480'<? if ("REX_VALUE[8]" =='480') echo 'selected'; ?>>480px</option>
<option value='600'<? if ("REX_VALUE[8]" =='600') echo 'selected'; ?>>600px</option>
<option value='600c'<? if ("REX_VALUE[8]" =='600c') echo 'selected'; ?>>600c</option>
</select><br />
<br />
<br />
<strong>Ausrichtung des Artikelfotos</strong>:<br />
<select name="VALUE[9]" class="inp100">
<option value='l' <?php if ("REX_VALUE[9]" == 'l') echo 'selected'; ?>>links vom Text</option>
<option value='r' <?php if ("REX_VALUE[9]" == 'r') echo 'selected'; ?>>rechts vom Text</option>
<option value='o' <?php if ("REX_VALUE[9]" == 'o') echo 'selected'; ?>>oberhalb vom Text</option>
</select><br />
<br />
<br />
<strong>CSS class auswählen</strong>:<br />
<select name="VALUE[7]" class="inp100">
<option value='1' <?php if ("REX_VALUE[7]" == '1') echo 'selected'; ?>>style 1</option>
<option value='2' <?php if ("REX_VALUE[7]" == '2') echo 'selected'; ?>>style 2</option>
<option value='3' <?php if ("REX_VALUE[7]" == '3') echo 'selected'; ?>>style 3</option>
</select><br />
<?php
rex_a79_help_overview();
}
else
{
echo rex_warning('Dieses Modul benötigt das "textile" Addon!');
}
?>
Code: Alles auswählen
<?php
if(OOAddon::isAvailable('textile'))
{
// Ausrichtung des Bildes
$float ="";
if ("REX_VALUE[9]" == "l") $float = "floatLeft";
if ("REX_VALUE[9]" == "r") $float = "floatRight";
if ("REX_VALUE[9]" == "o") $float = "center";
// Grössenberechnungen
// Werte beliebig anpassen
// auf Uebereinstimmung mit der Eingabe achten!!
$width ="";
if ("REX_VALUE[8]" =="100") $width = "100w__";
if ("REX_VALUE[8]" =="150") $width = "150w__";
if ("REX_VALUE[8]" =="200") $width = "200w__";
if ("REX_VALUE[8]" =="300") $width = "300w__";
if ("REX_VALUE[8]" =="230") $width = "230w__";
if ("REX_VALUE[8]" =="480") $width = "480w__";
if ("REX_VALUE[8]" =="600") $width = "600w__";
if ("REX_VALUE[8]" =="600c") $width = "600c__250h__0o__";
// css classen
$text_box_class ="";
if ("REX_VALUE[7]" == "1") $text_box_class = "1";
if ("REX_VALUE[7]" == "2") $text_box_class = "2";
if ("REX_VALUE[7]" == "3") $text_box_class = "3";
echo '<div class="text_box'.$text_box_class.'">';
// Wenn Bild eingefuegt wurde, Code schreiben
$file = "";
if ("REX_FILE[1]" != "")
$file = '<img class="'.$float.'" src="'.$REX['HTDOCS_PATH'].'index.php?rex_resize='.$width.'REX_FILE[1]" title="'."REX_VALUE[2]".'" alt="'."REX_VALUE[2]".'" />';
$text =<<< EOT
REX_HTML_VALUE[1]
EOT;
$text = html_entity_decode($text);
if (trim($text) != "")
{
$textile = new Textile;
$text = $textile->TextileThis($text);
}
echo $file.$text;
echo '</div>';
}
else
{
echo rex_warning('Dieses Modul benötigt das textile Addon!');
}
?>
LG Richy