PDA

View Full Version : Show Thread Enhancements - Post Beautifier - Punctuation and Spelling


TZ.
03-23-2012, 11:00 PM
About this hack:

The Post Beautifier to make posts more readable. Corrects punctuation and common misspellings (If you set word list). Remove multiple punctuation marks.

Features:

Punctuation mark and space relationships
Remove multiple punctuation marks
Quotes and space relationships
Brackets and space relationships
Images (example smiles) and space relationships
possibility for autocorrect word list


Sample:
before:
Lorem ipsum!!!!!!!!!!!!!!!!!!
...........dolor sit amet,consectetur adipisicing elit ,sed do eiusmod tempor incididunt ut,labore et dolore magna aliqua.Ut enim"ad minim "veniam,quis nostrud exercitation:)ullamco laboris nisi ut aliquip ex ea commodo consequat.Duis ( aute)irure dolor in reprehenderit in voluptate( velit esse cillum )dolore eu fugiat nulla pariatur????????????????Excepteur sint occaecat cupidatat non proident ,sunt in culpa qui officia deserunt mollit anim id est laborum:o..................................

after:
Lorem ipsum!!!
... dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut, labore et dolore magna aliqua. Ut enim ?ad minim? veniam, quis nostrud exercitation :) ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis (aute) irure dolor in reprehenderit in voluptate (velit esse cillum) dolore eu fugiat nulla pariatur??? Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum :o...

How to Install/Configure?


Import XML file (as product): AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product]
Configure: AdminCP -> Settings -> Options -> Post Beautifier
That is it!


History:
[24-03-12] v1.0.0 - First Release

Sorry for my bad english...

Reycer
03-24-2012, 08:34 PM
So it basically looks for a space, but doesn't really correct punctuation? (e.g. Its nice outside. --Which should be -- It's nice outside. It won't fix that correct?) BTW, might want to fix the word "befor" in the admincp.

TZ.
03-24-2012, 09:38 PM
So it basically looks for a space, but doesn't really correct punctuation? (e.g. Its nice outside. --Which should be -- It's nice outside. It won't fix that correct?)

This mod just exclamation mark, question mark and dot repair. If there are too much or missing space after or there is space before.

BTW, might want to fix the word "befor" in the admincp.

Thank you, repaired. :)

Nirjonadda
03-24-2012, 09:58 PM
Its is forum spam reply management tools !!! Installed working on 4.1.10...Thanks

Ramsesx
03-25-2012, 10:30 AM
Nice job, tagged.

akvaryumforum
03-25-2012, 02:45 PM
Capital correcter maybe good.

before: lorem ipsum. test.
after: Lorem ipsum. Test.

Loversama
03-27-2012, 07:16 AM
Anyone else here see the Irony? :P

Kaleem
03-27-2012, 12:55 PM
Anyone else here see the Irony? :P
This is why he needed that mod. His forum must have lots of problems like that.

Sunka
03-31-2012, 01:38 AM
Is it work after installing for old posts too, or just for new posts created after installing?
If uninstall this mod, what is happening with posts?
Any chance for big first letter after dot?
Any chance for exluded forums?

TZ.
03-31-2012, 06:24 AM
Thank you, these are important issues, but omitted from the description.

Is it work after installing for old posts too, or just for new posts created after installing?

Only the display changes. Therefore, the old posts will also change.

If uninstall this mod, what is happening with posts?

It returns to the state prior to installation. Does not modify the database, not risky to install.

Any chance for big first letter after dot?
Any chance for exluded forums?

In the near future I plan to.

Alan_SP
04-01-2012, 01:28 AM
How server intensive is this mod?

As I see, every time someone looks at post, it runs the same routine. As thread's page has many posts, for each page it runs multiple times. And so for each thread, for each user, guest also.

Could you maybe add plugin that will do this when post is posted and save corrected post in database, so it's run only once?

And of course, leave this plugin for people who wants to correct looks of old and new posts, without changing posts in database. Maybe you could even do what I suggest as separete mod, or combine both plugins in one mod?

Anyway, I must say that this is really great idea, many people on my forum don't know how to use punctuation, it's really horrible. But, here comes your mod. :up: And if you could make it that it changes post content on post creation, not just looks of it, as it is less server intensive, it would be really fantastic.

Great work, really, I'm impressed. :up:

djbaxter
06-09-2012, 03:12 PM
In vB 4.2.0 PL1 gives the following PHP error when trying to view a thread or post:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /includes/class_postbit.php(345) : eval()'d code(267) : eval()'d code on line 3

Elenna
08-06-2012, 10:24 PM
Silly question, but will this also change the search functionality? For example, if I wanted to search for "......." (no idea why I would, just theoretically), would this find "bad" posts, but then display them "beautified"? Or would this not even find those posts, since they would already be "beautified"?

Elenna
08-28-2012, 12:47 AM
For those that don't want the "bottom" left quote, edit the Plugin and change each instance of „ with “.

Spangle
03-02-2013, 10:45 AM
Looks like this one is abandoned ( another), seems to be good, but I need a couple of questions.

Does it use "American English" ?( I hate that phrase, it's a contradiction in itself)

Does it use American grammar ?

If so it's blooming use on an English board.:D