1
Anthr4x
xNews 1.71 and Firefox
  • 2011/1/27 10:59

  • Anthr4x

  • Just popping in

  • Posts: 15

  • Since: 2011/1/27


Hello everyone,


I have a problem like this:


I have a 2.5.0 xoops installed on my website and xNews module 1.71. Everything is working fine, but the strange thing is that when viewing the news in Mozilla firefox, the font of the whole website gets larger.


In the title page there is no such problem, the problem only happens when the particular "news" are selected to read (for example when clicked on "read more" or on the topic of the news and redirects to the particular news page).


On Internet Explorer everything is fine, it only happens on firefox (maybe and other explorers too, dunno).

Anyone knows how to solve the problem?


Thanks all in advance!

I can post my website link if it is required.

2
novlang1984
Re: xNews 1.71 and Firefox

See module options, there is an option to disable about PDF. May be related to this :https://xoops.org/modules/newbb/viewtopic.php?topic_id=72599&forum=28&post_id=333381#forumpost333381

3
Anthr4x
Re: xNews 1.71 and Firefox
  • 2011/1/29 11:48

  • Anthr4x

  • Just popping in

  • Posts: 15

  • Since: 2011/1/27


Yep m8, that was the problem.


I just switched off that function in article.php and the problem is gone, now everything is shown correctly!


Thanks a lot for the help!!

4
Mamba
Re: xNews 1.71 and Firefox
  • 2011/1/29 14:35

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Don't forget to change the prefix to "Solved" next time!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

5
Anthr4x
Re: xNews 1.71 and Firefox
  • 2011/1/29 15:17

  • Anthr4x

  • Just popping in

  • Posts: 15

  • Since: 2011/1/27


Sorry for asking a newbie question, but i can not find where to change that prefix..? ;/


Tried to change after solving the problem, but couldn't find how..

6
novlang1984
Re: xNews 1.71 and Firefox

In article.php we have to delete this code :
//DNPROSSI - Added for adobe detection * does not work in msie
$browser $_SERVER['HTTP_USER_AGENT'];
//'msie', 'firefox', 'safari', 'webkit', 'opera', 'netscape', 'konqueror', 'gecko'
if ( !preg_match("/msie[^;]*/i"$browser) ) {
    
$has_adobe nw2_detect_adobe();
} else {  
$has_adobe 1; }


Even if option is disable, page is not well displayed with this code.

7
novlang1984
Re: xNews 1.71 and Firefox

May be related to the previous issue : there is an unclosed </script> tag into the template nw_news_article.html

Line 32
<div style="padding: 3px; margin-right:3px;"><{include file="db:nw2_news_item.html" story=$story}></div>

</
script>

<{if 
$display_images == && $images_count 0}>

Login

Who's Online

219 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 219


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits