|
|
Latest News |
Latest Threads |
|
 |
55.476 Posts & 4.945 Themen in 78 Foren |
|
|
|
 |
Forensuche |
|
Suchbegriff |
Benutzerauswahl |
Ergebnisse anzeigen |
 |
 |
Blog ? 27 Beiträge in diesem Thema |
|
|
 |
|
 |
17.03.2013 - 09:31 Uhr |
|
|
|
Versuch es mal wie folgt:
Suche das:
| PHP-Quelltext $loopText =substr(strip_tags($loopText), 0, $pkCFG_cut); | |
Und mache daraus das:
| PHP-Quelltext $loopText =substr($loopText, 0, $pkCFG_cut); | |
Sollte der eine oder andere Smile nicht angezeigt werden, dann könntest ja noch diese Änderung einbauen:
Thread :: Content allgemein Smilie Problem im ACP News, Artikel, Links
|
|
|
|
|
|
|
 |
|
 |
17.03.2013 - 18:49 Uhr |
|
|
|
Und in welcher Datei steht das?
In der blogArticle.php finde ich es nicht.
EDIT: Min Notepad hat es erst nicht gefunden. Erst beim dritten Versuch konnte er es finden.
Danke. Wie immer klappt es .
|
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von Nueschtmanescht - 17.03.2013 - 18:59 Uhr |
|
|
|
|
|
|
|
 |
|
 |
03.04.2013 - 18:37 Uhr |
|
|
|
Hallo
Da bin ich schon wieder....
....mit noch einer Frage zu meinem kleinen Blog.
Ist es möglich dass wenn ich Bilder einfüge, diese dann in der Startseite als Thumb angezeigt werden? In einer Grösse die ich frei wählen kann? Z.B in der Grösse von max.150 x 150 pix oder 120 x 120 pix.
|
|
|
|
|
|
|
 |
|
 |
05.04.2013 - 21:31 Uhr |
|
|
|
Na klar ist das Möglich - wobei nur eine Einstellung für alle Bilder dann gelten würde.
- pkinc/public/blogArticle.php
- Öffne o.g. Datei und suche in etwa das (die Zahlen müssen nicht stimmen):
| PHP-Quelltext $pkCFG_catID=2;
$pkCFG_limit=5;
$pkCFG_cut =500; | |
Und füge darunter das ein:
| PHP-Quelltext $pkCFG_iX =50;
$pkCFG_iY =50; | |
Diese zwei neuen Variablen sind für die Bilder-Größe:
- $pkCFG_iX steht für die maximale Bild-Breite
- $pkCFG_iY steht für die maximale Bild-Höhe
Alles über eines der beiden Werte wird dann runterscaliert, proportional zum Bild.
- Suche weiter:
| PHP-Quelltext unset(
$pkBA_style
); | |  |
Und füge darunter das ein:
Hier klicken zum aufklappen 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | | PHP-Quelltext if (!function_exists('imageResize'))
{
function imageResize($rText='', $maxX='', $maxY='')
{
if (!isset($rText) || !is_string($rText) || trim($rText)=='')
{
return;
}
$rText =trim($rText);
$rMatch =array();
preg_match_all('#\<img(.*)src=\"([a-zA-Z0-9\.\-\_].*)\".*\>#isuSU', $rText, $rMatch);
$maxX
=
isset ($maxX)
&& is_numeric($maxX)
&& trim ($maxX)!=''
? intval ($maxX)
: 50
;
$maxY
=
isset ($maxY)
&& is_numeric($maxY)
&& trim ($maxY)!=''
? intval ($maxY)
: 50
;
if (isset($rMatch[2]) && is_array($rMatch[2]) && count($rMatch[2]) > 0)
{
$rPos =
$rImage =NULL;
$rArray =array();
$rX =
$rY =
$pX =NULL;
$pY =
$percent=
$imageX =
$imageY =0;
foreach ($rMatch[2] as $rPos=>$rImage)
{
$rImage =trim($rImage);
$rArray =getimagesize($rImage);
$rX =intval($rArray[0]);
$rY =intval($rArray[1]);
$pX =$maxX * 100 / $rX;
$pY =$maxY * 100 / $rY;
$percent
=
$pX <= $pY
? $pX
: $pY
;
$percent =$percent / 100;
$imageX =number_format($rX * $percent, 0, ',', '.');
$imageY =number_format($rY * $percent, 0, ',', '.');
$rText
=
isset($rMatch[1][$rPos])
&& trim ($rMatch[1][$rPos])!=''
? str_replace($rMatch[1][$rPos], $rMatch[1][$rPos].'width="'.$imageX.'" height="'.$imageY.'" ', $rText)
: $rText
;
}
unset(
$rPos,
$rImage,
$rArray,
$rX,
$rY,
$pX,
$pY,
$percent,
$imageX,
$imageY
);
}
return
$rText
;
}
}
if (!function_exists('replaceTags'))
{
function replaceTags($rText='', $rPattern='')
{
if (!isset($rText) || !is_string($rText) || trim($rText)=='')
{
return NULL;
}
if (!isset($rPattern) || !is_string($rPattern) || trim($rPattern)=='')
{
return NULL;
}
$rText =trim($rText);
$rPattern =trim($rPattern);
$rMatch =
$tReplace =
$tOpen =
$tClose =array();
preg_match_all('#'.$rPattern.'#isuSU', $rText, $rMatch);
if (isset($rMatch[1]) && is_array($rMatch[1]) && count($rMatch[1]) > 0)
{
$tagOpen =NULL;
foreach ($rMatch[1] as $tagOpen)
{
$tagOpen
=strtolower(trim($tagOpen));
if ($tagOpen=='')
{
continue;
}
$tOpen[preg_replace('#\[(.*)\]#i', '\\1', $tagOpen)][]
=0;
}
unset(
$tagOpen
);
}
if (isset($rMatch[2]) && is_array($rMatch[2]) && count($rMatch[2]) > 0)
{
$tagClose =NULL;
foreach ($rMatch[2] as $tagClose)
{
$tagClose
=strtolower(trim($tagClose));
if ($tagClose=='')
{
continue;
}
$tClose[preg_replace('#\[(.*)\]#i', '\\1', $tagClose)][]
=0;
}
unset(
$tagClose
);
}
$tagOpen =NULL;
$tagArray =NULL;
foreach ($tOpen as $tagOpen=>$tagArray)
{
if (stristr($rPattern, '<') && count($tClose)===0)
{
$rText =preg_replace('#\<'.$tagOpen.'([^ ])#isuSU', '\\1', $rText);
continue;
}
if (count($tagArray)===count($tClose['/'.$tagOpen]))
{
continue;
}
$tReplace[]
=
'[/'.$tagOpen.']'
;
}
unset(
$rPattern,
$rMatch,
$tOpen,
$tClose,
$tagOpen,
$tagArray
);
krsort($tReplace);
$rText =$rText.implode(NULL, $tReplace);
return
$rText
;
}
} | |  |
- Suche weiter:
| PHP-Quelltext $loopText =$BBCODE->parse($pkBA_loopContent['content_text'], intval($pkBA_loopContent['content_html']), intval($pkBA_loopContent['content_ubb']), intval($pkBA_loopContent['content_smilies']), 1);
if (isset($pkCFG_cut) && $pkCFG_cut > 0)
{
$loopText =substr($loopText, 0, $pkCFG_cut);
$loopText =preg_replace('#\[([a-zA-Z0-9]|[\/a-zA-Z0-9]).+\]#iU', NULL, $loopText).' ..';
$loopText =$loopText.' - <a title="den ganzen Blog-Eintrag lesen" href="'.pkLink('article', '', 'contentid='.$loopID).'">mehr</a>';
} | |  |
Und ersetze es hiermit:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | | PHP-Quelltext $loopText =trim($pkBA_loopContent['content_text']);
if (isset($pkCFG_cut) && $pkCFG_cut > 0)
{
$loopText =substr($loopText, 0, $pkCFG_cut);
$loopText =replaceTags($loopText, '(\[[a-zA-Z0-9].*\])|(\[\/[a-zA-Z0-9].*\])');
$loopText =replaceTags($loopText, '\<([a-zA-Z0-9\"\=\-\.\;\:].*)');
}
$loopText =$BBCODE->parse($loopText, intval($pkBA_loopContent['content_html']), intval($pkBA_loopContent['content_ubb']), intval($pkBA_loopContent['content_smilies']), 1);
if (isset($pkCFG_iX) && isset($pkCFG_iY) && $pkCFG_iX > 0 && $pkCFG_iY > 0)
{
$loopText =imageResize($loopText, intval($pkCFG_iX), intval($pkCFG_iY));
}
if (isset($pkCFG_cut) && $pkCFG_cut > 0)
{
$loopText =$loopText.' :: <a title="den ganzen Blog-Eintrag lesen" href="'.pkLink('article', '', 'contentid='.$loopID).'">mehr</a>';
} | |
- Suche weiter:
| PHP-Quelltext unset(
$pkCFG_catID,
$pkCFG_limit,
$pkCFG_cut, | |
Und füge darunter das ein:
| PHP-Quelltext $pkCFG_iX,
$pkCFG_iY, | |
Wenn das zuviel Arbeit ist  - hier nochmal der komplette Code:
Hier klicken zum aufklappen   1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 | | PHP-Quelltext <?php
$pkCFG_catID=2;
$pkCFG_limit=5;
$pkCFG_cut =500;
$pkCFG_iX =50;
$pkCFG_iY =50;
if (!defined('pkFRONTEND') || pkFRONTEND!=='public')
{
die('Direct access to this location is not permitted.');
}
pkLoadClass($BBCODE, 'bbcode');
$pkBA_style
=
intval(pkGetConfig('user_design'))===1
&& intval(pkGetUservalue('design')) > 0
? intval(pkGetUservalue('design'))
: intval(pkGetConfig('site_style'))
;
$style =$SQL->fetch_assoc($SQL->query("SELECT * FROM ".pkSQLTAB_STYLE." WHERE style_id='".$SQL->f($pkBA_style)."' LIMIT 1"));
unset(
$pkBA_style
);
if (!function_exists('imageResize'))
{
function imageResize($rText='', $maxX='', $maxY='')
{
if (!isset($rText) || !is_string($rText) || trim($rText)=='')
{
return;
}
$rText =trim($rText);
$rMatch =array();
preg_match_all('#\<img(.*)src=\"([a-zA-Z0-9\.\-\_].*)\".*\>#isuSU', $rText, $rMatch);
$maxX
=
isset ($maxX)
&& is_numeric($maxX)
&& trim ($maxX)!=''
? intval ($maxX)
: 50
;
$maxY
=
isset ($maxY)
&& is_numeric($maxY)
&& trim ($maxY)!=''
? intval ($maxY)
: 50
;
if (isset($rMatch[2]) && is_array($rMatch[2]) && count($rMatch[2]) > 0)
{
$rPos =
$rImage =NULL;
$rArray =array();
$rX =
$rY =
$pX =NULL;
$pY =
$percent=
$imageX =
$imageY =0;
foreach ($rMatch[2] as $rPos=>$rImage)
{
$rImage =trim($rImage);
$rArray =getimagesize($rImage);
$rX =intval($rArray[0]);
$rY =intval($rArray[1]);
$pX =$maxX * 100 / $rX;
$pY =$maxY * 100 / $rY;
$percent
=
$pX <= $pY
? $pX
: $pY
;
$percent =$percent / 100;
$imageX =number_format($rX * $percent, 0, ',', '.');
$imageY =number_format($rY * $percent, 0, ',', '.');
$rText
=
isset($rMatch[1][$rPos])
&& trim ($rMatch[1][$rPos])!=''
? str_replace($rMatch[1][$rPos], $rMatch[1][$rPos].'width="'.$imageX.'" height="'.$imageY.'" ', $rText)
: $rText
;
}
unset(
$rPos,
$rImage,
$rArray,
$rX,
$rY,
$pX,
$pY,
$percent,
$imageX,
$imageY
);
}
return
$rText
;
}
}
if (!function_exists('replaceTags'))
{
function replaceTags($rText='', $rPattern='')
{
if (!isset($rText) || !is_string($rText) || trim($rText)=='')
{
return NULL;
}
if (!isset($rPattern) || !is_string($rPattern) || trim($rPattern)=='')
{
return NULL;
}
$rText =trim($rText);
$rPattern =trim($rPattern);
$rMatch =
$tReplace =
$tOpen =
$tClose =array();
preg_match_all('#'.$rPattern.'#isuSU', $rText, $rMatch);
if (isset($rMatch[1]) && is_array($rMatch[1]) && count($rMatch[1]) > 0)
{
$tagOpen =NULL;
foreach ($rMatch[1] as $tagOpen)
{
$tagOpen
=strtolower(trim($tagOpen));
if ($tagOpen=='')
{
continue;
}
$tOpen[preg_replace('#\[(.*)\]#i', '\\1', $tagOpen)][]
=0;
}
unset(
$tagOpen
);
}
if (isset($rMatch[2]) && is_array($rMatch[2]) && count($rMatch[2]) > 0)
{
$tagClose =NULL;
foreach ($rMatch[2] as $tagClose)
{
$tagClose
=strtolower(trim($tagClose));
if ($tagClose=='')
{
continue;
}
$tClose[preg_replace('#\[(.*)\]#i', '\\1', $tagClose)][]
=0;
}
unset(
$tagClose
);
}
$tagOpen =NULL;
$tagArray =NULL;
foreach ($tOpen as $tagOpen=>$tagArray)
{
if (stristr($rPattern, '<') && count($tClose)===0)
{
$rText =preg_replace('#\<'.$tagOpen.'([^ ])#isuSU', '\\1', $rText);
continue;
}
if (count($tagArray)===count($tClose['/'.$tagOpen]))
{
continue;
}
$tReplace[]
=
'[/'.$tagOpen.']'
;
}
unset(
$rPattern,
$rMatch,
$tOpen,
$tClose,
$tagOpen,
$tagArray
);
krsort($tReplace);
$rText =$rText.implode(NULL, $tReplace);
return
$rText
;
}
}
$pkBA_queryContent
=
"
SELECT
content_id,
content_title,
content_time,
content_text,
content_html,
content_ubb,
content_smilies,
content_teaser,
contentcat_id,
contentcat_name,
contentcat_symbol
FROM
".pkSQLTAB_CONTENT."
LEFT JOIN
".pkSQLTAB_CONTENT_CATEGORY."
ON
".pkSQLTAB_CONTENT_CATEGORY.".contentcat_id
=
".pkSQLTAB_CONTENT.".content_cat
WHERE
content_option='1'
AND
content_status='1'
AND
content_option='1'
".(isset($pkCFG_catID) && !empty($pkCFG_catID) && intval($pkCFG_catID) > 0 ? 'AND content_cat=\''.$SQL->f(intval($pkCFG_catID)).'\'' : NULL)."
AND
(
content_expire > '".pkTIME."'
OR
content_expire='0'
)
AND
content_time < '".pkTIME."'
AND
".sqlrights('contentcat_rights')."
ORDER by
content_time DESC
LIMIT
".(isset($pkCFG_limit) && !empty($pkCFG_limit) && intval($pkCFG_limit) > 0 ? $SQL->f(intval($pkCFG_limit)) : 5)."
"
;
$pkBA_queryContent =trim($pkBA_queryContent);
$pkBA_queryContent =$SQL->query($pkBA_queryContent);
$loopID =0;
$loopTitle =
$loopText =NULL;
$loopTime =
$loopCatID =0;
$loopCatName =NULL;
$loopTeaser =
$loopCatIcon =
$loopImage =NULL;
$site_body.='
<style type="text/css">
#blogArticle
{
background: #'.$style['tdstandardbgcolor'].'; /* Hauptinhaltsbereich (Sonstiges) :: Tabellenzelle "Standard" */
border: 1px solid #'.$style['tablebgcolor'].'; /* Hauptinhaltsbereich (Sonstiges) :: Tabellenhintergrundfarbe */
position: relative;
margin: auto auto 10px auto;
padding: 5px;
}
#blogArticle #title
{
border-bottom: 1px solid #'.$style['tablebgcolor'].'; /* Hauptinhaltsbereich (Sonstiges) :: Tabellenhintergrundfarbe */
font-size: '.$style['tdheadsfontsize'].'px; /* Hauptinhaltsbereich (Überschriften / Tabellenköpfe) :: Schriftgröße */
font-family: '.$style['tdheadsfont'].'; /* Hauptinhaltsbereich (Überschriften / Tabellenköpfe) :: Schriftart */
position: relative;
padding-bottom: 7px;
margin-bottom: 20px;
z-index: 5;
}
#blogArticle #time
{
background: #'.$style['tdstandardbgcolor'].'; /* Hauptinhaltsbereich (Sonstiges) :: Tabellenzelle "Standard" */
font-size: '.$style['tdfontsize'].'px; /* Hauptinhaltsbereich (Sonstiges) :: Schriftgröße */
font-weight: normal;
margin: 0px;
padding: 0px 5px;
position: absolute;
top: '.($style['tdfontsize'] + 7).'px; /* Hauptinhaltsbereich (Sonstiges) :: Schriftgröße + 7 */
left: 15px;
z-index: 10;
}
#blogArticle #content
{
color: #'.$style['tdfontcolor'].'; /* Hauptinhaltsbereich (Sonstiges) :: Textfarbe */
padding: 5px 10px;
}
#blogArticle #image
{
float: right;
position: relative;
z-index: 10;
}
</style>
';
unset(
$style
);
while ($pkBA_loopContent=$SQL->fetch_assoc($pkBA_queryContent))
{
$loopID =intval($pkBA_loopContent['content_id']);
$loopTitle =pkEntities($pkBA_loopContent['content_title']);
$loopTitle =pkStringCut($loopTitle, 35);
$loopTime =pkTimeFormat($pkBA_loopContent['content_time']).' Uhr';
$loopText =trim($pkBA_loopContent['content_text']);
if (isset($pkCFG_cut) && $pkCFG_cut > 0)
{
$loopText =substr($loopText, 0, $pkCFG_cut);
$loopText =replaceTags($loopText, '(\[[a-zA-Z0-9].*\])|(\[\/[a-zA-Z0-9].*\])');
$loopText =replaceTags($loopText, '\<([a-zA-Z0-9\"\=\-\.\;\:].*)');
}
$loopText =$BBCODE->parse($loopText, intval($pkBA_loopContent['content_html']), intval($pkBA_loopContent['content_ubb']), intval($pkBA_loopContent['content_smilies']), 1);
if (isset($pkCFG_iX) && isset($pkCFG_iY) && $pkCFG_iX > 0 && $pkCFG_iY > 0)
{
$loopText =imageResize($loopText, intval($pkCFG_iX), intval($pkCFG_iY));
}
if (isset($pkCFG_cut) && $pkCFG_cut > 0)
{
$loopText =$loopText.' :: <a title="den ganzen Blog-Eintrag lesen" href="'.pkLink('article', '', 'contentid='.$loopID).'">mehr</a>';
}
$loopCatID =intval($pkBA_loopContent['contentcat_id']);
$loopCatName=trim(stripslashes($pkBA_loopContent['contentcat_name']));
$loopTeaser =trim(stripslashes($pkBA_loopContent['content_teaser']));
$loopCatIcon=trim(stripslashes($pkBA_loopContent['contentcat_symbol']));
if ($loopCatIcon!='' && $loopCatIcon!=='blank.gif' && is_file('images/catimages/'.$loopCatIcon))
{
$loopImage ='images/catimages/'.$loopCatIcon;
}
if ($loopTeaser!='' && is_file($loopTeaser))
{
$loopImage =$loopTeaser;
}
$loopImage
=
$loopImage===NULL
? 'images/catimages/blank.gif'
: $loopImage
;
$site_body.='
<div id="blogArticle">
<div id="image"><a title="Gehe zur Übersicht von \''.$loopCatName.'\'" href="'.pkLink('contentarchive', '', 'catid='.$loopCatID).'"><img src="'.$loopImage.'" border="0" alt="'.$loopCatName.'""></a></div>
<div id="title"><a href="'.pkLink('article', '', 'contentid='.$loopID).'">'.$loopTitle.'</a></div>
<div id="time">'.$loopTime.'</div>
<div id="content">
'.$loopText.'
</div>
</div>
';
}
unset(
$pkCFG_catID,
$pkCFG_limit,
$pkCFG_cut,
$pkCFG_iX,
$pkCFG_iY,
$pkBA_queryContent,
$loopID,
$loopTitle,
$loopText,
$loopTime,
$loopCatID,
$loopCatName,
$loopTeaser,
$loopCatIcon,
$loopImage,
$BBCODE
);
?> | |  |
Hier ist einmal die Bilder-Skalierung mit drin, sowie ein kleiner Fix bzgl. der Textkürzung. Und zwar werden jetzt angefangene BB-Codes, die nach der Textkürzung ihr Gegenstück, ihr Ende, verloren haben, wieder geschloßen. Beispielweise ein Text ist fett formatiert, aber mittendrin abgeschnitten (durch die Textkürzung). Normalerweise würde dann die Formatierung ohne Ende weiter gehen, da kein Ende vorhanden ist. Dieser Fix behebt das (zumindest tat er dies bei mir  ). Das selbe gilt (bzw. soll ^^") auch für HTML-Code gelten. Wenn ein HTML-Code abgeschnitten ist, soll er entfernt werden - bei mir lief es ganz gut, bin mir aber sicher, das es ggf. eine Variante gibt, die dann nicht greift .. Was solls
Wenn was nicht mögen mag .. Ich war's nicht 
|
|
|
|
|
|
|
 |
|
 |
06.04.2013 - 18:54 Uhr |
|
|
|
Hallo k!r!ka
Der komplette Code hat nicht funktioniert. Da wird einfach nichts angezeigt.
Dann hab ich alles einzeln gemacht und es geht.
Ob jetzt das Fix mit der BB Textkürzung drin ist .......keine Ahnung.
Auf jeden Fall danke.
Übrigends, wechselst du jeden Tag dein Avatar? 
|
|
|
|
|
|
|
 |
|
 |
06.04.2013 - 19:00 Uhr |
|
|
|
Beim kompletten Code, also den letzten Part im Klapptext aus meinen Post, sind meine Konfigurationen drin. Sprich die Kategorie-ID von meinen Testkit. Die hättest du bei dir einfach wieder auf den alten Stand bringen müssen - dann würde auch was angezeigt ;o
Ob du nun den kompletten Code oder die einzelnen Änderungen genommen hast - sind beide identisch (bis auf kompletten Code bzgl. der Konfiguration ganz oben in den ersten paar Zeilen).
Und nein, aber das Bild hatte einfach sowas von Klasse, das musste rein 
|
|
|
|
|
|
|
 |
|
 |
12.04.2013 - 16:49 Uhr |
|
|
|
Hat super funktioniert.
Danke
|
|
|
|
|
|
|
 |
|
 |
14.04.2013 - 21:15 Uhr |
|
|
|
Das ist wegen der Textkürzung. Der Fix von weiter oben sollte angefangende BB-Codes auch beenden - deswege das img in klein. Wäre das nicht beendet wurden, würde der Link mehr vielleicht gar nicht gehen. In diesen Fall, natürlich etwas blöde, wurde der Bilderpfad gekürzt
Bildpfad korrekt:
| Quellcode images/galerie/pics/7638_v-verdun.JPG | |
Nach der Kürzung:
| Quellcode images/galerie/pics/7638_v-verdun | |
Sprich, 4 Zeichen fehlen. Am einfachsten wäre es, wenn du einfach 4 Zeichen mehr zulässt. Ansonsten kann ich ja mal gucken, ob man da noch was (brauchbares) machen kann 
|
|
|
|
|
|
|
 |
|
 |
15.04.2013 - 21:02 Uhr |
|
|
|
Hallo
Ich habe das Bild nochmals hochgeladen, diesmal in den normalen Bilderordner.. es funzte nicht.
Dann habe ich das Bild nochmals hochgeladen aber die Klammern im Bildernamen weggelassen, anstatt "content/images/v-verdun(42).JPG" nun "content/images/v-verdun42.JPG" und komischerweise geht es nun.
Nun gut das heisst, das Bild nicht dahinsetzen wo gerade der "Umbruch" gemacht wird und anderseite dürfen keine Klammern im Bildnamen vorhanden sein.
Nun da ich meine Bilder immer mit Mickysoft durchnummerieren lasse und das jedesmal Klammern setzt, brauche ich nun ein Prog. welches die Bilder auch neu nach Datum und Uhrzeit durchnummeriert ohne Klammern zu setzen.
Kennst du so ein Programm?
|
|
|
|
|
|
|
 |
|
 |
15.04.2013 - 21:20 Uhr |
|
|
|
Ich denke, der Bildname war so?
| Quellcode 7638_v-verdun.JPG | |
Jetzt ist es auf einmal so?
| Quellcode v-verdun(42).JPG | |
Nochmal:
WENN der Bildpfad am Ende der Kürzung ansich noch Vollständig ist, dann wird das Bild angezeigt, da der angefangene BB-Code (in diesen Fall img) am Ende automatisch beendet. Sollte der Bildpfad durch die Kürzung verunstaltet worden sein, dann ist das Bild am Ende natürlich nicht da, da der Pfad ja nicht mehr stimmt.
Es ist also vollkommen gleich, ob du im Bildnamen irgendwelche Klammern benutzt. Solange die Kürzung nicht zu weit geht und am Bildpfad herumschneidet wird das Bild am Ende angezeigt.
|
|
|
|
|
|
|
 |
WEBI Unberechenbares Urgestein |
 |
|
|
|
|
|
|
|
|
 |
15.04.2013 - 21:26 Uhr |
|
|
|
Es empfiehlt sich also $pkCFG_cut dementsprechend einzustellen. +/-
Das halte ich pers. in der Serversektion (Hallelujah was alles offline ist *hust) nicht anders mit der "Letzten News" - nach jeder News schraube ich an meinem Cutstring herum - nun könnte man sich wie wild auf die Suche nach einer Lösung machen - doch wenn man pingelig* ist (wie ich) nützt einem diese auch nichts. Also, schraub die Anzahl der Zeichen hoch/runter.
Wie k!r!ka es bereits vor 2(3) Beiträgen erwähnte. 
* Da die Buchstaben bei der etwaigen Font eine unterschiedliche Breite/Dichte haben.
Vielleicht sollte ich mal eine andere Font in Erwägung ziehen. ^^
|
|
|
|
|
|
|
 |
Ähnliche Themen |
|
|
|
|
|
|
|
|