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 - vB Drafts (https://vborg.vbsupport.ru/showthread.php?t=206802)

Andyrew 02-27-2009 03:20 PM

Quote:

Originally Posted by RedTyger (Post 1756156)
I need to know your post editor type and where the draft is being saved/restored, as well as the saved text itself or some that produces the same effect.

I just tried again and it's working fine now. :confused:

Tested in IE 8 Beta and Chrome. :up:

Switch02 02-27-2009 03:21 PM

Nice and useful good work ;)

Andyrew 02-27-2009 03:35 PM

Don't know what's going on but now i'm getting code again back in the recalled messages,
and if i tick the box to delete draft after submit, the post gets submitted but i get this error.

Fatal error: Call to undefined method vB_Database::query_slave() in /xxxx/xxxxxxx/public_html/forums/global.php(400) : eval()'d
code on line 211

Using WYSIWYG editor

RedTyger 02-27-2009 03:42 PM

Try it again with the product file attached to this post. Just upload and overwrite existing.

Andyrew 02-27-2009 04:03 PM

Quote:

Originally Posted by RedTyger (Post 1756211)
Try it again with the product file attached to this post. Just upload and overwrite existing.

That fixed the error, no code been recalled in to posts so far but when a message is recalled all carriage returns are removed.

I used your text from your first post, looked ok to start with but when recalled it looks like this.

Andyrew 02-27-2009 04:21 PM

Firefox still puts in code when recalled, see before and after pictures.

Capper5016 02-27-2009 06:30 PM

Quote:

The file edit is only necessary if you intend to use autosaving with Quick Reply.

In file clientscript/vbulletin_quick_reply.js:
FIND:
PHP Code:
vB_Editor[QR_EditorID].write_editor_contents("")

REPLACE WITH:
PHP Code:
// vB Drafts
// Old
// vB_Editor[QR_EditorID].write_editor_contents("")
// vB Drafts

However, in the installation instructions, you say the edit should be made if you want to use drafts with Quick Reply.

The code you say to replace is not in the clientscript/vbulletin_quick_reply.js file.


drsli 02-27-2009 06:46 PM

I found it there.
Btw.: I can second the Firefox-issues. Anyway: I´m happy, that this great addon is maintained.

Capper5016 02-27-2009 07:22 PM

Yeah, I found it....using the search feature in notepad doesnt work.


Ok, here are a couple of issues. If you put text in the "QUICK REPLY" and hit "POST QUICK REPLY":

Quote:

The following errors occurred with your submission:
  1. The message you have entered is too short. Please lengthen your message to at least 10 characters.

If you click "GO ADVANCED" the post preview is there, the text is in the box, and the mod works correctly.

If you click "SAVE DRAFT", the text is there and the mod works correctly.


Also, when you click "SAVE DRAFT", you see the "working icon" and SAVING DRAFT....PLEASE WAIT. The "working icon then disappears, but SAVING DRAFT....PLEASE WAIT stays there.

RedTyger 02-27-2009 07:37 PM

Yes, I'm beginning to remember why I abandoned this one in the first place. I've fixed a couple more bugs and it's stable enough with the ordinary editor but I'm having terrible trouble getting it to work with WYSIWYG.

I'll get back to it after the weekend. Download has been removed and marked as Beta while I try to patch it up.


All times are GMT. The time now is 02:53 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.00994 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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