1
macklein
php problem
  • 2007/6/9 1:44

  • macklein

  • Just popping in

  • Posts: 21

  • Since: 2006/6/29


hello everybody,
can someone can help me here??

I get problems with the newbb module after modifying newbb/language/modinfo.pph , the problem is near this:

define('_MI_IMG_SET','Image Set');
define('_MI_IMG_SET_DESC','Select the Image Set to use');
define('_MI_DIR_ATTACHMENT','Attachments physical path.');
define('_MI_DIR_ATTACHMENT_DESC','Physical path only needs to be set from your XOOPS root and not before, for example you may have attachments uploaded to http://www.yoururl.com/uploads/newbb the path entered would then be '/uploads/newbb' never include a trailing slash '/' the thumbnails path becomes '/uploads/newbb/thumbs'');
define('_MI_PATH_MAGICK','Path for ImageMagick');
define('_MI_PATH_MAGICK_DESC','Usually it is '/usr/bin/X11'. Leave it BLANK if you do not have ImageMagicK installed or for autodetecting.');
.
.
[more defines]

it produces this output:

physical path.'); define('_MI_DIR_ATTACHMENT_DESC','Physical path only needs to be set from your XOOPS root and not before, for example you may have attachments uploaded to http://www.yoururl.com/uploads/newbb the path entered would then be '/uploads/newbb' never include a trailing slash '/' the thumbnails path becomes '/uploads/newbb/thumbs''); define...[plus the rest of defines in modinfo.php]


inside the page area of any page using newbb. Is this a php problem??? what could this be??

2
stefan88
Re: php problem
  • 2007/6/9 4:50

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

probably you have unescaped quote - if you need to use quote inside a string like this:

define('_MI_SOMETHING','Some ' text');

you need to escape it with backslash:

define('_MI_SOMETHING','Some \' text');

or you may miss a quote - check your file.
..

3
ewonline
Re: php problem
  • 2007/6/9 5:16

  • ewonline

  • Not too shy to talk

  • Posts: 198

  • Since: 2004/11/17


yeah, you have a few unescaped single quotes

first one being
define('_MI_DIR_ATTACHMENT_DESC','Physical path only needs to be set from your XOOPS root and not before, for example you may have attachments uploaded to http://www.yoururl.com/uploads/newbb the path entered would then be '/uploads/newbb' never include a trailing slash '/' the thumbnails path becomes '/uploads/newbb/thumbs'');

should be
define('_MI_DIR_ATTACHMENT_DESC','Physical path only needs to be set from your XOOPS root and not before, for example you may have attachments uploaded to http://www.yoururl.com/uploads/newbb the path entered would then be \'/uploads/newbb\' never include a trailing slash '/' the thumbnails path becomes \'/uploads/newbb/thumbs\'');
Resized Image

Login

Who's Online

490 user(s) are online (62 user(s) are browsing Support Forums)


Members: 1


Guests: 489


goffy,

more...

Donat-O-Meter

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

Latest GitHub Commits