Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Default Editor Messages Details »»
Default Editor Messages
Version: 1.2.0, by Pandemikk Pandemikk is offline
Developer Last Online: Nov 2015 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.1.x Rating:
Released: 04-04-2012 Last Update: 04-05-2012 Installs: 20
DB Changes Uses Plugins
Additional Files Translations  
No support by the author.

About DEM:
Default Editor Messages (what a name) allows forum specific messages to populate the editor when users create newthreads. This, originally custom modification, has been converted into a proper vB product for vB.org users. DEM uses instances and messages in combination to allow for very specific message display and order.

Uses:
Have you or your moderators ever had to clean up messes in your community because your users simply ignore or forget the rules? Or maybe you have a specific forum where you want all new posts to follow a template and you find that no matter how much you ask it still isn't followed correctly?

Then this mod is for you! When a user makes a new thread they're most likely not going to go around reading all the rules before they do so (we can still hope, can't we?) but if a chunk of text appears right where they're typing they're bound to stop their fingers and open their eyes!

Features:
  • Fully phrased allowing for translations and multiple languages.
  • Instances! Allows for simple configuration amongst multiple forums with the same message(s).
  • Robust! If you delete a message any instances that used it will default to no bound message. Prevents errors without hindering usage.
  • An "override" setting allows for your message to populate the editor even if other text already exists in there.
  • Auto-delete / replace message(s) on post creation or, with javascript, in the editor itself with your own custom content.
  • Extensive message customization. Specify additional customizable content before and / or after message(s).
-----

Installation requires FTP access for the ACP options and navigation. Upload all files first then import the product.

Support:
Support will not be provided for vBulletin 4 Alpha, Beta or RC versions.
Low priority will be given to posters who do not have this marked as installed
In some cases, support can only be provided if I have an admin login and ftp access.

Changelog:
  • v1.0.0
    • Initial Release
  • v1.1.0
    • Feature: Auto-delete messages on post creation. Both text before and after the message(s) will remain.
    • Feature: Setting and phrase to replace deleted messages with specific text. BBCode is allowed and, if your settings allow it, HTML is allowed.
    • Feature: Phrase-able text on message quote tag. Let's your users know what exactly this message is.
    • Feature: Settings link added in the ACP navigation tab for easy access.
    • Change: Submit button text changed from edit to save when editing an instance or message.
  • v1.2.0
    • Feature: Auto-delete messages using javascript (immediately on editor focus).
    • Feature: Phrase-able text before and after notices without disrupting auto-delete / replace.
    • Feature: Expanded options for auto-delete / replace. Allows for never, always, only with javascript, only with post submission.
Notes:
See Mr. Running's post for screenshots on how to remove message wrap-arounds.

Download Now

File Type: zip dem-v1.2.0.zip (10.1 KB, 94 views)

Screenshots

File Type: jpg 1.jpg (46.6 KB, 0 views)
File Type: jpg 2.jpg (29.2 KB, 0 views)
File Type: jpg 3.jpg (44.0 KB, 0 views)
File Type: jpg 4.jpg (42.5 KB, 0 views)
File Type: jpg 5.jpg (45.1 KB, 0 views)
File Type: jpg 6.jpg (26.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:

Comments
  #22  
Old 04-05-2012, 07:03 PM
Howard Howard is offline
 
Join Date: Dec 2001
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks!
Reply With Quote
  #23  
Old 04-05-2012, 07:07 PM
Pandemikk Pandemikk is offline
 
Join Date: Jul 2009
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Howard View Post
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.
Reply With Quote
  #24  
Old 04-05-2012, 08:02 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With autodete, it would be ideal if that functioned at the start when clicking in the editor.
Reply With Quote
  #25  
Old 04-06-2012, 06:47 AM
Pandemikk Pandemikk is offline
 
Join Date: Jul 2009
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 04-06-2012, 11:03 AM
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #27  
Old 04-06-2012, 12:29 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ProSportsForums View Post
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 View Post
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 View Post
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.
Reply With Quote
  #28  
Old 04-06-2012, 12:37 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #29  
Old 04-06-2012, 01:03 PM
Pandemikk Pandemikk is offline
 
Join Date: Jul 2009
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
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 View Post
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.

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

Quote:
Originally Posted by Mr_Running View Post
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.
Reply With Quote
  #30  
Old 04-06-2012, 01:21 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pandemikk View Post
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.
Reply With Quote
Благодарность от:
Pandemikk
  #31  
Old 04-06-2012, 02:18 PM
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06118 seconds
  • Memory Usage 2,361KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete