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.

dutchbb 08-08-2008 06:45 PM

I have thought of this idea myself once! Great mod, very usefull should be in the next vb release!

dutchbb 08-08-2008 07:19 PM

It doesn't seem to be working for me. In newthread.php I can see the drop down menu but when I select a canned reply it doesn't appear in the textfield. Also when trying to post the new thread I just get the expected message "too short, must be atleast x long" ?

[edit] same problem for quickreply and pm's .

PS: have to agree with briansol that the concept is great, execution could be a lot better, uninstalled for now.

PS2: FYI I'm using vbseo, maybe that's why it doesn't work, vbseo cleans out all hidden HTML code I believe.

anderow 08-08-2008 08:53 PM

Quote:

Originally Posted by dutchbb (Post 1594253)
It doesn't seem to be working for me. In newthread.php I can see the drop down menu but when I select a canned reply it doesn't appear in the textfield. Also when trying to post the new thread I just get the expected message "too short, must be atleast x long" ?

[edit] same problem for quickreply and pm's .

PS: have to agree with briansol that the concept is great, execution could be a lot better, uninstalled for now.

PS2: FYI I'm using vbseo, maybe that's why it doesn't work, vbseo cleans out all hidden HTML code I believe.

Ive got exactly the same issue....
Ive got a customised usercp_shell though so I am going to look at manually altering it now

anderow 08-08-2008 09:05 PM

Well, I did and it made no difference at all.

Im running 3.7.2 latest patch level.
It all works great EXCEPT it will not actually insert the canned reply into the body of the new post :(

had to uninstall it for now

|Jordan| 08-09-2008 06:02 PM

Quote:

Originally Posted by anderow (Post 1594318)
Well, I did and it made no difference at all.

Im running 3.7.2 latest patch level.
It all works great EXCEPT it will not actually insert the canned reply into the body of the new post :(

had to uninstall it for now

I have the same problem, i can select a canned reply but it will not insert the reply into the new post.

xyzmary2001 08-10-2008 07:52 AM

I had just installed the mod and I cannot find the place where I can enter the message and neither the possibility to use it, the box didn't appear, although I have given the permissions. Where should I look into, in USER CP or in vBulletin options?

Thanks.

bananalive 08-10-2008 09:10 AM

Quote:

Originally Posted by xyzmary2001 (Post 1595265)
I had just installed the mod and I cannot find the place where I can enter the message and neither the possibility to use it, the box didn't appear, although I have given the permissions. Where should I look into, in USER CP or in vBulletin options?

Thanks.

USERCP -> Edit Canned Replies

http://your_forum_url/cannedreplies.php

StarBuG 08-10-2008 03:13 PM

I love it!

Thank you so much!!

INSTALL

Ben E Lou 08-14-2008 09:49 AM

Great idea, but I'm getting an error when someone who is a member of the canned reply-enabled usergroup opens a thread

Quote:

Error, Can't connect to MySQL server on 'localhost' (10061)
What do you suspect that I've done wrong here?

forumguy 08-14-2008 06:22 PM

After installing the plugin I get the following db error as well:

Error, Table 'dnfrssfeeds.cannedreplies' doesn't exist

When trying to access Pm's, threads, newports etc.

DJ XtAzY 08-15-2008 01:30 AM

I get these errors when adding can replies for the first time.''

Code:

Warning: mysql_query() [function.mysql-query]: Access denied for user 'djxtazy'@'localhost' (using password: NO) in [path]/cannedreplies.php on line 112
 
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in [path]/cannedreplies.php on line 112
 
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/cannedreplies.php on line 113

Also "Edit Your Canned Replies" leads to a blank page if you're clicking the link other than from profile.php

*edit:
for those mysql errors, I simply replaced mysql_query to $db->query_read on line 112 and mysql_num_rows to $db->num_rows on line 113

Reeve of shinra 08-15-2008 02:15 AM

Everytime I see the vb staff make a post directing users to license verification, I think of a mod like this. Glad you took the time to make it happen =)

bananalive 09-15-2008 04:12 PM

Updated hack to include more usergroup permissions, to add cross-browser support and to change hack so that canned replies are not limited to 8 per user.

wastemytime 09-15-2008 05:46 PM

I got this Problem if i reply to a thread:

Code:

Warnung: Unknown(vbcr.php): failed to open stream: No such file or directory in [path]/global.php(611) : eval()'d code (Zeile 1392)

bananalive 09-15-2008 06:03 PM

Quote:

Originally Posted by wastemytime (Post 1622751)
I got this Problem if i reply to a thread:

Code:

Warnung: Unknown(vbcr.php): failed to open stream: No such file or directory in [path]/global.php(611) : eval()'d code (Zeile 1392)

Sorry I've uploaded wrong product file.

bananalive 09-15-2008 06:19 PM

Quote:

Originally Posted by bananalive (Post 1622768)
Sorry I've uploaded wrong product file.

Fixed now

wastemytime 09-15-2008 06:30 PM

Nothing changed. I get the same Error again. I deinstalled, reinstalled, template Edits, same Error.

akvaryumforum 09-15-2008 07:06 PM

Quote:

Originally Posted by wastemytime (Post 1622751)
I got this Problem if i reply to a thread:

Code:

Warnung: Unknown(vbcr.php): failed to open stream: No such file or directory in [path]/global.php(611) : eval()'d code (Zeile 1392)

Same error in the version 2.5.1

bananalive 09-15-2008 07:09 PM

Quote:

Originally Posted by wastemytime (Post 1622786)
Nothing changed. I get the same Error again. I deinstalled, reinstalled, template Edits, same Error.

Sorry about this, will be fixed in next version... working on it now.

|Jordan| 09-15-2008 07:20 PM

Ugh ... no files are uploaded.

I got the email update reminder but can't download the update ...

bananalive 09-15-2008 07:22 PM

Quote:

Originally Posted by |Jordan| (Post 1622822)
Ugh ... no files are uploaded.

I got the email update reminder but can't download the update ...

Error was found so I've released new version. Available for download now

wastemytime 09-15-2008 07:46 PM

Sorry to say that, but now i have no bitfields. I followed your help here, but its not working.

wastemytime 09-15-2008 07:50 PM

Uhm, ok, Product was not active, my fault : )

Everything is working now, thank you!

PinkDaisy 09-15-2008 08:11 PM

Should the new updated one work in my IE now?

wastemytime 09-15-2008 08:22 PM

Quote:

Originally Posted by XtAzY (Post 1598879)
Also "Edit Your Canned Replies" leads to a blank page if you're clicking the link other than from profile.php

Ok everything is working but i got the same Error now.

wastemytime 09-15-2008 08:41 PM

Also:

If i insert some URL, like your Example in one of your Screenshots, Canned Reply insert "[URL=\" instead of my Text and nothing else.

|Jordan| 09-15-2008 08:45 PM

I have version 1.4 installed, do the template edits need to be reinstalled? Have any templates changed since 1.4?

yahoooh 09-15-2008 11:24 PM

thank u

Alfa1 09-16-2008 12:17 AM

Many thanks for this hack!!!

I am experiencing some troubles:

When clicking quick reply or advanced reply, I get this message:
Quote:

Please click one of the Quick Reply icons in the posts above to activate Quick Reply.
The text does not appear in the quick reply box, when selecting a canned reply.

The text does not appear in the message box, when selecting a canned reply for a new thread.

The hack works when clicking the reply button. The hack also works well with PM and infractions.

Please add functionality for:
  • Filling in the administrative note that goes with an infraction text as well.
  • It would be awesome if admins could define canned infraction texts for all staff.
  • It would also be great if each infraction would cause a canned text to be filled into both the administrative note as infraction message.

Veer 09-16-2008 09:35 AM

I've upgraded to the latest release, and found some problem in editor mod, please check attached screen shot:


All times are GMT. The time now is 01:33 PM.

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.01677 seconds
  • Memory Usage 1,865KB
  • 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
  • (4)bbcode_code_printable
  • (8)bbcode_php_printable
  • (18)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
  • (40)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