e107 icon indicating copy to clipboard operation
e107 copied to clipboard

news.php Site - graphic display problem

Open K1ller0561 opened this issue 6 years ago • 20 comments

Hello everyone,

i have a problem with the news.php page. Sometimes the graphics are displayed incorrectly, the next reload of the page it looks normal again. Does anyone have advice?

wrong: news-wrong

right: news-normal

First image is on first open the news.php, the second image after reload. This error only happens when I switch from the admin panel to the news.php page.

https://homepage.egu-multigaming.de/ Version: 2.2.0 (git)

greeting

Killer0561 (Sascha)

K1ller0561 avatar Nov 28 '18 11:11 K1ller0561

I may be missing something here... Are you talking about that "Neuigkeiten" link? As that is the only difference I see in the screenshots.

Moc avatar Nov 28 '18 16:11 Moc

yes, thats right. Link "Neuigkeiten" what is wrong here: https://homepage.egu-multigaming.de/news.php?list.3.0 As you can see, the graphics are shifting. That should not be so.

greeting

Killer0561 (Sascha)

K1ller0561 avatar Nov 28 '18 17:11 K1ller0561

This is a theming issue not a bug in e107 core. The "neuigkeiten" is the title that is used. The weird thing is why it changes depending on reloading.

Moc avatar Nov 28 '18 18:11 Moc

Is there any clue how to fix this in my theme dragonhead? Unfortunately, I do not know exactly where to look in the theme there.

K1ller0561 avatar Nov 28 '18 22:11 K1ller0561

@Moc Are you sure? Where this could be in theme? It displays some title only on first loading. After refresh is gone.

On homepage is title "news". But on other pages there is title from news category. image

I refresh and it's away. I am not logged in. This happens on all first time visited news pages or (as author says - when he is going out from admin area)

@Killer0561 there is code <a class="_category" style="#" href="/news.php?list.3.0">02 • Community</a> try to check your theme where you use _category class.

Jimmi08 avatar Nov 29 '18 08:11 Jimmi08

I have searched in my theme.php and style.css files now, but unfortunately did not find anything.

greeting

Killer0561 (Sascha)

K1ller0561 avatar Nov 29 '18 10:11 K1ller0561

Does disabling the cache help?

Moc avatar Nov 29 '18 16:11 Moc

Have already disabled the cache, but the problem persists. I do not understand why it happens at all.

greeting

Killer0561 (Sascha)

K1ller0561 avatar Nov 29 '18 23:11 K1ller0561

Ok, I saw what you mean with the title disappearing after refreshing. That's odd.

@CaMer0n Any thoughts?

Moc avatar Nov 30 '18 11:11 Moc

I hope we find a solution. Unfortunately, this problem is annoying with time.

greeting

Killer0561 (Sascha)

K1ller0561 avatar Nov 30 '18 18:11 K1ller0561

Steps I would take...

Search for Neuigkeiten in the LAN files and database. If it's a LAN, search the core for the use of the LAN, otherwise track the database field or pref that has that value.

CaMer0n avatar Nov 30 '18 19:11 CaMer0n

@CaMer0n From what I can see, it's News title (Title of news.php) or News Category name.

Jimmi08 avatar Nov 30 '18 19:11 Jimmi08

Here's what I see..

image

CaMer0n avatar Nov 30 '18 19:11 CaMer0n

That error is only when page is first time displayed for you. See it's news category and url is https://homepage.egu-multigaming.de/news.php?list.4.0

image

Second time is away and you don't see it. It looks like second time is cached version displayed and this is correct.

Jimmi08 avatar Nov 30 '18 19:11 Jimmi08

I can't help you, but this is weird and maybe it helps you. New news list displayed with shortcodes debug.

image

After refresh: image

in other browser I still see shortcodes (but maybe you set them on) image

Jimmi08 avatar Nov 30 '18 19:11 Jimmi08

Found a way to fix that? :)

greeting

Killer0561 (Sascha)

K1ller0561 avatar Dec 03 '18 22:12 K1ller0561

I found a fix for this:

  1. Create a empty file "news_template.php".
  2. Copy the file to: "e107_themes/YOUR-THEME/templates/news/news_template.php"
  3. Done.

greeting

Killer0561 (Sascha)

K1ller0561 avatar Dec 16 '18 14:12 K1ller0561

@Killer0561 Please check your theme.php file. Does it contain some old $NEWS.... variables?

CaMer0n avatar Dec 16 '18 19:12 CaMer0n

yes, this variables: (send my theme.php file in your private chat CaMer0n)

function news_style($news) {
if (e_PAGE != "comment.php") {
 $cl_comment = '{NEWSCOMMENTS}';
 $cl_news_sep = '<div class="cCapSep" style="margin-bottom: 30px;"><!-- --></div>';
 $cl_style = 'news';
} else {
 $cl_comment = '';
 $cl_news_sep = '';
 $cl_style = 'comment';
}
$NEWSSTYLE
$NEWSLISTSTYLE
$NEWSCAT
$NEWSCAT_ITEM

greeting

Killer0561 (Sascha)

K1ller0561 avatar Dec 17 '18 21:12 K1ller0561

@CaMer0n Does this require any fixing or shall we close this one?

Moc avatar Nov 30 '23 20:11 Moc