• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

need help regrading

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry;
it had to do with the BBCodeEnabled flag.

its hard to explain but even though my mysql 4.0 to 4.1 migration was relativaly easy, i run into some strange things like this. i still have the old configuration running the same application and its ok there.

strange.....
maybe its time to upgrade.
[originally posted on jforum.net by gkatz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah, yes, now I remember this bug..

Indeed, upgrade to JForum 2.1.5

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi;
i have just ported jforum 2.0.2 from mysql 4.0 to 4.1
everything seem to work fine (search, forum postings, etc)

what i have noticed is that characters such as the newline character are ignored.
for example; when writing the following post:
"how
are
you"
the result when viewing the post will be:
"how are you"

any thoughts on this would be greatly appreciated
thanks.
[originally posted on jforum.net by gkatz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I saw this happen once.. a long long time ago. If you fetch data from the database console directly, the newline chars are there?

What I suggest is to put a breakpoint in the method preparePostForDisplay(), from the class PostCommon, and watch the contents, to see what's comming from the db.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks rafael;
i see that the mesage 'htmlEnabled' flag is false when preparing it to display is this the issue?

where should i go to change the default htmEnabled property to true for all posts?
thanks
[originally posted on jforum.net by gkatz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok;
i dont think it is the htmlEnabled.
i see that the DB stores the String ok and it is retrieved ok.
i see the line breaks...
for example:
when entering:
"hi
all"
the post getText method will return "hi\r\nall"
yet still the message is displayed in one line instead of 2.
any other suggestions?
thanks in advannce
[originally posted on jforum.net by gkatz]
 
Blood pressure normal? What do I change to get "magnificent"? Maybe this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic