vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Canned Text (https://vborg.vbsupport.ru/showthread.php?t=50513)

filburt1 04-25-2003 10:20 PM

Then I don't know what to say. Make sure you followed the instructions to the letter.

vB-Host.com 04-25-2003 11:19 PM

redid the hack three times.. ran the installer three times... nothing

yxboom 04-29-2003 10:41 PM

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 :)

Boofo 06-01-2003 12:16 PM

I wouldn't trust a whole lot of what Boofo says. He's wrong more than he is right.

Chris M 06-01-2003 03:57 PM

I'll vouch for that Bob;):p

Nice filby;)

Satan

Intex 06-01-2003 06:21 PM

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]

Boofo 06-01-2003 07:34 PM

Quote:

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

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?

reismarktq2 06-10-2003 06:37 PM

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?

filburt1 06-10-2003 06:39 PM

That won't insert it at the caret, but still good nonetheless ;)

Boofo 06-10-2003 11:26 PM

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. ;)


All times are GMT. The time now is 06:33 AM.

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.01112 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_php_printable
  • (2)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