Welcome to Geeklog Sunday, August 09 2020 @ 10:46 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

PHP 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);

 
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 04/08/03
Posts: 1298
Just a hint: GL 1.4.1 with FCKeditor included will have flexible possibilities with padding of pics.
 Quote

All times are EDT. The time is now 10:46 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