vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Post Beautifier - Punctuation and Spelling (https://vborg.vbsupport.ru/showthread.php?t=280605)

TZ. 03-23-2012 11:00 PM

Post Beautifier - Punctuation and Spelling
 
1 Attachment(s)
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:
Quote:

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:
Quote:

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?
  1. Import XML file (as product): AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product]
  2. Configure: AdminCP -> Settings -> Options -> Post Beautifier
  3. 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

Quote:

Originally Posted by Reycer (Post 2312927)
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.

Quote:

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

Quote:

Originally Posted by Loversama (Post 2313740)
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.

Quote:

Originally Posted by Sunka (Post 2315246)
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.

Quote:

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.

Quote:

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:

Quote:

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


All times are GMT. The time now is 06:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01783 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete