1
cyberik
about " " in newbb 2 rc2
  • 2004/10/13 3:33

  • cyberik

  • Just popping in

  • Posts: 14

  • Since: 2003/8/21


recently i've upgraded newbb module on my site to v.2 rc2. everything works well and much to my enjoyment and amazement. i've to show my thankfulness to all those who have contributed so much to the new module, bringing general users like me a gental breeze.

yet i've come across a small problem when i tried to post with the html code " " in content.

in the old version of newbb (v.1), there is no problem showing extra blank space between words on screen with the code.

yet in v.2 rc2, strangely, the preview will show extra blank space while, after the post being submitted, the space is replaced by the code itself, that is, " " will show on screen as it is.

i checked the old posts with " " inside and find that they all show codes instead of blank space. the forums in question, by the way, are all set to allowing html tags.

i would like to thank in advance anyone who can help me solve this puzzle. my sincere gratitudes.

=============================================

i've made a test in the following to see if " " can work here.

test                  test

as is witnessed, the preview of this post will show " " as extra space while the submitted version displays the code alone.

2
phppp
Re: about " " in newbb 2 rc2
  • 2004/10/13 5:40

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


It is not NewBB2's matter but the configure of "allow html"

For here, html tag is disabled hence the '& nbsp ;' is displayed literally.

I don't know how the xoops.org forum is set but the '& nbsp ;' is converted space in preview.

On my site, it works fine.

also you can check the NewBB2 Demo site:
http://beta.xoops2.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=296&forum=2

3
cyberik
Re: about "&bsp; " in newbb 2 rc2
  • 2004/10/13 10:25

  • cyberik

  • Just popping in

  • Posts: 14

  • Since: 2003/8/21


Quote:
phppp wrote:
It is not NewBB2's matter but the configure of "allow html"

For here, html tag is disabled hence the '& nbsp ;' is displayed literally.

I don't know how the xoops.org forum is set but the '& nbsp ;' is converted space in preview.

On my site, it works fine.

also you can check the NewBB2 Demo site:
http://beta.xoops2.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=296&forum=2


i did go to the demo site to make a test. the code does work there. i don't know if i've done anything wrong in my setting. yet on my site, when i enable html tags and post " ", the preview will show blank space. if otherwise, it shows code itself.

however, when i click on the submit button, the result is all the same--the code, instead of blank space, always shows.

though my site is encoded in big5, the sample can been here:

http://cyberiwww.xoops.net.br/modules/newbb/viewtopic.php?topic_id=611&forum=5

since the button is in english, a test on the reply or new post there should be not too difficult. on the post page, the "allow HTML tags" (with only HTML in english) can be enabled to do the test.

if anyone is kind to give a test and find out the reason for the glitch on my site, please let me know. you will have my heartful thanks.

4
svaha
Re:about
  • 2004/10/13 11:18

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


I tested it, and it is OK, all   are converted to spacers. You can only 'see' : bla bli

5
cyberik
Re:about
  • 2004/10/13 13:23

  • cyberik

  • Just popping in

  • Posts: 14

  • Since: 2003/8/21


Quote:
svaha wrote:
I tested it, and it is OK, all are converted to spacers. You can only 'see' : bla bli


thank svaha and phppp for your quick tests on my site. of all, svaha's test is the most illuminating, because of which i'm starting to realize the trick.

the trick is:

1. instead of " ", one has to use "&nbsp" (without the closing semi-colon).

2. regardless whether the forum is set to "allowing html tags" or not, one should not click on the preview button, but submit the post directly; otherwise the magic would be simply gone. after the preview, the code "&nbsp" will be replaced with blank spaces which, in turn, will compressed to only one space after the submission. if one again put the code &nbsp back, skip the preview, directly submit the post, voila, blank spaces appear.

=====================================================

since this forum on XOOPS official site is set to "not allowing html tags" (as i supposed so, since the option "enable html tags" does not appear on the post page), i would do a test right here using "&nbsp"

test         test

=====================================================

if the test above show blank spaces in between, then the magic works.

i don't know if this really is a bug. yet as mentioned above, savaha's test post gave me a clue to what happened behind--his post uses "&nbsp" instead of " ".

magic &nbsp

Login

Who's Online

183 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 183


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