I am not sure if this have been discussed before, or if it is possible already, but anyway:
I have set my latest comment module to limit the body to 35 (or something), but still it happens that people manage to sneak in a linebreak before that, and the linebreak will also show up in the latest comment module. I was wondering if it was possible to implement a setting like Ignore linebreak or stop at linebreak, so that it won't look like this:
[attachment=0]comment.png[/attachment]
Hi Magnus,
you can do this by a simple hack to the module file, before this line:
$all_comments .= $current_comment_item;
add:
$current_comment_item = str_replace("<br>", "", $current_comment_item);
Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
please show me the comment element format in the module config, it should have <br> at the end, change it to <br />
Regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Friday the 13th and all, once I try something out in the 14th it works. I really need to write up a review for you guys at JED, and see if I can afford the subscription some time soon.
Or that brings me back to my original issue:
[attachment=0]com.png[/attachment]
Thanks Magnus, please show me the module configuration code you changed, this is the only change you made since you had all lines together ?
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Magnus,
2. Changed <br> to <br /> in module configuration
I don't see neither <br> nor <br /> in the code line! you needed <br /> at the end! backup this line then completely remove it and Apply, what do you get as a result ?
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Magnus,
This is weird, why its removed, lets try another way!
use this :
<p><a href="{page_link}#commentID{id}">{text}...</a></p>
let me know!
Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
</p> brings about the same problem as <br>, all in one line. But adding <br /> at the end seems to move them to separate lines, even though it is gone the next time I open the module configuration screen. Still isn't working with the line break though. Doesn't matter too much to me, just a feature that would be nice to add in the module.
Hi Magnus,
That's Ok, I will copy this to the bugs forums and check it on time!
Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Sure, thanks for all the help so far.