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-02-2003 02:43 PM

Would take too much time to explain, would prefer to just help with the normal hack :)

Mathiau 04-10-2003 07:58 AM

Ignore - got it - just had to change and save an admin option and they show!

wicked hack m8 - u rule!

+Fares+ 04-12-2003 10:04 PM

filburt1 , help me with this please everything was fine , except this one to selet the canned text ..

as u see in the attach file ..the rest are working more then great except this didn't appears ..

filburt1 04-12-2003 11:09 PM

Make sure you followed the instructions and that you ran the script properly for all style sets.

+Fares+ 04-13-2003 01:09 AM

same thing i followed everything all over again but still can't get the it man :(

+Fares+ 04-17-2003 01:51 PM

evertyhign thing works more then great now :-)

any way to use the canned text in the PM too ?

Great work man !:)

filburt1 04-17-2003 03:12 PM

Yes, just get the appropriate info from the cannedtext table and use the same routine I did to clean it for Javascript.

vB-Host.com 04-25-2003 07:46 PM

In template new reply I have...
Code:

$message</textarea><br>
                        <smallfont><a href="javascript:checklength(document.vbform);">[check message length]</a>$jscannedbits </smallfont></td>

but if I reply to a message .. http://www.vb-host.com/forum/newrepl...ly&threadid=20 there is no place to get the canned text from... only the message lenth.

filburt1 04-25-2003 07:47 PM

Do you have any canned text set up in your user CP?

vB-Host.com 04-25-2003 10:09 PM

yes I sure do ... three different ones and the limit is set to 25 in the acp options

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

reismarktq2 06-11-2003 10:58 AM

Boofo: That was my guess, but I asked the question because I couldn't find the same block of code in newthread.php as in newreply.php, and I wasn't sure where to put the hack code in the file. Where did you put it in newthread.php?

As for adding more than one canned message - the code as is doesn't prevent you from doing that. If you click on the listing and pick another item, it still will add it. It's just a visual rather than a function distraction right now.

Boofo 06-11-2003 11:04 AM

If I pick a canned text from the drop down I have to set the drop down at the default (Select canned text:) before I can do another pick from the listing. I want it to go back to the default after I have picked a canned text from the listing so I can pick another one instead of having to manually going back to the default first. Does that make any sense?

In newthread, I put the same code for newreply after this:

PHP Code:

    if ($bbuserinfo[emailnotification]) {
      
$emailchecked="checked";
    } else {
            
$emailchecked='';
        }
  } 


reismarktq2 06-11-2003 11:22 AM

Quote:

Today at 08:04 AM Boofo said this in Post #102
If I pick a canned text from the drop down I have to set the drop down at the default (Select canned text:) before I can do another pick from the listing. I want it to go back to the default after I have picked a canned text from the listing so I can pick another one instead of having to manually going back to the default first. Does that make any sense?
Unfortunately, it doesn't to me, because I don't have to go back to the default... I can just select the next item and it'll add it without a problem.

Quote:

In newthread, I put the same code for newreply after this:

PHP Code:

    if ($bbuserinfo[emailnotification]) {
      
$emailchecked="checked";
    } else {
            
$emailchecked='';
        }
  } 


Thanks, this did the trick. :)

Boofo 06-11-2003 12:04 PM

Maybe it's because I only have 1 canned text in there now. I'll add a few more and try it. ;)

Glad you got it working in the newthread. I also have it in the editpost but I only have it turned on for Admins and Mods.

If there a way to have it add the canned text wherever the cursor is at? Or do we need to go in the js files for that?

Holidazed 07-01-2003 05:13 PM

Boofo, your addon for the newthread is awesome. However, you also need to follow the newreply template instructions on put them in the newhtread template instead. Works like a charm.

Awesome hack filbert. How do I add this to the PM system. I am constantly getting PMs that require the same reply. Can we add this there?

I would also like to see and option to turn off the PM Canned text like the Thread Canned text canned be turned off.

Holidazed 07-07-2003 02:39 PM

Well, it seems that only Admins and Moderators can make use of this hack. Can somebody please tell me how to make this available to everybody?

Holidazed 07-15-2003 02:15 PM

Come on guys!! I need a bit of help here.

proxyMX 07-15-2003 03:30 PM

Canned Text is sorta a macro tool then?

Sadie Frost 01-16-2004 12:50 AM

Quote:

Originally Posted by bitg
Well, it seems that only Admins and Moderators can make use of this hack. Can somebody please tell me how to make this available to everybody?

I just installed this and it worked fine for registered members as well :)

Crank 02-29-2004 03:52 PM

i have installed but am having trouble trying to integrate to the quick reply box on my site. anyone able to help please?

Nutz 03-25-2006 07:03 PM

Any chance of this being converted to 3.5?

Thanks,
Mat

GrantHorizons 04-03-2006 12:04 PM

Yes - VERY useful - but 3.5 PLEASE! :)

Nutz 04-03-2006 11:07 PM

I found the same type of hack for 3.5 :)
https://vborg.vbsupport.ru/showthrea...ght=quick+clip

Thanks,
Mat


All times are GMT. The time now is 04:18 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.01361 seconds
  • Memory Usage 1,792KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)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