vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   New Posting Features - Canned Replies - User Saved Text for Replies, Threads, PMs & Infractions (https://vborg.vbsupport.ru/showthread.php?t=187043)

PinkDaisy 08-07-2008 12:27 PM

Okay. So if we upgrade, how do we redo the template edits from the past ones? woudl they be okay to leave them?

bananalive 08-07-2008 12:43 PM

Quote:

Originally Posted by PinkDaisy (Post 1593362)
Okay. So if we upgrade, how do we redo the template edits from the past ones? woudl they be okay to leave them?

It should be fine but here's upgrade instructions.

** UPGRADE from previous Versions to v2.0 **

1. re-upload all files (they have changed)
2. re-upload product file (it has changed)
3. apply following template edits

Open template: newreply

find:
PHP Code:

<td><input type="text" class="bginput" name="title" value="$titlesize="50" maxlength="$vboptions[titlemaxchars]tabindex="1" title="$vbphrase[optional]/><br /><br />$cannedreplies</td

REPLACE:
PHP Code:

<td><input type="text" class="bginput" name="title" value="$titlesize="50" maxlength="$vboptions[titlemaxchars]tabindex="1" title="$vbphrase[optional]/></td

**OPTIONAL EDITS TO USE CANNED REPLIES IN NEWTHREAD**

Open template: newthread

find:
PHP Code:

<input type="text" class="bginput" name="subject" value="$subjectsize="40" maxlength="$vboptions[titlemaxchars]tabindex="1" /><br /><br />$cannedreplies 

REPLACE:
PHP Code:

<input type="text" class="bginput" name="subject" value="$subjectsize="40" maxlength="$vboptions[titlemaxchars]tabindex="1" /> 



**OPTIONAL EDITS TO USE CANNED REPLIES IN INFRACTIONS**


Open template: userinfraction

find:
PHP Code:

<td><input type="text" class="bginput" name="note" value="$notesize="50" tabindex="1" /><br /><br />$cannedreplies</td

REPLACE:
PHP Code:

<td><input type="text" class="bginput" name="note" value="$notesize="50" tabindex="1" /></td


PinkDaisy 08-07-2008 01:04 PM

Thanks.

There still is an issue with my broswer in IE, since it still don't work. LOL

bananalive 08-07-2008 01:08 PM

Quote:

Originally Posted by PinkDaisy (Post 1593384)
Thanks.

There still is an issue with my broswer in IE, since it still don't work. LOL

Ok, thanks, I have a look into that and try and include it in the next release

|Jordan| 08-07-2008 03:06 PM

Quote:

Originally Posted by bananalive (Post 1593191)
Quick Links -> User Control Panel -> Edit Your Canned Replies
Its in group Settings & Options on the left of page, directly below Edit Ignore List

I dont see it on either place and all my the templates that the plugin modifies are the default unedited vb ones.

bananalive 08-07-2008 06:14 PM

Quote:

Originally Posted by |Jordan| (Post 1593483)
I dont see it on either place and all my the templates that the plugin modifies are the default unedited vb ones.

Are you looking in the right place? I've attached a screenshot of where it will appear if your usergroup has been set up to use Canned Replies
(What version of vBulletin are you using?)

darkskies1 08-07-2008 07:42 PM

I installed the latest version, 2.0, but for some reason this is not showing up in my usergroups so I can turn it on. Any ideas why?

|Jordan| 08-07-2008 10:29 PM

Quote:

Originally Posted by bananalive (Post 1593631)
Are you looking in the right place? I've attached a screenshot of where it will appear if your usergroup has been set up to use Canned Replies
(What version of vBulletin are you using?)

I dont see it in that area. My VB is 3.7.2 Patch Level 1

bananalive 08-08-2008 07:04 AM

Quote:

Originally Posted by darkskies1 (Post 1593677)
I installed the latest version, 2.0, but for some reason this is not showing up in my usergroups so I can turn it on. Any ideas why?

Make sure you uploaded bitfield_cannedreplies2008.xml to \includes\xml\
Then logout and re-login into your admincp
Go into usergroup permissions and when you click on usergroup to edit it should appear with message 'Rebuilding Bitfields'
Also note that Canned Replies Permissions do not always appear at the bottom of the usergroup permissions page.
Quote:

Originally Posted by |Jordan| (Post 1593755)
I don't see it in that area. My VB is 3.7.2 Patch Level 1

Check your template USERCP_SHELL is not customised (ie. isnt highlighted in orange or red)
If your still have no luck, you can do the template edit yourself

Open Template USERCP_SHELL
Find
PHP Code:

$vbphrase[edit_ignore_list]</a></td></tr

Add Below:
PHP Code:

<if condition="$permissions['cannedreplies'] & $vbulletin->bf_ugp['cannedreplies']['canusecr']"><if condition="THIS_SCRIPT == 'profile' OR THIS_SCRIPT == 'private' OR THIS_SCRIPT == 'usercp'"><tr><td class=\"alt2\" nowrap=\"nowrap\"><a class=\"smallfont\" href=\"cannedreplies.php?$session[sessionurl]\">Edit Your $vbphrase[cannedreplies]</a></td></tr></if></if> 


|Jordan| 08-08-2008 05:37 PM

I found the source of the problem why the auto insert wasn't working (and why manual editing of usercp_shell wasn't working). It was because i had Icons for UserCP modification installed, and that modification loads a new usercp_shell. I uninstalled that modification and the auto insert works now. You should add that in your main post.

It would be great if this modification could support administrator set canned responses that specific usergroups could use (but not edit). For example, i have a reviews forum and reviewers need to manually copy the section headings to make the review, it would be great if they could select from a premade template with all the sections i define set for them.


All times are GMT. The time now is 11:40 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.01402 seconds
  • Memory Usage 1,775KB
  • 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
  • (8)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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