Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 10:55 am EDT
Geeklog Forums
Image Padding with News Stories.
Aerocream
Anonymous
I didn't like how Geeklog Stories and Images worked so I added some padding to when you submit a story. Below is the modifed code with the padding style hard coded. Just Change the Following in the Story.php file in the ADMIN directory.. Line 874 to be exact... Let me know how it works out for you.. Good Luck
$body = str_replace($norm, $lLinkPrefix . '<img ' . $sizeattributes . 'src="' . $imgSrc . '" alt="" style="padding: 5px 5px 5px 5px;">' . $lLinkSuffix, $body);
$intro = str_replace($left, $lLinkPrefix . '<img ' . $sizeattributes . 'align="left" src="' . $imgSrc . '" alt="" style="padding: 0px 10px 5px 0px;">' . $lLinkSuffix, $intro);
$body = str_replace($left, $lLinkPrefix . '<img ' . $sizeattributes . 'align="left" src="' . $imgSrc . '" alt="" style="padding: 0px 10px 5px 0px;">' . $lLinkSuffix, $body);
$intro = str_replace($right, $lLinkPrefix . '<img ' . $sizeattributes . 'align="right" src="' . $imgSrc . '" alt="" style="padding: 0px 0px 5px 10px;">' . $lLinkSuffix, $intro);
$body = str_replace($right, $lLinkPrefix . '<img ' . $sizeattributes . 'align="right" src="' . $imgSrc . '" alt="" style="padding: 0px 0px 5px 10px;">' . $lLinkSuffix, $body);
Text Formatted Code
$intro = str_replace($norm, $lLinkPrefix . '<img ' . $sizeattributes . 'src="' . $imgSrc . '" alt="" style="padding: 5px 5px 5px 5px;">' . $lLinkSuffix, $intro);$body = str_replace($norm, $lLinkPrefix . '<img ' . $sizeattributes . 'src="' . $imgSrc . '" alt="" style="padding: 5px 5px 5px 5px;">' . $lLinkSuffix, $body);
$intro = str_replace($left, $lLinkPrefix . '<img ' . $sizeattributes . 'align="left" src="' . $imgSrc . '" alt="" style="padding: 0px 10px 5px 0px;">' . $lLinkSuffix, $intro);
$body = str_replace($left, $lLinkPrefix . '<img ' . $sizeattributes . 'align="left" src="' . $imgSrc . '" alt="" style="padding: 0px 10px 5px 0px;">' . $lLinkSuffix, $body);
$intro = str_replace($right, $lLinkPrefix . '<img ' . $sizeattributes . 'align="right" src="' . $imgSrc . '" alt="" style="padding: 0px 0px 5px 10px;">' . $lLinkSuffix, $intro);
$body = str_replace($right, $lLinkPrefix . '<img ' . $sizeattributes . 'align="right" src="' . $imgSrc . '" alt="" style="padding: 0px 0px 5px 10px;">' . $lLinkSuffix, $body);
2
1
Quote
All times are EDT. The time is now 10:55 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content