1
Burning
xNews 1.68 RC1 - Bug report
  • 2010/6/12 16:29

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

First thanks to dnprossi for this release, that's really a good news with a lot of inovations inside :) !


1 --- Bug or not : attached image ?

About bug (it seems to be a bug ?), I see that an image can be attached to each article. There are two upload fields :
• attach a document (old feature, works fine)
• attach an image --> image is correctly uploaded but does not appear ? Or I have missed something ?


Environment :
- Xoops 2.4.5 RC2
- Fresh install
- Php 5.2.11
- MySQL 5.1.36


2 --- Requests if I can

• In xnews/language/english/modinfo.php we should remove line 122 :
Quote:
define("_MI_NW_FORM_SPAW", "Spaw Editor"); ?

• Admin index page is very nice, much simpler to use. But if I use Oxygen layout, I can't access to index page : there is no tab for it

• About this option (in module preferences) :
Quote:
Tooltips length

If you use this option, links related to news will contains the first (n) characters of the article. If you set this value to 0 then the infotips will be empty

... this feature would be better :
Quote:
If you set this value to 0 then the infotips will be filled by article title
Still learning CSS and... english

2
voltan
Re: xNews 1.68 RC1 - Bug report
  • 2010/6/12 17:56

  • voltan

  • Theme Designer

  • Posts: 724

  • Since: 2006/12/5


Quote:
• attach an image --> image is correctly uploaded but does not appear ? Or I have missed something ?


I have this problem too (whit xnews and news 1.64 ) some times some png images work fine but some times I can't see any images !
if it bug and you want work to it , it possible to improve this image system whit able to show images in topic page or item page ! and block ! ( or add image block for news whit images )??

Quote:
Admin index page is very nice, much simpler to use. But if I use Oxygen layout, I can't access to index page : there is no tab for it


I think add index link in admin/menu.php is good idea !

Thank you dnprossi for xnews


3
Burning
Re: xNews 1.68 RC1 - Bug report
  • 2010/6/12 21:52

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


Me again,

As JCweb, I can not administrate Latest News block, I get a blank page and this issue with path is reported in debug mode :
Message(s): Use of undefined constant NW_MODULE_PATH assumed 'NW_MODULE_PATH' dans le fichier /modules/xnews/blocks/news_latestnews.php ligne 233
Avertissement
(s): include_once(NW_MODULE_PATH/include/functions.php) [function.include-once]: failed to open streamNo such file or directory dans le fichier /modules/xnews/blocks/news_latestnews.php ligne 233
Avertissement
(s): include_once() [function.include]: Failed opening 'NW_MODULE_PATH/include/functions.php' for inclusion (include_path='.;C:/php5/pear'dans le fichier /modules/xnews/blocks/news_latestnews.php ligne 233
Message
(s): Use of undefined constant NW_MODULE_PATH assumed 'NW_MODULE_PATH' dans le fichier /modules/xnews/blocks/news_latestnews.php ligne 234
Avertissement
(s): include_once(NW_MODULE_PATH/class/class.newstopic.php) [function.include-once]: failed to open streamNo such file or directory dans le fichier /modules/xnews/blocks/news_latestnews.php ligne 234
Avertissement
(s): include_once() [function.include]: Failed opening 'NW_MODULE_PATH/class/class.newstopic.php' for inclusion (include_path='.;C:/php5/pear'dans le fichier /modules/xnews/blocks/news_latestnews.php ligne 234


Lines 233 and 234 in news_latestnews.php are :
include_once NW_MODULE_PATH '/include/functions.php';
    include_once 
NW_MODULE_PATH '/class/class.newstopic.php';


... my website is in a sub-subfolder (C:/wamp/www/XOOPS245/MY-SITE/). May be the reason of this blank page ?



Edit : Top and Recent blocks display blank pages also, apparently for same reason

Debug :
Quote:
Message(s): Use of undefined constant NW_MODULE_PATH - assumed 'NW_MODULE_PATH' dans le fichier /modules/xnews/blocks/news_top.php - ligne 31
Avertissement(s): include_once(NW_MODULE_PATH/class/class.newsstory.php) [function.include-once]: failed to open stream: No such file or directory dans le fichier /modules/xnews/blocks/news_top.php - ligne 31
Avertissement(s): include_once() [function.include]: Failed opening 'NW_MODULE_PATH/class/class.newsstory.php' for inclusion (include_path='.;C:/php5/pear') dans le fichier /modules/xnews/blocks/news_top.php - ligne 31
Message(s): Use of undefined constant NW_MODULE_PATH - assumed 'NW_MODULE_PATH' dans le fichier /modules/xnews/blocks/news_top.php - ligne 32
Avertissement(s): include_once(NW_MODULE_PATH/class/class.newstopic.php) [function.include-once]: failed to open stream: No such file or directory dans le fichier /modules/xnews/blocks/news_top.php - ligne 32
Avertissement(s): include_once() [function.include]: Failed opening 'NW_MODULE_PATH/class/class.newstopic.php' for inclusion (include_path='.;C:/php5/pear') dans le fichier /modules/xnews/blocks/news_top.php - ligne 32
Still learning CSS and... english

4
Burning
Re: xNews 1.68 RC1 - Bug report
  • 2010/6/13 11:17

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

French translation available for xNews 1.68 (UTF8 without BOM) :
download link
Still learning CSS and... english

5
noo-b
Re: xNews 1.68 RC1 - Bug report
  • 2010/6/13 12:27

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


pdf generated news article shows tcpdf logo and not the site logo


Resized Image
I Love Xoops

6
dnprossi
Re: xNews 1.68 RC1 - Bug report
  • 2010/6/16 9:31

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


Hi guys, thanks for bug reporting. :)

@ noo-b:

PDF creation is not yet admin configurable but will be soon.

For now you will have to copy your logo image file in:

"yourxoopsroot/Frameworks/tcpdf/images"

Then you need to change your makepdf.php file in yourxoopsroot/modules/xnews/makepdf.php file where from line 147 you will find:

// set default header data
$pdf->SetHeaderData(PDF_HEADER_LOGOPDF_HEADER_LOGO_WIDTHPDF_HEADER_TITLEPDF_HEADER_STRING); 
//$pdf->SetHeaderData('', '', $firstLine, $secondLine);
//$pdf->SetHeaderData('logo_example.png', '25', $firstLine, $secondLine);


comment out line 148 and add somthing like:

// set default header data
//$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
//$pdf->SetHeaderData('', '', $firstLine, $secondLine);
//$pdf->SetHeaderData('logo_example.png', '25', $firstLine, $secondLine);
$firstLine 'Your Site Name';
$secondLine 'Any thing you feel writing here';
$pdf->SetHeaderData('your_logo_file.png''25'$firstLine$secondLine);


You can leave $firstLine and $secondLine empty if you want logo only to appear... Logo can be png gif...


7
dnprossi
Re: xNews 1.68 RC1 - Bug report
  • 2010/6/16 9:45

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


@Burning & @voltan:

Quote:
attach an image --> image is correctly uploaded but does not appear ? Or I have missed something ?


The image will appear if one sets "Display Topic Image?" to "yes" as with normal topic image. The topic image will be replaced by article image.

Quote:
Admin index page is very nice, much simpler to use. But if I use Oxygen layout, I can't access to index page : there is no tab for it


Oups!!! Fixing this... :)

Quote:
As JCweb, I can not administrate Latest News block, I get a blank page


I am looking at this issue but have not been able to reproduce it yet. I need to try this on windows server. So i'll make a new install on wamp as your specs.

Tracking it down though and will let you know as soon as possible!!

Thanks....


8
Burning
Re: xNews 1.68 RC1 - Bug report
  • 2010/6/16 10:13

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


Thanks M. Rossi

(I bet for Italy, 3-0 in the final )
Still learning CSS and... english

9
dnprossi
Re: xNews 1.68 RC1 - Bug report
  • 2010/6/17 11:27

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


@Burning

Quote:
I can not administrate Latest News block, I get a blank page


No way can't get the same issue... On new xampp Windows installation, Linux installation with xoops 2.4.4, 2.4.5, 2.5.2 - in htdocs, htdocs/xoops and htdocs/xoops/xoopsagain subdir. Latest news block works fine.

Only thing i can think of is when you activate the block you must do it from "Action/edit" menu and in edit form activate the block after having selected the "Topics to display".

Will make more tests!!!

Thanks for translation will include it in source will also look over your suggestions!!!

10
oswaldo
Re: xNews 1.68 RC1 - Bug report
  • 2010/6/18 0:19

  • oswaldo

  • Quite a regular

  • Posts: 215

  • Since: 2008/8/22


Thanks Dnprossi

here is the spanish translatión

Login

Who's Online

289 user(s) are online (174 user(s) are browsing Support Forums)


Members: 0


Guests: 289


more...

Donat-O-Meter

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

Latest GitHub Commits