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)

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?


All times are GMT. The time now is 03:55 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.01175 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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