vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   New Posting Features - vbPostCheck - Warn if someone posted while you were typing (https://vborg.vbsupport.ru/showthread.php?t=144015)

hambil 04-03-2007 10:00 PM

vbPostCheck - Warn if someone posted while you were typing
 

Note: This product is now being supported at www.catnine.net

Keywords: Post, warning, check, new

Description:
Gives the user a warning if someone has posted in the same thread while they where typing their reply. The user can than choose to review their post, and continue.

Version 1.1.0:
  1. Uses the same warning method as other vBulletin post warnings (see screenshots)
  2. Works with quickreply
  3. Shows new post in Topic Review section (for non quickreply)
  4. Added option to do an auto template replace
  5. Added option to enable or disable the product
Special thanks to Dismounted for his contributions, and welcome as a co-author/supporter.

Version 1.0.0:
  1. Warns on new posts in same thread while you where typing your reply
  2. Fully phrased
  3. No file edits or uploads
Install
  1. Download the product-postcheck.xml file
  2. Import using the product manager

hambil 04-04-2007 06:51 PM

No - 5 stars not 1 star! I hit the wrong button...

Hopefully someone will wander along and fix it for me.

In the meantime, er, welcome to my lastest hack :D

nexialys 04-04-2007 06:51 PM

i hope that open a new window when alerted ?!

you forgot to drop your site url in the script!

nexialys 04-04-2007 06:53 PM

Quote:

Originally Posted by hambil (Post 1219869)
No - 5 stars not 1 star! I hit the wrong button...

hah ha... you've done that you too.. lol :D

badly nobody will edit .. lol

hambil 04-04-2007 06:53 PM

Quote:

Originally Posted by nexialys (Post 1219870)
i hope that open a new window when alerted ?!

you forgot to drop your site url in the script!

Yeah, it's a chicken and egg thing. You have to post to get the url to the threads, and you need the url to the thread to post. I usually just do a quick update of the hack within a few minutes of posting here, once I know the topic id.

hambil 04-04-2007 06:55 PM

Quote:

Originally Posted by nexialys (Post 1219870)
i hope that open a new window when alerted ?!

you forgot to drop your site url in the script!

No, it looks like any other vb error message. However, nothing is lost. When you hit 'review' it takes you back to your post with everything still there.

nexialys 04-04-2007 07:04 PM

Quote:

Originally Posted by hambil (Post 1219875)
Yeah, it's a chicken and egg thing. You have to post to get the url to the threads, and you need the url to the thread to post. I usually just do a quick update of the hack within a few minutes of posting here, once I know the topic id.

i meant this:
PHP Code:

$vbulletin->options['vbpostcheck']['form_action'] = 'http://www.catnine.net/vb/newreply.php?do=postreply&t=' $_REQUEST['t'] . '&skip=1'

... use $vbulletin->options[bburl]

hambil 04-04-2007 07:05 PM

Oh, crap

I hate bugs. Hold on, quick fix.

It worked on my board :D

hambil 04-04-2007 07:11 PM

Quote:

Originally Posted by nexialys (Post 1219884)
i meant this:
PHP Code:

$vbulletin->options['vbpostcheck']['form_action'] = 'http://www.catnine.net/vb/newreply.php?do=postreply&t=' $_REQUEST['t'] . '&skip=1'

... use $vbulletin->options[bburl]

Put a new xml file up. That should fix her up. I need more sleep lol :)

bashy 04-04-2007 07:11 PM

Wow, what a great hack, me installing now :) thanks!!

FleaBag 04-04-2007 07:11 PM

Very nice hambil! Thanks. :)

Rated 5 stars... We'll get you there eventually!

nexialys 04-04-2007 07:12 PM

Quote:

Originally Posted by hambil (Post 1219886)
Oh, crap
I hate bugs. Hold on, quick fix.
It worked on my board :D

That need to be quoted for the posterity... :D :D :D

ringoflight 04-04-2007 07:14 PM

Installed and working!

bashy 04-04-2007 07:40 PM

Didnt work for me, I posted using IE and posted under another name using FF and did not get a warning!!

hambil 04-04-2007 07:41 PM

Don't use quick reply. By it's very nature quick reply doesn't bother checking.

bashy 04-04-2007 07:43 PM

Damn, that will explain that then pmsl...... cheers m8 :)

bashy 04-04-2007 07:47 PM

ok works now using full reply sort of lol

It does not show that last post it shows the penultimate post!!!! see image last post and image not last post
please see the image as the error message as some code thats out of place :(

hambil 04-04-2007 08:21 PM

I don't understand - sorry. It looks like you edited the template or the phrase, and that's where the odd characters are coming from on the warning message.

As for the last post/not last post, could you explain better, please?

rjmjr69 04-04-2007 09:26 PM

How many queries if any does this add? Does it take up much resources? Looks very nice and extremely useful

""""Clicks Install until answered"""""

Thanks

Hornstar 04-04-2007 10:09 PM

yeah i always remember those threads were you post, and then you edit saying, damn, you beat me to it. but that is all fun in the community, trying to beat someone to the thread, i think if i installed this, it would kind of take away that atmosphere. but either way, great work on creating this, im sure it will be very useful for lots of boards.

MThornback 04-05-2007 12:39 AM

You are brilliant *installed*

MThornback 04-05-2007 12:45 AM

Quote:

Originally Posted by hambil (Post 1219869)
No - 5 stars not 1 star! I hit the wrong button...

Hopefully someone will wander along and fix it for me.

In the meantime, er, welcome to my lastest hack :D

I did that too...sorry Hambil :(

hambil 04-05-2007 02:09 AM

Damn you Thorn in my Back!!! :D I'll accept a MOTM nomination in repayment :p

Milad 04-05-2007 03:37 AM

I think your hack contains XSS issue, you use $_REQUEST in the HTML without any check, this opens a security hole.

hambil 04-05-2007 03:50 AM

Quote:

Originally Posted by Milad (Post 1220123)
I think your hack contains XSS issue, you use $_REQUEST in the HTML without any check, this opens a security hole.

I change the code to run $_REQUEST['t'] through the cleanup process. Other than that no security issue should exist, since I'm only reloading request and post information, not using it in anyway.

Rat1972 04-05-2007 05:03 AM

Quote:

Originally Posted by hambil (Post 1220085)
Damn you Thorn in my Back!!! :D I'll accept a MOTM nomination in repayment :p

i asked for this mod a week or two ago and now its here. Ofcourse i will nominate it ;) and ofcourse the five stars.
I hope in the future it will also work with quick reply, but that isnt a must. I am glad with this one!

Good work!

Click install

bashy 04-05-2007 05:06 AM

I only added to the phrase nothing that could have added that extra code, i didnt touch any template!?

It warned me about the last post being made, but when i went to review it it was not the last post it was the post before the last post!

Quote:

Originally Posted by hambil (Post 1219946)
I don't understand - sorry. It looks like you edited the template or the phrase, and that's where the odd characters are coming from on the warning message.

As for the last post/not last post, could you explain better, please?


hambil 04-05-2007 07:41 AM

Quote:

Originally Posted by bashy (Post 1220155)
I only added to the phrase nothing that could have added that extra code, i didnt touch any template!?

It warned me about the last post being made, but when i went to review it it was not the last post it was the post before the last post!

It checks to see if any posts have been made since you started your post. There could be more than one.

I might consider complicating the query a bit, and providing some varied phrasing. e.g. "A new reply" and "x new replies".

I'll look into the quick reply at the same time. If I do it, I'll make it off by default and admin settable. I can speak only for myself but if I'm using quick reply I don't want a bunch of checks and stuff slowing me down and asking me questions. That's why I using quick reply ;)

Dismounted 04-05-2007 08:32 AM

Damn! You stole my idea :(, I was in the process of making this. Oh well. But I have a solution to make it work with quick reply :).

hambil 04-05-2007 09:13 AM

It's not an issue of making it work with quickreply. I chose not to. However, I'll probably make it optional in the next release.

MThornback 04-05-2007 12:03 PM

Quote:

Originally Posted by hambil (Post 1220085)
Damn you Thorn in my Back!!! :D I'll accept a MOTM nomination in repayment :p

Happily done and done :D

I'm also looking forward to the quick reply add-on to this....I know more of my users use it than the standard reply :)

tandy 04-06-2007 08:10 AM

Everything fine with IE but warning appear for all reply in firefox.

audis3 04-06-2007 11:51 AM

Installed and you have 5 stars ;)
Thanks!

PoetJA-1975 04-08-2007 07:44 PM

Very nice share HAMBIL = Thanx ;)

Jacquii.

Tralala 04-08-2007 08:41 PM

/bookmarks

I'll install when it supports Quick Reply.

Thanks for sharing this great add-on!

hambil 04-09-2007 09:29 PM

Since it has been heavily requested, I'll be releasing an update to this soon that supports quick reply. This will require a much more complex (but ultimately more intuitive) method for displaying the warning, due to the AJAX nature of quick reply. Hopefully the upgrade will be ready within the next day or two.

Dismounted 04-10-2007 11:21 AM

Use the $error[] array.

Luky 04-12-2007 06:34 AM

99% of my users depend on quick reply ;)

captainslater 04-12-2007 06:35 AM

Quote:

Originally Posted by hambil (Post 1223613)
Since it has been heavily requested, I'll be releasing an update to this soon that supports quick reply. This will require a much more complex (but ultimately more intuitive) method for displaying the warning, due to the AJAX nature of quick reply. Hopefully the upgrade will be ready within the next day or two.

Great news :)

eNtitY~ 04-24-2007 03:41 PM

I would install this but I think it would be annoying since it doesn't open into a new window, if your browsing new posts or posting it will always change the screen your on to notify you?

Hmm, and yeah once its supported in Quick reply I might consider this.


All times are GMT. The time now is 05:49 PM.

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.01376 seconds
  • Memory Usage 1,826KB
  • 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
  • (2)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete