vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Prevent Doubleposting (https://vborg.vbsupport.ru/showthread.php?t=96602)

utw-Mephisto 12-02-2005 08:09 AM

One addition : bbcodes don't work ...

http://www.ut2007world.com/showpost....43&postcount=4

dan35 12-04-2005 12:03 AM

Quote:

Originally Posted by Paul M
Well the answer is simple enough, if it don't work for you don't use it.

FYI, It works for me, on two 3.5.1 systems, and no one else seems to have a problem .....


A big thank you for your help in getting my problem solved!

If everyone got the same problem, just do step 2, ignore step 1 ;)

Delphiprogrammi 12-04-2005 01:55 PM

hi people,

Can't get this to work i always get this error

Quote:

Fatal error: Undefined class name 'vbulletinhook' in functions_newpost.php
that errors keeps on appaering even if i restore the original functions_newpost.php file i can't find the cause ...

Andreas 12-05-2005 08:34 AM

For those interested, here is an experimental Plugin.

Delphiprogrammi 12-05-2005 09:38 AM

Quote:

Originally Posted by Delphiprogrammi
hi people,

Can't get this to work i always get this error



that errors keeps on appaering even if i restore the original functions_newpost.php file i can't find the cause ...

i'm an idiot i'm testing 3.5.x code on vb 3.0.7 pffff :devious: my testboard stil vb 3.0.7 updating it ..

Paul M 12-05-2005 10:03 AM

Quote:

Originally Posted by Andreas
For those interested, here is an experimental Plugin.

Tested, but I get the following error on a double post ;

Code:

Database error in vBulletin 3.5.1:

Invalid SQL:

                        SELECT MAX(dateline) AS dateline
                        FROM post AS post
                        WHERE threadid = 192
                        AND dateline <
                        AND visible = 1;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND visible = 1' at line 5
Error Number : 1064
Date        : Monday, December 5th 2005 @ 12:01:57 PM
Script      : http://www.cableforum.info/board/newreply.php
Referrer    : http://www.cableforum.info/board/showthread.php?t=192
IP Address  : xx.xx.xx.xx
Username    : Paul M
Classname    : vb_database

Also, the new post is merged into the existing post twice.

Andreas 12-05-2005 10:33 AM

Hmm, I can't reproduce such problems on my board.

But I think the SQL error is releated to thread/forum subscriptions, as the Datamanager won't return the postid.

Edit: Reproduced.

Actually, the database error causes the double merge:

The QR AJAX JS gets the database error and attempts a repost.

Paul M 12-05-2005 11:36 AM

Yep - it works - not quite as I (persoanally) want it to, but it does work. :)

I've added the dateline update on a double post (maybe that should be an option).

The main thing I dislike is that it doesn't reload the post automatically - you have to click on the QR 'error' message (there seems to be redirect code in it, not sure why it's not called - a bug maybe ?).

redspider 12-05-2005 11:46 AM

Quote:

Originally Posted by Paul M
Yep - it works - not quite as I (persoanally) want it to, but it does work. :)

I've added the dateline update on a double post (maybe that should be an option).

The main thing I dislike is that it doesn't reload the post automatically - you have to click on the QR 'error' message (there seems to be redirect code in it, not sure why it's not called - a bug maybe ?).

I try it and is doing the same thing for me .

Andreas 12-05-2005 11:59 AM

The redirect Code is called, the JS XML Handler catches it, detects the "error" message and displays it.

Unfortunately, there is no way to automatically reload the page - JS won't be executed and a meta refresh can only occur in the head-section of a HTML document.

An alternative would be to generate a postbit and display it, but then you would have the post displayed 2 times: The post that was already there and the merged post as a new post.

Replacing the existing post via AJAX ist not possible without changes to the JS files.


All times are GMT. The time now is 04:00 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.01559 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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