×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Comments lines break Off

Comments lines break Off 15 years 5 months ago #4521

  • Rattan
  • Rattan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hi,

I am using Joomla Comment!!! I have problem when comments are posted they get broken off into several lines, some lines are long while others are short. And there a distance between the lines as if somone has entered blan lines in between. Also words gets chopped from one line to other so they dont appear as a word but rather as characters. Here is example:

sasasa ffdfd ff ffddffdfd fgfgf ggfgfgfgfgggffg fgfgfg gfffggg

ssss fffffffff nnnnnnnnnnnnn n nnnnnnnnnnnnnnn n vvvvvvvvvvvv

aaaaaaa bbbbbb bbbbbb
bbbb nnnn nnnnnnnnnnnnnnn nnn


How should I fixed this problem??

My website's Content Settings is >> Security >>
Post max length : 500
Line Max length : 150
Word Max Length: 15

Is this causing the problem????? Please help resolve this issue!!!!!!!B)

Comments lines break Off 15 years 5 months ago #4523

  • Anders M
  • Anders M's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Seconded... I'm having the exact same problem. Comments being cut for no apparent reason. The database data looks fine but in the HTML the comments have inserted spaces and linebreaks. Almost seems random although it probably isn't...
Btw. I set my security settings to -1 (unlimited) all of them and that doesn't have an impact.

Comments lines break Off 15 years 5 months ago #4524

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey guys! I was long time believing that there was a bug with this feature, but now I'm certain that there is no bug.

post max length - no mather how long the post in the database is - only the value that you enter here will be shown.

line max length - if a line is longer than 150 characters(including spaces) we will insert a br tag. And this thing works! You say - one lines are longer than other and so on, but please count the characters till the brakes - they will be 150 with spaces! (you can use word to count the characters).
So basicly you should find out - how many characters you can place in your template. Some templates allow 50chars, another 100, another 150 chars. You should find the value.

word max length - if a word is longer than the value here for example dsaffdsajkfjsafjsalkfjsafasflak

it will be cut off after the value in this field.

I think, that in the next version the default values for these features will be -1, since a lot of users think that this is a bug, but actually it is not.

Comments lines break Off 15 years 5 months ago #4544

  • Anders M
  • Anders M's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Hi Daniel,

Thanks for the quick answer... And you are right. I simply just didn't do a proper refresh on the page after changing all security values to -1. Duh! So now it seems to work fine.

One bonus question though... Why are joomlacomment's database collations latin1_swedish_ci? All my others joomla tables use utf8_general_ci as charset. Is this something on my setup specifically or a general weird thing?

Comments lines break Off 15 years 5 months ago #4546

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Anders,
most probobly the default setting of your server is latin1 and that is why this tables are latin1 and not utf8 (we don't specify the collation - perhaps we should do this too).

Use phpmyadmin and change the collation to utf8_general_ci.

Comments lines break Off 15 years 5 months ago #4553

  • Anders M
  • Anders M's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Aye, you're probably right... My uniform server probably specifies latin1 (no idea where the Swedish comes from though?!?). Thanks again and have a fantastic day :)

Comments lines break Off 15 years 5 months ago #4554

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Well, en.wikipedia.org/wiki/MYSQL mysql is swedish company :)

Comments lines break Off 15 years 5 months ago #4601

  • ScratchMonkey
  • ScratchMonkey's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
I'm seeing random spaces in my comments, and it looks like they're at the 100 character boundary. I found this thread and set my line length first to -1, then tried 1000000000, and neither removes the extra spaces. You can see it happening here:

thudandblunder.org/index.php/component/c...re-festival#JOSC_TOP

I don't see the spaces in the DB, so it must be happening during rendering. Next I'll try to dive into the code and see if I can spot the issue.

Comments lines break Off 15 years 5 months ago #4602

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
scratchmonkey I don't see any extra spaces in your template. Is it ok now? perhaps your cache was turned on?

Comments lines break Off 15 years 5 months ago #4603

  • ScratchMonkey
  • ScratchMonkey's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
The first break I see is in the word "explain" in the first line. It reads as "exp lain". On the next line I see "tha t". I tried with IE (not my normal browser) to see if it was a cache issue and see the same thing.

If I do a view-source from Firefox, I see   (non-breaking space) where the mysterious word breaks are.

Comments lines break Off 15 years 5 months ago #4604

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
ah, then change the max word length to -1.

Comments lines break Off 15 years 5 months ago #4605

  • ScratchMonkey
  • ScratchMonkey's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Thanks, that fixed it. Why would that affect this? I had the word length set to 100. Does the module have an odd idea of what a "word" is?

Comments lines break Off 15 years 5 months ago #4606

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Well, I don't know. I've written a new function for the word wrapping yesterday - it will come with beta1 and hopefully it will work fine there :)

Comments lines break Off 15 years 4 months ago #4633

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
[Slightly off topic] I think with your new code Daniel, the Max Word Length and Max Line Length won't even be needed in the next version? I have both at -1 and it works well with my variable-width Joomla template on a range of resolutions :)

Comments lines break Off 15 years 4 months ago #4794

  • Riverside
  • Riverside's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
This is a good thread. I'm glad I found it. Might I suggest since this is obviously a very common confusion that this thread be made "sticky" and all further questions about this be routed to this thread? :) It sure would save you a lot of headaches.

That said, I still have one question about this problem. I have set line and word length to -1 to eliminate spaces and breaks where no one really wants them, however this leaves us all with the original problem that is the reason I like to have that control.

That is when users hold down a key for a continuous string, or copy and paste smilies repeadedly until they go of the page, resulting in the ever dreaded HORIZONTAL SCROLL BAR!

Not sure if your forum does this, and I apologize if it does, because I'm about to demonstrate exactly what I mean.

ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ

Will your planned changes be addressing this problem? :woohoo:

Edit: YIKES! I guess it does do that on your board. I really over did it to, which screws up the flow of the WHOLE thread. At least Joomla commment only screws up the one comment, but still creates the scroll bar. I've shortened this one quite a bit. It was really too much at first.

Comments lines break Off 15 years 4 months ago #4797

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
LOL! Nice work, I had to horiz-scroll all the way to the right to reply :laugh:

I actually find that I still have to set a max word length to 100 or so to get around it. I choose 100 so that incase a comment contains a URL it wont be broken easily.


Great, even in this reply form the template is all broken thanks to your uber-long Z line :P


And I couldnt click "Submit" for this reply, its underneath the sidebar! I had to press TAB a few times to select the Submit button then press enter :laugh:

Comments lines break Off 15 years 4 months ago #4798

  • Riverside
  • Riverside's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Ha! I had the same problem when I tried to edit it. Couldn't get to the submit button.

Just a hint for future replies: use the Quick Reply! The Submit button for that is on the left!
  • Page:
  • 1
Time to create page: 0.165 seconds