e107
e107 copied to clipboard
news.php Site - graphic display problem
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:
right:
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)
I may be missing something here... Are you talking about that "Neuigkeiten" link? As that is the only difference I see in the screenshots.
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)
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.
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.
@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.
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.
I have searched in my theme.php and style.css files now, but unfortunately did not find anything.
greeting
Killer0561 (Sascha)
Does disabling the cache help?
Have already disabled the cache, but the problem persists. I do not understand why it happens at all.
greeting
Killer0561 (Sascha)
Ok, I saw what you mean with the title disappearing after refreshing. That's odd.
@CaMer0n Any thoughts?
I hope we find a solution. Unfortunately, this problem is annoying with time.
greeting
Killer0561 (Sascha)
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 From what I can see, it's News title (Title of news.php) or News Category name.
Here's what I see..
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
Second time is away and you don't see it. It looks like second time is cached version displayed and this is correct.
I can't help you, but this is weird and maybe it helps you. New news list displayed with shortcodes debug.
After refresh:
in other browser I still see shortcodes (but maybe you set them on)
Found a way to fix that? :)
greeting
Killer0561 (Sascha)
I found a fix for this:
- Create a empty file "news_template.php".
- Copy the file to: "e107_themes/YOUR-THEME/templates/news/news_template.php"
- Done.
greeting
Killer0561 (Sascha)
@Killer0561 Please check your theme.php
file. Does it contain some old $NEWS....
variables?
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)
@CaMer0n Does this require any fixing or shall we close this one?