1
batfan
Forum Wrapping Issues
  • 2007/1/18 17:20

  • batfan

  • Just popping in

  • Posts: 7

  • Since: 2006/12/28


Hello all. Just installed XOOPS Community Bulletin Board 2.3 and I'm testing it at this point.

- Using XOOPS 2.0.16 -

Currently, posts on the forum are not wrapping. My XOOPS site is about 700 pixels wide. If a post is entered on the forum, the text is not wrapped and therefore, distorts the template.

Can this be corrected?

Any information regarding this would be greatly appreciated.

2
batfan
Re: Forum Wrapping Issues
  • 2007/1/19 19:52

  • batfan

  • Just popping in

  • Posts: 7

  • Since: 2006/12/28


Did I just ask an impossible question or am I not providing enough info?

3
TheCleric
Re: Forum Wrapping Issues
  • 2007/1/19 20:22

  • TheCleric

  • Just popping in

  • Posts: 22

  • Since: 2006/12/26


First, there is a later version of cbb available at dev.xoops.org ( I don't know why it isn't in the repository)

I think that long, unbroken lines of text will mess up the layout. If there are no spaces, I don't think it does any wrapping on the line, which does mess up the templates.

Is this the issue that you are having?

4
batfan
Re: Forum Wrapping Issues
  • 2007/1/19 23:06

  • batfan

  • Just popping in

  • Posts: 7

  • Since: 2006/12/28


Cleric, thanks for looking into this. Yes, that is the issue that is occurring. See the following URL for more information:

My Test Forum:
http://detectivecomics27.com/xoops/modules/newbb/viewforum.php?forum=1

- Click 'test post' -

Is there any way of preventing this? Or rather, has this been addressed in the newer version that you were referring to?

Again, thanks for your help.

5
TheCleric
Re: Forum Wrapping Issues
  • 2007/1/22 17:16

  • TheCleric

  • Just popping in

  • Posts: 22

  • Since: 2006/12/26


under the frameworks>textsanitizer there is a module.textsanitizer file.

You could add something like

$patterns[] = "/(w{50})/sU";
$replacements[] = '\1 ';


under the lines
function &xoopsCodeDecode(&$text$allowimage 1)
    {
        
$patterns = array();
        
$replacements = array();

That will insert a space in the display whenever there are 50 characters in a row. Essentially, the longest word possible will be 50 characters.

It won't break up words with punctuation, so it shouldn't break long URLs.

6
batfan
Re: Forum Wrapping Issues
  • 2007/1/23 14:50

  • batfan

  • Just popping in

  • Posts: 7

  • Since: 2006/12/28


Cleric, where exactly would I place these snippets, in the coding?

Thanks again for your help.

7
TheCleric
Re: Forum Wrapping Issues
  • 2007/1/23 18:15

  • TheCleric

  • Just popping in

  • Posts: 22

  • Since: 2006/12/26


Oh, sorry, I don't think cbb 2.3 uses frameworks.

I guess I don't know where you would add it. if you have a textsanitizer file somewhere, you might be able to find the xoopscodeDecode function and add the lines still.


If you are just starting your site, you will probably be happier using XOOPS 2.0.x rather than 2.2 which you have now. The 2.0 version supports more modules and is generally going to be what you want.

Then, you should get cbb 3.08 from dev.xoops.org to replace the older version you have now.

Those two things should help you get the best system.



If you did that:

You should have a directory xoops/frameworks/textsanitizer

There is a file module.textsanitizer.php

In that file there is the lines "function xoopscodeDecode"

right under those lines, which I listed in full above, you can add the top code segment that I posted.

8
batfan
Re: Forum Wrapping Issues
  • 2007/1/23 18:38

  • batfan

  • Just popping in

  • Posts: 7

  • Since: 2006/12/28


Awesome! It worked!

http://detectivecomics27.com/xoops/modules/newbb/viewtopic.php?topic_id=2&forum=1

Thanks again for your help Cleric.

Login

Who's Online

416 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 416


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits