Not logged in. · Lost password · Register
Forum: Support Bug reports and troubleshooting RSS
My browser is inform about error on page and files is not attached
Nurlan #1
Member since Oct 2004 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: My browser is inform about error on page and files is not attached
my browser is IE6,
I`m upgrade my forum to 1.5.2 version,
When users click on "New thread" (also on "quote" and "reply") browser is inform about syntax error.
Same I observe in this forum too.
I want attach the screenshot, but this function is not work too.

And my small suggestion:
for correct display in any languages, it is necessary to replace in line 1581 of cp.inc.php  
<small>(Format: T.M.J)</small>
with this
<small>' . $T['search_date_format'] . '</small>
Avatar
Yves (Administrator) #2
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by Nurlan:
my browser is IE6,
I`m upgrade my forum to 1.5.2 version,
When users click on "New thread" (also on "quote" and "reply") browser is inform about syntax error.
Same I observe in this forum too.

What syntax error? My browser doesn't do that. Maybe you can describe what you can see on your display?

I want attach the screenshot, but this function is not work too.

Hm, yes, I have found a problem with that. Fixed it locally for now, I'll have to track it into past versions.

And my small suggestion:
for correct display in any languages, it is necessary to replace in line 1581 of cp.inc.php  
<small>(Format: T.M.J)</small>
with this
<small>' . $T['search_date_format'] . '</small>

Definitely not. Other date formats are likely to change the order of the date fields. But the board wants to have the day in the "Day" field etc. If you change your personal date format to "Y-m-d", you'd see the notice to enter the year first, which won't work (it wouldn't even fit into the day field).
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Avatar
Yves (Administrator) #3
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by Yves:
Hm, yes, I have found a problem with that. Fixed it locally for now, I'll have to track it into past versions.

Quick fix: in filepost.inc.php, function is_valid_attach_name, replace
    $ext = substr($filename, $x);
with
    $ext = substr($filename, $x + 1);
This makes the specified list of allowed attachment filename extensions work again.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Nurlan #4
Member since Oct 2004 · 8 posts
Group memberships: Members
Show profile · Link to this post
Quote by Yves:
Quick fix: in file post.inc.php, function is_valid_attach_name, replace
    $ext = substr($filename, $x);
with
    $ext = substr($filename, $x + 1);
This makes the specified list of allowed attachment filename extensions work again.
It`s OK.

Quote by Yves:
What syntax error? My browser doesn't do that. Maybe you can describe what you can see on your display?
In attached image:
The author has attached one file to this post:
bbf_error.png 5.2 kBytes
You have no permission to open this file.
Avatar
Yves (Administrator) #5
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Ah yes. As I said, I always forget something... I found and fixed the bug. Thank you for that note.

Changed post.inc.php line 1916 from
    echo '<script type="text/javascript"><![CDATA[' . endl;
into
    echo '<script type="text/javascript">//<![CDATA[' . endl;
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Avatar
spaceman #6
Member since Sep 2004 · 295 posts
Group memberships: Members
Show profile · Link to this post
Quote by Yves:
Ah yes. As I said, I always forget something... I found and fixed the bug. Thank you for that note.

Changed post.inc.php line 1916 from
    echo '<script type="text/javascript"><![CDATA[' . endl;
into
    echo '<script type="text/javascript">//<![CDATA[' . endl;


Does this bug also appear in version 1.5.1-h? Thanks! :-)

P/s: I'm yet to upgrade to 1.5.2... otherwise I'll lost all custom modifications to my forum over times... :-/
BlackBoard > FUDForum > Invision > phpBB2
Avatar
Yves (Administrator) #7
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by spaceman:
Does this bug also appear in version 1.5.1-h? Thanks! :-)

Don't know but I don't think so. But you could just go to that place, find the real code line since it may be somewhere else in 1.5.1 and see if it's wrong there, too.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20120620-dev, © 2003-2011 by Yves Goergen
Page created in 178.3 ms (120.3 ms) · 85 database queries in 118.6 ms
Current time: 2013-05-22, 15:43:02 (UTC +02:00)