Welcome, Guest. Please login or register.
Did you miss your activation email?
May 22, 2012, 02:38:01 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155361 Posts in 21694 Topics by 7729 Members
Latest Member: piset
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Logos don't display in newsreader module  (Read 564 times)
velarie2112

Offline Offline

Posts: 12


« on: June 12, 2008, 06:04:43 PM »

I just upgraded to 2.7 and installed the newsreader module (I had not been using it with previous version of wb).  When I check the option to display the feed logo, it only displays a placeholder for the logo.  When I uncheck the option to display the logo, it still displays the placeholder.

I would be happy just getting rid of the placeholder image.  If anyone has any suggestions it would be appreciated.

velarie2112
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7972



WWW
« Reply #1 on: June 13, 2008, 06:34:21 AM »

Hello,

had on a page the same problem and the only fix i found was to delete a few lines in the view.php. Unfortunately didn't use it anymore so could not exactly say wich lines.

Matthias
Logged
fboehlandt

Offline Offline

Posts: 69


« Reply #2 on: December 21, 2011, 04:54:32 PM »

Hello Matthias,
I have encountered the same problem. I have included the view.php code for your convenience:

Code:
<?php

include_once(WB_PATH '/modules/newsreader/functions.php');
if(!
defined('LANGUAGE')) {
getLanguage();
}

$sqlquery 
"SELECT uri, cycle, show_image, show_desc, show_limit, last_update, content, ch_title, ch_link, ch_desc, img_title, img_uri, img_link, coding_from, coding_to
FROM "
.TABLE_PREFIX."mod_newsreader
WHERE 
section_id = '
$section_id'";
$sqlresult $database->query($sqlquery);
$sqlrow $sqlresult->fetchRow();
$last_update $sqlrow['last_update'] + $sqlrow['cycle'];
define('DATETIME'DATE_FORMAT ' ' TIME_FORMAT);
if(
$sqlrow['last_update'] == || strlen($sqlrow['content']) == 0) {
output(update($sqlrow['uri'], $section_id$sqlrow['show_image'], $sqlrow['show_desc'], $sqlrow['show_limit'], $sqlrow['coding_from'], $sqlrow['coding_to']));} 
elseif(
$last_update time()) {
output(update($sqlrow['uri'], $section_id$sqlrow['show_image'], $sqlrow['show_desc'], $sqlrow['show_limit'], $sqlrow['coding_from'], $sqlrow['coding_to']));}
else {
output(array(
'ch_title' => $sqlrow['ch_title'],
'ch_link' => $sqlrow['ch_link'],
'ch_desc' => $sqlrow['ch_desc'],
'img_title' => $sqlrow['img_title'],
'img_uri' => $sqlrow['img_uri'],
'img_link'=> $sqlrow['img_link'],
'content' => $sqlrow['content'],
'last_update' => $sqlrow['last_update']));
}
?>

I was hoping this would jolt your memory? I am really struggling to find a satisfactory solution to his problem. Thanks in advance
Logged
marmot

Offline Offline

Posts: 202


« Reply #3 on: December 24, 2011, 02:09:48 AM »

Hi,

the picture is the feed logo. If there is none, a placeholder is displayed. The opions to turn off the logo and description are not implemented although they can be selected Wink.
I looked after that and found a lot of problems in the code. So I cleaned it up a bit and called it v0.2. But remember this is still alpha state and there is a lot more to do.
I wasn't able to find version 1.0 which your are talking about so I guess u mixed it up with version 0.1?

Btw. double posts are not appreciated in most forums.

regards
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!