collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 303
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Author Topic: Adjust RSS Feed block height?  (Read 22881 times)

0 Members and 1 Guest are viewing this topic.

Offline SMiller

  • Semi Newbie
  • *
  • Posts: 21
  • SMF Version: 2.0.9
  • SP Version: 2.3.6
Adjust RSS Feed block height?
« on: January 11, 2015, 10:00:10 PM »
Block type "RSS Feed"
Show title checked
Show content checked
Items to show: 5
Character limit: 180
Not Collapsible unchecked
Active checked
Show block on Portal
Is a Right-Block.
Default Title Class: catbg
Default Body Class: windowbg


It has a vertical scroll bar, which I don't want. I want it to show the entire contents of its block.

Is there any way to set it's height?

Thanks.
 ;D

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Adjust RSS Feed block height?
« Reply #1 on: January 12, 2015, 06:51:28 AM »
You have to insert the css height value that you want into the "Custom body style" box :)
Otherwise you can refer here if you want more complex results: http://simpleportal.net/index.php?topic=13732.0
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline SMiller

  • Semi Newbie
  • *
  • Posts: 21
  • SMF Version: 2.0.9
  • SP Version: 2.3.6
Re: Adjust RSS Feed block height?
« Reply #2 on: January 12, 2015, 11:19:12 PM »
Thanks Ninja...

but strangely, if I define a height for the RSS Feed type block... it only expands the height of the background, and the scroll bar maintains it's default (way too small for my needs) size. So only the top half of the block is the scrolling text, the bottom half is just empty background. See attached pic. Grr.
:(

ps. and it only lets me use px. I can't set the height by auto or %. Not a biggie, but hey.

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Adjust RSS Feed block height?
« Reply #3 on: January 13, 2015, 01:24:20 AM »
SMiller,

Instead of using a rss feed block, create a custom PHP block containing the following code:

Code: [Select]
// specs
$feed = 'http://mahjongtime.com/rss.aspx'; // rss feed url
$items = 5; // number of items to display
$max_chars = 500; // 0 for no description (only titles)

// rss class
class rss {
var $feed;

function rss($feed) {
$this->feed = $feed;
}

function parse($max_chars = 0) {
global $settings;
$rss = simplexml_load_file($this->feed);
$rss_split = array();
foreach ($rss->channel->item as $item) {
$title = (string) $item->title; // Title
$link   = (string) $item->link; // Url Link
$description = (string) $item->description; //Description
$description = !empty($max_chars) && strlen($description) > $max_chars ? substr($description, 0, ($max_chars - 3)) . '...' : (!empty($max_chars) ? $description : '');
$rss_split[] = '
<div style="border-bottom: 1px solid #DDD;padding: 3px;">
<span style="padding-top: 5px;">
<img src="' . $settings['default_theme_url'] . '/images/sp/post.png" alt="post" />
<a style="font-weight: bold;" href="'.$link.'" target="_blank" title="">' . $title . '</a>
</span>
<br />
<span>
' . $description . '
</span>
</div>';
}

return $rss_split;
}

function display($numrows, $max_chars = 0) {
$rss_split = $this->parse($max_chars);
$i = 0;
$rss_data = '
<div style="float:left; width:100%; padding:1px;">
<div style="text-align:left; padding:0px;">';
while ($i < $numrows) {
$rss_data .= $rss_split[$i];
$i++;
}

$trim = str_replace('', '', $this->feed);
$user = str_replace('&lang=en-us&format=rss_200','',$trim);
$rss_data.= '
</div>
</div>';
return $rss_data;
}
}

echo '<div>';
$feedlist = new rss($feed);
echo $feedlist->display(abs($items), abs($max_chars));
echo '</div>';

... change the specs to what you prefer.

Regards.

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Adjust RSS Feed block height?
« Reply #4 on: January 13, 2015, 02:01:35 AM »
I would have gone a different way but I guess that will work, too ;D
My way would have been to recode the block's css with the method described by SiNaN and put padding-bottom to force the content to stay lower than it is now. I am 99,99% sure it should work too since I did more or less the same things, myself. Either way as long as you are happy with the results, will be good :)
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline SMiller

  • Semi Newbie
  • *
  • Posts: 21
  • SMF Version: 2.0.9
  • SP Version: 2.3.6
Re: Adjust RSS Feed block height?
« Reply #5 on: January 13, 2015, 11:50:00 AM »
Instead of using a rss feed block, create a custom PHP block containing the following code:

Thanks Chen Zhen. I copy/pasted your entire code into a custom php block verbatim, and even double-checked the rss url, but it shows up as an empty block with just a title.

Maybe a minor syntax error or ?

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Adjust RSS Feed block height?
« Reply #6 on: January 13, 2015, 11:42:11 PM »
SMiller,

  That last code block was working for me without issue both on a local & live install.
No matter, try the PHP code below:

Code: [Select]
// specs
$feed = 'http://mahjongtime.com/rss.aspx'; // rss feed url
$items = 5; // number of items to display
$max_chars = 500; // 0 for no description (only titles)
$allow_tags = '<a>'; // allow HTML tags for rss post data (ie. hyperlinks)? format example: $allow_tags = '<a><p><div>';

// rss class
if (!class_exists('sportal_rss'))
{
class sportal_rss
{
var $feed;

function sportal_rss($xml)
{
$this->feed = $xml;
}

function sportal_parse($no_strip, $max_chars = 0)
{
global $settings;
$rss = simplexml_load_string($this->feed);
$rss_split = array();
foreach ($rss->channel->item as $item)
{
$title = (string)$item->title;
$link   = (string)$item->link;
$description = strip_tags((string)$item->description, $no_strip);
$description = !empty($max_chars) && strlen($description) > $max_chars ? substr($description, 0, ($max_chars - 3)) . '...' : (!empty($max_chars) ? $description : '');
$rss_split[] = '
<div style="border-bottom: 1px solid #DDD;padding: 3px;">
<span style="padding-top: 5px;">
<img src="' . $settings['default_theme_url'] . '/images/sp/post.png" alt="post" />
<a style="font-weight: bold;" href="' . preg_replace('/\s+/', '', $link) . '" target="_blank" title="">' . $title . '</a>
</span>
<br />
<span>
' . $description . '
</span>
</div>';
}

return $rss_split;
}

function sportal_display($no_strip, $numrows, $max_chars = 0)
{
$rss_split = $this->sportal_parse($no_strip, $max_chars);
$i = 0;
$rss_data = '
<div style="float:left; width:100%; padding:1px;">
<div style="text-align:left; padding:0px;">';
while ($i < $numrows)
{
$rss_data .= $rss_split[$i];
$i++;
}

$trim = str_replace('', '', $this->feed);
$user = str_replace('&lang=en-us&format=rss_200', '', $trim);
$rss_data.= '
</div>
</div>';
return $rss_data;
}
}
}

global $sourcedir, $modSettings, $context;
require_once($sourcedir . '/Subs-Package.php');
list($sportal_xml, $block_id, $no_strip) = array('', strtolower(preg_replace('~[^a-z0-9_]+~i', '_', $feed)), $allow_tags);
libxml_use_internal_errors();
if (($sportal_xml = cache_get_data('portalRss' . $block_id, 90)) == null)
{
$xml = fetch_web_data($feed) ? fetch_web_data($feed) : false;
$feedlist = new sportal_rss($xml);
$sportal_xml = '<div>' . $feedlist->sportal_display($no_strip, abs($items), abs($max_chars)) . '</div>';
if (!empty($modSettings['cache_enable']))
cache_put_data('portalRss' . $block_id, $sportal_xml, 90);
}

echo !empty($sportal_xml) ? $sportal_xml : '<div>Failed to recover XML/rss stream.</div>';

Changes:
  • uses SMF internal function to load external XML (rss) file
  • strips HTML tags from rss description (leaves opted tags intact)
  • cache data for 90 seconds if SMF cache setting is enabled (quicker page loads)
  • display error message if external file data is not loaded
  • checks if class has already been declared so that multiple blocks can be used on one page


« Last Edit: January 14, 2015, 12:24:07 AM by Chen Zhen »

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Adjust RSS Feed block height?
« Reply #7 on: January 14, 2015, 07:38:19 AM »
Heck, just a congratz for that Chen Zhen!
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline SMiller

  • Semi Newbie
  • *
  • Posts: 21
  • SMF Version: 2.0.9
  • SP Version: 2.3.6
Re: Adjust RSS Feed block height?
« Reply #8 on: January 14, 2015, 10:30:51 AM »
No matter, try the PHP code below:

Nailed it! Works awesomely. Thanks Chen Zhen for taking the time, and all that extra effort.

 :applause:

 :mouse:

Offline Radius

  • Semi Newbie
  • *
  • Posts: 8
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Adjust RSS Feed block height?
« Reply #9 on: April 20, 2015, 02:58:13 AM »
Hello everybody,
I put the first php code in this topic of Chen Zhen. It works perfectly. But how can I make pictures bigger? Or at least can be in the middle?

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Adjust RSS Feed block height?
« Reply #10 on: April 20, 2015, 01:10:04 PM »
Please give me your site URL ;)
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Adjust RSS Feed block height?
« Reply #11 on: April 20, 2015, 01:58:10 PM »

Radius,

Try this code (replace your feed url):
Code: [Select]
// specs
$feed = 'http://mahjongtime.com/rss.aspx'; // rss feed url
$items = 5; // number of items to display
$max_chars = 500; // 0 for no description (only titles)
$allow_tags = '<a><img>'; // allow HTML tags for rss post data (ie. hyperlinks)? format example: $allow_tags = '<a><p><div>';

// regex for image style attributes
$img_style = 'display: block; margin-left: auto; margin-right: auto;';
$regex_search = array("~style=[\'\"][^\"|^\']*[\'\"]~", "~<img~");
$regex_replace = array('', '<img style="' . $img_style . '"');

// rss class
if (!class_exists('sportal_rss'))
{
class sportal_rss
{
var $feed;

function sportal_rss($xml)
{
$this->feed = $xml;
}

function sportal_parse($no_strip, $max_chars = 0)
{
global $settings;
$rss = simplexml_load_string($this->feed);
$rss_split = array();
foreach ($rss->channel->item as $item)
{
$title = (string)$item->title;
$link   = (string)$item->link;
$description = strip_tags((string)$item->description, $no_strip);
$description = !empty($img_style) && !empty($regex_search) && !empty($regex_replace) ? preg_replace($regex_search, $regex_replace, $description) : $description;
$description = !empty($max_chars) && strlen($description) > $max_chars ? substr($description, 0, ($max_chars - 3)) . '...' : (!empty($max_chars) ? $description : '');
$rss_split[] = '
<div style="border-bottom: 1px solid #DDD;padding: 3px;">
<span style="padding-top: 5px;">
<img src="' . $settings['default_theme_url'] . '/images/sp/post.png" alt="post" />
<a style="font-weight: bold;" href="' . preg_replace('/\s+/', '', $link) . '" target="_blank" title="">' . $title . '</a>
</span>
<br />
<span>
' . $description . '
</span>
</div>';
}

return $rss_split;
}

function sportal_display($no_strip, $numrows, $max_chars = 0)
{
$rss_split = $this->sportal_parse($no_strip, $max_chars);
$i = 0;
$rss_data = '
<div style="float:left; width:100%; padding:1px;">
<div style="text-align:left; padding:0px;">';
while ($i < $numrows)
{
$rss_data .= $rss_split[$i];
$i++;
}

$trim = str_replace('', '', $this->feed);
$user = str_replace('&lang=en-us&format=rss_200', '', $trim);
$rss_data.= '
</div>
</div>';
return $rss_data;
}
}
}

global $sourcedir, $modSettings, $context;
require_once($sourcedir . '/Subs-Package.php');
list($sportal_xml, $block_id, $no_strip) = array('', strtolower(preg_replace('~[^a-z0-9_]+~i', '_', $feed)), $allow_tags);
libxml_use_internal_errors();
if (($sportal_xml = cache_get_data('portalRss' . $block_id, 90)) == null)
{
$xml = fetch_web_data($feed) ? fetch_web_data($feed) : false;
$feedlist = new sportal_rss($xml);
$sportal_xml = '<div>' . $feedlist->sportal_display($no_strip, abs($items), abs($max_chars)) . '</div>';
if (!empty($modSettings['cache_enable']))
cache_put_data('portalRss' . $block_id, $sportal_xml, 90);
}

echo !empty($sportal_xml) ? $sportal_xml : '<div>Failed to recover XML/rss stream.</div>';

The images should be centred with that code. If you want specific image dimensions then adjust the $img_style attributes.

Regards.

Offline Radius

  • Semi Newbie
  • *
  • Posts: 8
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Adjust RSS Feed block height?
« Reply #12 on: April 20, 2015, 04:48:30 PM »

Radius,

Try this code (replace your feed url):
code


Thanks for the quick reply, but now it's worse

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Adjust RSS Feed block height?
« Reply #13 on: April 20, 2015, 06:15:59 PM »
Please give me your site URL ;)
At least we can both have a look in live :)
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Adjust RSS Feed block height?
« Reply #14 on: April 20, 2015, 07:13:12 PM »
Radius,

  My apologies as I did not test the previous block code that I posted. It could never work because I did not pass the newer assigned variables to the 2 functions being used.

  Here is a revised block that uses a combo of dom & regex to achieve what you requested.

Code: [Select]
// specs
$feed = 'http://rss.canoe.ca/Slam/Hockey/home.xml'; // rss feed url
$items = 5; // number of items to display
$max_chars = 500; // 0 for no description (only titles)
$allow_tags = '<a><img>'; // allow HTML tags for rss post data (ie. hyperlinks)? format example: $allow_tags = '<a><p><div>';

// image style attributes
$img_style ='display: block; margin-left: auto; margin-right: auto;';

// replace img style with dom & regex
if (!function_exists('replace_img_style'))
{
function replace_img_style($html, $new_style)
{
$doc = new DOMDocument();
$doc->loadHTML(htmlentities($html));

$tags = $doc->getElementsByTagName('img');
if(count($tags) > 0)
{
$tag = $tags->item(0);
$html = preg_replace(array("~style=[\'\"][^\"|^\']*[\'\"]~", '~<img~'), array('', '<img style="' . $new_style . '"'), $html);
}

return $html;
}
}

// rss class
if (!class_exists('sportal_rss'))
{
class sportal_rss
{
var $feed;

function sportal_rss($xml)
{
$this->feed = $xml;
}

function sportal_parse($no_strip, $max_chars = 0, $img_style)
{
global $settings;
$rss = simplexml_load_string($this->feed);
$rss_split = array();
foreach ($rss->channel->item as $item)
{
$title = (string)$item->title;
$link   = (string)$item->link;
$description = strip_tags((string)$item->description, $no_strip);
$description = replace_img_style($description, $img_style);
$description = !empty($max_chars) && strlen($description) > $max_chars ? substr($description, 0, ($max_chars - 3)) . '...' : (!empty($max_chars) ? $description : '');
$rss_split[] = '
<div style="border-bottom: 1px solid #DDD;padding: 3px;">
<span style="padding-top: 5px;">
<img src="' . $settings['default_theme_url'] . '/images/sp/post.png" alt="post" />
<a style="font-weight: bold;" href="' . preg_replace('/\s+/', '', $link) . '" target="_blank" title="">' . $title . '</a>
</span>
<br />
<span>
' . $description . '
</span>
</div>';
}

return $rss_split;
}

function sportal_display($img_style, $no_strip, $numrows, $max_chars = 0)
{
$rss_split = $this->sportal_parse($no_strip, $max_chars, $img_style);
$i = 0;
$rss_data = '
<div style="float:left; width:100%; padding:1px;">
<div style="text-align:left; padding:0px;">';
while ($i < $numrows)
{
$rss_data .= $rss_split[$i];
$i++;
}

$trim = str_replace('', '', $this->feed);
$user = str_replace('&lang=en-us&format=rss_200', '', $trim);
$rss_data.= '
</div>
</div>';
return $rss_data;
}
}
}

global $sourcedir, $modSettings, $context;
require_once($sourcedir . '/Subs-Package.php');
list($sportal_xml, $block_id, $no_strip) = array('', strtolower(preg_replace('~[^a-z0-9_]+~i', '_', $feed)), $allow_tags);
libxml_use_internal_errors();
if (($sportal_xml = cache_get_data('portalRss' . $block_id, 90)) == null)
{
$xml = fetch_web_data($feed) ? fetch_web_data($feed) : false;
$feedlist = new sportal_rss($xml);
$sportal_xml = '<div>' . $feedlist->sportal_display($img_style, $no_strip, abs($items), abs($max_chars)) . '</div>';
if (!empty($modSettings['cache_enable']))
cache_put_data('portalRss' . $block_id, $sportal_xml, 90);
}

echo !empty($sportal_xml) ? $sportal_xml : '<div>Failed to recover XML/rss stream.</div>';

Regards.
« Last Edit: April 20, 2015, 11:53:31 PM by Chen Zhen »

Offline Radius

  • Semi Newbie
  • *
  • Posts: 8
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Adjust RSS Feed block height?
« Reply #15 on: April 21, 2015, 03:04:40 AM »
Thanks Chen Zhen. Now the pictures are in the middle.
Please help me a little bit more. Tell me please how to resize pictures with $img_style attributes? Just give me an example.
And another question: if I stop RSS feed from the source, admin panel in SMF begins to fill with errors, can you advise me something? In error log writes: public_html/Themes/default/languages/Aeva.english.php
but my theme is not default.....
Anyway, if this question is not for you, just let me know.

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Adjust RSS Feed block height?
« Reply #16 on: April 21, 2015, 05:25:43 AM »

Radius,

Adjust height/width as necessary

Code: [Select]
$img_style ='display: block; margin-left: auto; margin-right: auto;width: 200px;height: 160px;';



The errors appear to have something to do with the Aeva modification.
Can you please post the image of the error log without hiding so much of the info?
Just block the first 2 directory paths but leave the rest so I can see what possible file & lines is causing an error.

Regards.

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Adjust RSS Feed block height?
« Reply #17 on: April 21, 2015, 07:38:17 AM »
Given that Aeva has a *SERIOUS* security issue and that it has been removed from the official site, I *STRONGLY* advise you to uninstall it as soon as possible unless you want to risk to get hacked. :(
Ref: http://www.simplemachines.org/community/index.php?topic=200401.msg3779235#msg3779235
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline Radius

  • Semi Newbie
  • *
  • Posts: 8
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Adjust RSS Feed block height?
« Reply #18 on: April 21, 2015, 10:40:26 AM »
Given that Aeva has a *SERIOUS* security issue and that it has been removed from the official site, I *STRONGLY* advise you to uninstall it as soon as possible unless you want to risk to get hacked. :(
Ref: http://www.simplemachines.org/community/index.php?topic=200401.msg3779235#msg3779235

Thanks, I did not know that there is a risk in this module

@Chen Zhen Thank you very much for your help!


Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Adjust RSS Feed block height?
« Reply #19 on: April 21, 2015, 11:22:36 AM »
You're welcome, I suggest you to install one of the many galleries around ;)
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis