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)
-   -   New Posting Features - Default Editor Messages (https://vborg.vbsupport.ru/showthread.php?t=281140)

Howard 04-05-2012 07:03 PM

Great mod! Any way we can make it so that it doesn't say 'quote editor message'?

Thanks!

Pandemikk 04-05-2012 07:07 PM

Quote:

Originally Posted by Howard (Post 2317116)
Great mod! Any way we can make it so that it doesn't say 'quote editor message'?

Thanks!

Search phrase: pan_dem_editor_replace

The ability to remove the quote tag isn't available yet as I still have to figure out a way to remove the content without it.

Hornstar 04-05-2012 08:02 PM

With autodete, it would be ideal if that functioned at the start when clicking in the editor.

Pandemikk 04-06-2012 06:47 AM

Your wish is my command. ;)

v1.2.0 Released!
Included is the ability to delete / replace messages when clicking the editor. Also included, ability to customize the default quote tag that wraps around the message(s) with your own text.

To upgrade simply reimport the product with overwrite.

Mr_Running 04-06-2012 11:03 AM

These two options behave same/similar
Always Replace:
- Replace messages everywhere.
Only Javascript:
- Only replace messages using javascript (before message is posted).
Please clarify for the guy who may need some sleep. :)

Is there an option to not have Phrase text before and after notices?

djbaxter 04-06-2012 12:29 PM

Quote:

Originally Posted by ProSportsForums (Post 2317020)
Database error in vBulletin 4.1.11:

Invalid SQL:

SELECT messageid, title, active FROM vb_pan_dem_messages
ORDER BY dateline DESC;

MySQL Error : Table 'rhens1.vb_pan_dem_messages' doesn't exist
Error Number : 1146
Request Date : Thursday, April 5th 2012 @ 07:36:02 AM
Error Date : Thursday, April 5th 2012 @ 07:36:02 AM
Script : http://www.prosportsinteractive.net/...=modifymessage
Referrer : http://www.prosportsinteractive.net/...dex.php?do=nav
IP Address : 24.94.41.199
Username : Mike
Classname : vB_Database
MySQL Version : 5.0.92-log

Database error in vBulletin 4.1.11:

Invalid SQL:

SELECT
instance.instanceid, instance.title, instance.messageid, instance.displayorder,
message.title AS message_title, message.active,
forum.title AS forum_title
FROM vb_pan_dem_instances AS instance
LEFT JOIN vb_pan_dem_messages AS message USING(messageid)
LEFT JOIN vb_forum AS forum USING(forumid)
ORDER BY instance.displayorder ASC;

MySQL Error : Table 'rhens1.vb_pan_dem_instances' doesn't exist
Error Number : 1146
Request Date : Thursday, April 5th 2012 @ 07:33:46 AM
Error Date : Thursday, April 5th 2012 @ 07:33:47 AM
Script : http://www.prosportsinteractive.net/...modifyinstance
Referrer : http://www.prosportsinteractive.net/...dex.php?do=nav
IP Address : 24.94.41.199
Username : Mike
Classname : vB_Database
MySQL Version : 5.0.92-log

Quote:

Originally Posted by ProSportsForums (Post 2317092)
The tables were created in the database. It simply isn't reading them.

Could be a compatibility issue with vBSEO ... I'll do some digging.
I like this mod and hope to get it working.

Quote:

Originally Posted by Pandemikk (Post 2317108)
That makes zero sense. Have you tried using that query directly in phpmyadmin or some sort?

It may make zero sense but I can confirm that it happens. Also using vBSEO with vBulletin 4.1.11 PL1.

djbaxter 04-06-2012 12:37 PM

And here is the reason: Your product file does not properly allow for table prefixes in creating tables so that subsequently when the system looks for the table {prefix}pan_dem_messages that table does not exist - only the table {noprefix}pan_dem_messages exists.

The same problem exists for table pan_dem_instances'.

Nothing to do with vBSEO. It's a bug in the product.

Pandemikk 04-06-2012 01:03 PM

Quote:

Originally Posted by djbaxter (Post 2317350)
And here is the reason: Your product file does not properly allow for table prefixes in creating tables so that subsequently when the system looks for the table {prefix}pan_dem_messages that table does not exist - only the table {noprefix}pan_dem_messages exists.

The same problem exists for table pan_dem_instances'.

Nothing to do with vBSEO. It's a bug in the product.

Could have just said: "You forgot to add the table prefix constant". :)


Quote:

Originally Posted by djbaxter (Post 2317347)
It may make zero sense but I can confirm that it happens. Also using vBSEO with vBulletin 4.1.11 PL1.

Sorry about that, probably the first time I ever forgot to put table_prefix in there. We all make mistakes. :D

Reimport the product and it should be all good to go.

Quote:

Originally Posted by Mr_Running (Post 2317324)
These two options behave same/similar
Always Replace:
- Replace messages everywhere.
Only javascript:
- Only replace messages using javascript (before message is posted).
Please clarify for the guy who may need some sleep. :)

Is there an option to not have Phrase text before and after notices?

They're pretty much idential- but the second option allows for browsers without javascript enabled or very old browsers to still post the message without having the message removed. Another difference, it allows for the message to be intentionally posted e.g copy and pasting a notice.

Perhaps not the most useful, but I thought I'd throw it in there as maybe a person or two might wish to use it.

That option doesn't exist because it is redundant. Simply edit the phrase to a space and that will do what you need. In the next version, I'm going to take it a step further and allow per-instance content before and after the message(s) including an easier way to specify none.

djbaxter 04-06-2012 01:21 PM

Quote:

Originally Posted by Pandemikk (Post 2317357)
Could have just said: "You forgot to add the table prefix constant".

At the time of my first post, I had the error but had not yet determined the reason so just confirmed that the error existed.

I was later able to identify the source of the error and posted again to let you and others know.

Thanks for the quick fix. Can confirm that it now installs correctly.

Mr_Running 04-06-2012 02:18 PM

1 Attachment(s)
v1.2.0

Ability to remove the quote tag --> edit the phrases to a space
Search in Phrases
Code:

pan_dem_editor_replace

Add Space Key
Code:

pan_dem_editor_replace_begin
Attachment 137594



Add Space Key
Code:

pan_dem_editor_replace_end
Attachment 137595




To remove the message default

Add Space Key
Code:

pan_dem_message_default_end
Attachment 137597


All times are GMT. The time now is 02:16 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.01127 seconds
  • Memory Usage 1,751KB
  • 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_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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