Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
1 - 0 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: Forum Wrapping Issues
by batfan on 2007/1/23 18:38:28

Awesome! It worked!

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

Thanks again for your help Cleric.
Re: Forum Wrapping Issues
by TheCleric on 2007/1/23 18:15:52

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.
Re: Forum Wrapping Issues
by batfan on 2007/1/23 14:50:29

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

Thanks again for your help.
Re: Forum Wrapping Issues
by TheCleric on 2007/1/22 17:16:47

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

You could add something like

le="color: #000000"><?php $patterns[] = "/(w{50})/sU"; $replacements[] = '\1 ';


under the lines
le="color: #000000"><?php 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.
Re: Forum Wrapping Issues
by batfan on 2007/1/19 23:06:43

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.

Who's Online

153 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 153


more...

Donat-O-Meter

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

Latest GitHub Commits