[2.0.13] Force Word Wrapping

The cleanup is complete. This forum is now read only.
Post Reply

Rating:

Excellent!
22
79%
Very Good
3
11%
Good
1
4%
Fair
0
No votes
Poor
2
7%
 
Total votes: 28

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 27052
Joined: Sat Aug 16, 2003 7:36 am

[2.0.13] Force Word Wrapping

Post by Extensions Robot » Tue Jun 01, 2004 5:47 am

MOD Name: Force Word Wrapping
Author: TerraFrost
MOD Description: Prevents long sentancesconstructedlikethis from horizontally stretching the page.


MOD Version: 1.0.16 (Updated 03/20/05)

Download File: wrap-1016.zip
mods overview page: View
File Size: 6633 Bytes

Security Score: 0
Last edited by Extensions Robot on Mon Apr 30, 2007 12:28 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extensions Team)

User avatar
wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric » Tue Aug 17, 2004 5:42 pm

MOD Validated/Released

Notes:
This MOD forces word wrapping on sentences without any spaces in them.

yawnmoth
Registered User
Posts: 82
Joined: Tue Dec 10, 2002 5:53 am
Contact:

Post by yawnmoth » Mon Aug 23, 2004 1:08 am

This MOD forces word wrapping on sentences without any spaces in them.


this mod is a little more complicated than that.

for example, sentances matching the regex "(! ){4000}" have spaces in them, but require wrapping to be forced upon them, as well, due to the fact that the ! character is a character prohibits wrapping on the previous character.

more info on that can be found here:

http://www.unicode.org/reports/tr14/

also, this mod doesn't count characters between <>'s and (the latest version which has yet to be released) only counts legitimate #whatever;'s once.

but, anyway, heh - thanks for releasing it! :)

User avatar
Sammy Sandbag
Registered User
Posts: 184
Joined: Fri May 23, 2003 2:07 am
Location: Savannah, GA
Contact:

Post by Sammy Sandbag » Thu Aug 26, 2004 5:24 pm

Will this mod wrap long URLs that force the tables to extend out? And if so, do the URLs still work after wrapping?

Thanks
-Sammy

yawnmoth
Registered User
Posts: 82
Joined: Tue Dec 10, 2002 5:53 am
Contact:

Post by yawnmoth » Sat Aug 28, 2004 4:36 am

yup to both - it won't insert spaces into the <a href=whatever> tag - just the stuff between the <a href=whatever> and </a> tags :)

musher
Registered User
Posts: 2
Joined: Fri Aug 27, 2004 8:51 pm
Location: Göteborg

Post by musher » Sun Aug 29, 2004 12:26 pm

Be AWERE

Look for the new ver: 1.0.9 at

http://www.frostjedi.com/terra/scripts/phpbb/wrap.zip

/Christer

yawnmoth
Registered User
Posts: 82
Joined: Tue Dec 10, 2002 5:53 am
Contact:

Post by yawnmoth » Sun Aug 29, 2004 7:08 pm

yup. i just submitted it to phpBB's MOD database, however, i expect it'll take a few months before they update it (that's how long it took for them to validate it the first time around).

in the mean time, if anyone wants to test out the mod, they can do so here (after creating an acct):

http://www.frostjedi.com/phpbb/viewtopic.php?t=4620

User avatar
Joe Belmaati
Registered User
Posts: 2110
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

Post by Joe Belmaati » Sun Aug 29, 2004 8:07 pm

Very nice! Is it possible to include this feature for the posting window (i.e. inserting a very long link when composing makes the window scroll horizontally as is now).

Thank you very much. :D

Shof515
Registered User
Posts: 1169
Joined: Wed Mar 19, 2003 4:36 am

Post by Shof515 » Sun Aug 29, 2004 8:29 pm

musher wrote: Be AWERE

Look for the new ver: 1.0.9 at

http://www.frostjedi.com/terra/scripts/phpbb/wrap.zip

/Christer

weres the update to go from 1.0.7 to 1.0.9
Last edited by Shof515 on Sun Aug 29, 2004 9:27 pm, edited 1 time in total.
Whos missing up my sig?

musher
Registered User
Posts: 2
Joined: Fri Aug 27, 2004 8:51 pm
Location: Göteborg

Post by musher » Sun Aug 29, 2004 9:24 pm

Look for the new ver: 1.0.9 at

http://www.frostjedi.com/terra/scripts/phpbb/wrap.zip
just here is 1.0.9

I don't knew about any update. Only the new ver: 1.0.9

Hope this help

Best Regards Christer

Shof515
Registered User
Posts: 1169
Joined: Wed Mar 19, 2003 4:36 am

Post by Shof515 » Sun Aug 29, 2004 9:26 pm

how do i update from 1.0.7 to 1.0.9
Whos missing up my sig?

yawnmoth
Registered User
Posts: 82
Joined: Tue Dec 10, 2002 5:53 am
Contact:

Post by yawnmoth » Sun Aug 29, 2004 10:02 pm

Very nice! Is it possible to include this feature for the posting window (i.e. inserting a very long link when composing makes the window scroll horizontally as is now).


in IE, it automatically does word wrapping, but in Firefox (and perhapes Opera, et al.) it doesn't seem to.

anyway, adding this feature certainly is possible, however, i won't do work on it until probably next weekend (i do need to do homework, after all)
how do i update from 1.0.7 to 1.0.9


just replace the word_wrap_text and addWrap functions in bbcode.php with the newest ones.

a quick informal list of the changes are as follows:

find "/^&#[0-9][0-9]*$/" and replace it with "/^&#[0-9]+$/" (w/o the quotation marks).

also, find "(strlen($ampText) < $longestAmp && $curChar == ";" &&" and after it (but not on a new line) add "function_exists('html_entity_decode') &&"

pretty much, though, 1.0.8 didn't add any new features or fix any features - it just made the code look a bit prettier. also, although 1.0.9 did fix a bug, it's a bug will only occur if your version of php doesn't have the html_entity_decode function. as most do, chances are you won't have to upgrade.

User avatar
Joe Belmaati
Registered User
Posts: 2110
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

Post by Joe Belmaati » Sun Aug 29, 2004 10:08 pm

You're absolutely right. I am using Firefox, and I just tested with IE, and it is as you say. I will much appreciate the fix for Firefox, time and homework permitting of course. :D

yawnmoth
Registered User
Posts: 82
Joined: Tue Dec 10, 2002 5:53 am
Contact:

Post by yawnmoth » Wed Sep 01, 2004 5:24 am

i hate to disapoint, but i don't believe such a mod is actually possible :(

i thought about making a javascript function to add a \n every time x consecutive non space characters were encountered, but decided against it, because that'd also effect what was sent to the server.

there seem to be no css things available that can change that, either.

incidently, i tested it out on opera, and didn't have this problem, so it seems to be exclusive to firefox, so hopefully a new version will fix this :)

guylon
Registered User
Posts: 52
Joined: Fri May 24, 2002 6:47 am
Location: Batavia
Contact:

Post by guylon » Wed Sep 15, 2004 1:11 pm

It doesn't apply on smilies? Here's a try on my board:

http://www.freakschool.com/viewtopic.php?t=1162

A bit off if combined with LEFT-RIGHT image, but cool mod :) *thumbs*

Post Reply

Return to “[2.0.x] MOD Database Cleanup”

Who is online

Users browsing this forum: No registered users and 0 guests