Forum Hosting  

Go Back   Forum Hosting > phpBB2 Support > phpBB2 Bug Reports

phpBB2 Bug Reports Only phpBB2 errors & bugs should be submitted here


Reply
 
LinkBack Thread Tools Display Modes
Old 05-16-2005, 07:25 PM   #1 (permalink)
Active Forumer
 
Tuitam's Avatar
 
Join Date: Feb 2005

Posts: 552
Rep Power: 4 Tuitam is on a distinguished road
fTrader: (0)
fBuck$: 8,164
Bank: 0
Total fBuck$: 8,164

My Forumer
My Country:
Default HTML not displaying to guests

It seems to be a bug since the boards were updated to phpBB 2.0.15. Even if HTML is turned ON in Administration Control Panel, guests cannot see it properly! Registered (and logged) users are not affected only then when they set "Always allow HTML" to Yes in their profile.

Examples:
  1. http://tuitam.7.forumer.com/viewtopic.php?t=7
    (you should see 3 pictures but there is HTML code between 2 pictures)

  2. http://tuitam.7.forumer.com/viewtopic.php?t=19
    (you should see few shoutboxes)
After I log in, everything will be displayed properly!

Tuitam

BTW: Usually an update removes old bugs and introduces new onces

Tuitam is offline   Reply With Quote
Old 05-31-2005, 07:18 PM   #2 (permalink)
Active Forumer
 
Tuitam's Avatar
 
Join Date: Feb 2005

Posts: 552
Rep Power: 4 Tuitam is on a distinguished road
fTrader: (0)
fBuck$: 8,164
Bank: 0
Total fBuck$: 8,164

My Forumer
My Country:
Default Re: HTML not displaying to guests

I think the bug is related to the small piece of code below taken from "viewtopic.php" version 2.0.15 (line 1050 and subsequent)
PHP Code:
if ( !$board_config['allow_html'] || !$userdata['user_allowhtml'])
{
  if ( 
$user_sig != '' )
  {
    
$user_sig preg_replace('#(<)([\/]?.*?)(>)#is'"&lt;\\2&gt;"$user_sig);
  }
  if ( 
$postrow[$i]['enable_html'] )
  {
    
$message preg_replace('#(<)([\/]?.*?)(>)#is'"&lt;\\2&gt;"$message);
  }

It should remove html code, when it is not allowed. It seems to me that for some reason the first condition - !$board_config['allow_html'] - does not work, maybe it was accidentaly removed or misspelled. The second one - !$userdata['user_allowhtml'] - seems to work, which explains the behaviour I described in the post above.

Could someone check it please... (presumably Limez)

Tuitam

Tuitam is offline   Reply With Quote
Old 08-16-2005, 06:11 PM   #3 (permalink)
Active Forumer
 
Tuitam's Avatar
 
Join Date: Feb 2005

Posts: 552
Rep Power: 4 Tuitam is on a distinguished road
fTrader: (0)
fBuck$: 8,164
Bank: 0
Total fBuck$: 8,164

My Forumer
My Country:
Default Re: HTML not displaying to guests

There have been 2 updates of the phpBB code (2.0.16 and 2.0.17) since I reported this bug and nothing has changed so far.

I'm not worried about the shoutboxes (<iframe> tag) but I would like to use the <img> tag to change the alignment of the images.

The responsible piece of code is still at the same place as mentioned in the previous post (viewtopic.php - approximately line 1050+). Could someone have a look at it?

Tuitam

Tuitam is offline   Reply With Quote
Old 08-16-2005, 09:16 PM   #4 (permalink)
VIP Team
 
majicman's Avatar
 
Join Date: May 2004

Location: Pittsburgh, PA
Posts: 7,577
Rep Power: 12 majicman is on a distinguished road
fTrader: (6)
fBuck$: 10,261
Bank: 69,303
Total fBuck$: 79,564

My Forumer
My Country:
Default Re: HTML not displaying to guests

Ok, I have alerted limez. Maybe he'll post here.

YAY, I'm an ORANGE VIP!
majicman is offline   Reply With Quote
Old 08-30-2005, 02:56 PM   #5 (permalink)
Junior Forumer
 
pechango's Avatar
 
Join Date: May 2005

Posts: 91
Rep Power: 4 pechango is on a distinguished road
fTrader: (0)
fBuck$: 508
Bank: 0
Total fBuck$: 508

My Forumer
My Country:
Default Re: HTML not displaying to guests

look at the code you inserted into the string, it isn't linking to a valid image link. this is the link you should have used:

http://img227.imageshack.us/img227/6217/dscf03496mx.jpg

and it should have looked like this:



edit: this is if you want to link directly to the image. why do you have to use HTML to link to a thumbnail? Just link directly to the image.

Last edited by pechango; 08-30-2005 at 03:00 PM.
pechango is offline   Reply With Quote
Old 09-14-2005, 06:05 AM   #6 (permalink)
Active Forumer
 
Tuitam's Avatar
 
Join Date: Feb 2005

Posts: 552
Rep Power: 4 Tuitam is on a distinguished road
fTrader: (0)
fBuck$: 8,164
Bank: 0
Total fBuck$: 8,164

My Forumer
My Country:
Default Re: HTML not displaying to guests

Quote:
Originally Posted by pechango
(...) why do you have to use HTML to link to a thumbnail? Just link directly to the image.
The code I used for this image and link was:
HTML Code:
[url=http://img227.exs.cx/my.php?loc=img227&image=dscf03496mx.jpg]
<img src="http://img227.exs.cx/img227/6217/dscf03496mx.th.jpg" border="0" hspace="1">
[/url]
and this is a thumbnail linking to an image (like the other 2 in the example above which use simple [img] tag). The [url=...] part does not need to link to a proper image. In fact it links to a page dynamically generated by the image host server (ImageShack.us). And linking directly to the image would violate their TOS.

The <img ...> tag contains hspace="1" attribute which causes small gaps to be displayed on both sides of the image and those gaps - unlike the space character - do not allow the images to wrap to the next line when the browser window is resized (kind of non-breaking space). And this is all working great but... only when I'm logged in.

Furthermore (and first of all) there is no BBCode equivalent for <img src="image" align="left / right"> which allows the text to float around the image.

Probably I would never notice this issue but once I wanted to explain to someone how to put the shoutbox in a post (example #2 above) and I realized that guests cannot see it properly.

Nonetheless the bug is still there

Pechango, thank you anyway for your time and efforts.

Tuitam

Tuitam is offline   Reply With Quote
Old 11-15-2005, 02:10 AM   #7 (permalink)
Active Forumer
 
Tuitam's Avatar
 
Join Date: Feb 2005

Posts: 552
Rep Power: 4 Tuitam is on a distinguished road
fTrader: (0)
fBuck$: 8,164
Bank: 0
Total fBuck$: 8,164

My Forumer
My Country:
Default Re: HTML not displaying to guests

There has been another update (to phpBB 2.0.18) since I wrote the last post in this topic and nothing has changed.

I've installed a clean phpBB on my computer and it was working correctly.
Whom should I ask to fix it over here?

Tuitam

Tuitam is offline   Reply With Quote
Old 11-15-2005, 06:27 AM   #8 (permalink)
VIP Team
 
majicman's Avatar
 
Join Date: May 2004

Location: Pittsburgh, PA
Posts: 7,577
Rep Power: 12 majicman is on a distinguished road
fTrader: (6)
fBuck$: 10,261
Bank: 69,303
Total fBuck$: 79,564

My Forumer
My Country:
Default Re: HTML not displaying to guests

Tuitam, since you seem to be an expert with this... can you write up the bug report and I'll make sure Limez gets it?

Thanks,
Majicman

YAY, I'm an ORANGE VIP!
majicman is offline   Reply With Quote
Old 11-15-2005, 09:51 PM   #9 (permalink)
Banned User
 
ZTPF4K's Avatar
 
Join Date: Nov 2005

Posts: 49
Rep Power: 0 ZTPF4K is on a distinguished road
fTrader: (0)
fBuck$: 543
Bank: 0
Total fBuck$: 543

My Forumer
My Country:
Default Re: HTML not displaying to guests

I love those rolls up there.
ZTPF4K is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some questions about html hekker phpBB2 General Questions 5 02-17-2005 06:20 PM
Need Html Help (tutorial) runeleader IPB General Support 7 06-11-2004 04:48 PM
[resolved]*I Still Don't Get It. Cobra IPB General Support 3 05-15-2004 10:51 AM