Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 04:26 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

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

 
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/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 04:26 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