Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Canned Text Details »»
Canned Text
Version: 1.00, by filburt1 filburt1 is offline
Developer Last Online: May 2007 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-19-2003 Last Update: Never Installs: 24
 
No support by the author.

This hack allows members to reply to messages with "canned text" (prewritten messages). This is useful for moderators and helpful members who find that they are constantly answering the same question over and over again.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #92  
Old 04-25-2003, 10:20 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then I don't know what to say. Make sure you followed the instructions to the letter.
Reply With Quote
  #93  
Old 04-25-2003, 11:19 PM
vB-Host.com's Avatar
vB-Host.com vB-Host.com is offline
 
Join Date: Apr 2003
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

redid the hack three times.. ran the installer three times... nothing
Reply With Quote
  #94  
Old 04-29-2003, 10:41 PM
yxboom's Avatar
yxboom yxboom is offline
 
Join Date: Jan 2003
Location: The City
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had the problems of no permission to access the canned text but did what Boofo said to just click Save in the Admin Options and it worked without any alteration to the hack. Just FYI
Reply With Quote
  #95  
Old 06-01-2003, 12:16 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wouldn't trust a whole lot of what Boofo says. He's wrong more than he is right.
Reply With Quote
  #96  
Old 06-01-2003, 03:57 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll vouch for that Bob

Nice filby

Satan
Reply With Quote
  #97  
Old 06-01-2003, 06:21 PM
Intex Intex is offline
 
Join Date: Apr 2002
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great. Excellent idea Filburt1. I had a problem initially. I couldn't see the canned text drop-down and had the permission denied message when selecting the link for the Canned Text in the usercp.

I read a little further on and noticed that the reason was because you needed to visit the admincp and just save the options to activate everything. Once I'd done this - everything worked fine. May be a good idea to update the instructions to help others .

[high]* Intex clicks install.[/high]
Reply With Quote
  #98  
Old 06-01-2003, 07:34 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 11:57 AM hellsatan said this in Post #95
I'll vouch for that Bob

Nice filby

Satan
You're only saying that because it's true.

Test time! Ok, Chris, you should know this one, then. How do I edit the javascript to allow me to add the canned text to a message instead of it replacing a message in a reply?
Reply With Quote
  #99  
Old 06-10-2003, 06:37 PM
reismarktq2 reismarktq2 is offline
 
Join Date: Feb 2003
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Test time! Ok, Chris, you should know this one, then. How do I edit the javascript to allow me to add the canned text to a message instead of it replacing a message in a reply?
You guys are going to be kicking yourselves: Changing the code so that the canned text is added to the message instead of replacing the message only requires the addition of ONE CHARACTER to ONE LINE of code.

In the newreply template, find:
PHP Code:
if (number != 0document.vbform.message.value cannedtext[number]; 
Change it to:
PHP Code:
if (number != 0document.vbform.message.value += cannedtext[number]; 
Just goes to show you that nine hundred-ninety-nine times out of a thousand, the answer is simpler than we expect it to be...

Now I have a question of my own: Any idea how I can add the canned text drop-down to my newthread.php, so that my users can use their canned text when posting a new thread?
Reply With Quote
  #100  
Old 06-10-2003, 06:39 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That won't insert it at the caret, but still good nonetheless
Reply With Quote
  #101  
Old 06-10-2003, 11:26 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much, reismarktq2. That works a lot better than it did. Any idea how to reset the drop down after we pick a canned text from the listing so we can add more than one per message if needed?

By the way, I have it in the newthread also. Basically just do the same thing in newthread as you did in the newreply and it will work.
Reply With Quote
Reply


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 08:03 PM.


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.11578 seconds
  • Memory Usage 2,309KB
  • Queries Executed 27 (?)
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
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete