PDA

View Full Version : New Posting Features - Canned Replies - User Saved Text for Replies, Threads, PMs & Infractions


Pages : [1] 2

bananalive
08-01-2008, 10:00 PM
Canned Replies for vBulletin 4.x Version here (https://vborg.vbsupport.ru/showthread.php?t=241309)


Description:
This mod allows each user to store standard replies which they can quickly access upon creating a reply, thread, pm or infraction.
[Demo here (http://bananalive.co.cc) - registered members have permissions to use canned replies]

Features:
Adding and editing canned replies is fully integrated into the User CP with vBulletin Editor. [+]
(https://vborg.vbsupport.ru/attachment.php?attachmentid=85126&stc=1&d=1218116695)Quick Link -> User Control Panel;
Then scroll down page and you will see 'Edit your Canned Replies'
url to canned replies is http://www.your-forum.com/cannedreplies.php
Permissions can be set per usergroup
(AdminCP -> Usergroups -> Usergroup Manager -> {Select Usergroup} -> Can use Canned Replies)
(AdminCP -> Usergroups -> Usergroup Manager -> {Select Usergroup} -> Maximum Canned Replies Per User)
Quickly Reply with Standard Message either in Quick Reply [+] (https://vborg.vbsupport.ru/attachment.php?attachmentid=84947&stc=1&d=1218116876) or Advanced Reply [+] (https://vborg.vbsupport.ru/attachment.php?attachmentid=84946&stc=1&d=1218117037)
Can also be used in NewThread [+] (https://vborg.vbsupport.ru/attachment.php?attachmentid=84992&stc=1&d=1218117037) User Infractions [+] (https://vborg.vbsupport.ru/attachment.php?attachmentid=84991&stc=1&d=1218117037) and PM SystemInstallation:
Follow instructions included in .zip
Click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=187043) Future Features:
Request new features in commentsModification Conflicts:
Icons for UserCP (https://vborg.vbsupport.ru/showthread.php?t=170558) uses different usercp_shell so auto-insert link plugin doesn't work in UserCP. Click here (https://vborg.vbsupport.ru/showpost.php?p=1627557&postcount=107) to see manual template edits needed.Translations:
German/ Deutsch: http://www.vbulletin-germany.org/showthread.php?p=52187Suggestions: If you have a suggestion about this modification, please get in touch here (https://vborg.vbsupport.ru/newreply.php?do=newreply&noquote=1&p=1590065)
Donations: If you want to donate please click 'Support Developer'

Spank
08-02-2008, 07:00 PM
First download ^_^ Thanks for making this, it will come in very handy. *goes away to install and test*

yahoooh
08-02-2008, 07:04 PM
it should have edetor in the user cp

djr
08-02-2008, 07:07 PM
Finally! Excellent! I'll have to wait for the permission based version though, as I only want this for moderators and up. Any timeframe for the additional features?

ishare
08-02-2008, 07:08 PM
I beleive its very usefull addon.
It may sound u strange but, is it also possible to use it in newthread template as well ?
Why am i asking this ? For all movie reviews, we use the same template. Then we edit this template with the movie details we gonna post. So this kind of addon would make our job much easier, if we could choose the template (there are 4 different templates) from the selection box...
Thanks in advance

M-Tuning
08-02-2008, 07:30 PM
Finally! Excellent! I'll have to wait for the permission based version though, as I only want this for moderators and up. Any timeframe for the additional features?

+1, nice hack!

bananalive
08-02-2008, 07:49 PM
Finally! Excellent! I'll have to wait for the permission based version though, as I only want this for moderators and up. Any timeframe for the additional features?
I'll aim to do this next, probably early next week, depends on whether I encounter any glitches.
it should have editor in the user cp
I'll be integrating vB_editor after I've added the usergroup permissions.
I beleive its very usefull addon.
It may sound u strange but, is it also possible to use it in newthread template as well ?
Why am i asking this ? For all movie reviews, we use the same template. Then we edit this template with the movie details we gonna post. So this kind of addon would make our job much easier, if we could choose the template (there are 4 different templates) from the selection box...
Thanks in advance
Good idea I'll look at adding that as optional extra

djr
08-02-2008, 08:04 PM
I'll aim to do this next, probably early next week, depends on whether I encounter any glitches.Thanks, very much appreciated.

I think I can code this myself, but asking never hurts: would you please look into integrating this within the infraction system? (if PM's are required, like we do). I believe the correct template is userinfraction, but I'm not really sure , since I only see a reference to $messagearea. Integration with the infraction system would be most helpful for us :up:

Do you accept donations?

Lynne
08-02-2008, 08:09 PM
I beleive its very usefull addon.
It may sound u strange but, is it also possible to use it in newthread template as well ?
Why am i asking this ? For all movie reviews, we use the same template. Then we edit this template with the movie details we gonna post. So this kind of addon would make our job much easier, if we could choose the template (there are 4 different templates) from the selection box...
Thanks in advance
You might want to look at the Stencil Hack if you only need one template per forum.

This looks nice, bananalive! I'll be waiting for the permission based one (although I imagine if I only want it for mods/admins I could add the conditionals myself?).

sinucello
08-03-2008, 04:16 AM
Hi,
Finally! Excellent! I'll have to wait for the permission based version though, as I only want this for moderators and up. Any timeframe for the additional features?
I agree, it`s a very useful mod. If you want it for moderators, am I right when I assume the mod also works for private messages?

all the best,
Sacha

Hasann
08-03-2008, 04:24 AM
nice but this modification don't use vbulletin standarts coding style sorry it is not for me at all you should code with vbulletin standarts

youradhere4222
08-03-2008, 07:11 AM
Great idea and good work!

Like said, I'll install this when it's for moderators/super moderators/administrators only. I also don't think that they should have the ability to edit it. It should be editable via the ACP for all staff members...

dadoc
08-03-2008, 07:27 AM
A great Idea bananalive, its great to see new ideas for mods that are totally original

I would love to mark this as installed but I only want it for staff use.

I have tagged it an I will follow the updates.

Nice work!

M-Tuning
08-03-2008, 02:18 PM
oh, and it would be great too if you would use phrases.

So I and others users can translate it faster and easier.

Alfa1
08-03-2008, 11:25 PM
I think I can code this myself, but asking never hurts: would you please look into integrating this within the infraction system? (if PM's are required, like we do). I believe the correct template is userinfraction, but I'm not really sure , since I only see a reference to $messagearea. Integration with the infraction system would be most helpful for us :up:

Yes, canned infraction texts would be most welcome.

nice but this modification don't use vbulletin standarts coding style sorry it is not for me at all you should code with vbulletin standarts
I hope there is no serious problem. Please explain what is wrong.

bananalive
08-04-2008, 07:10 AM
I've updated this to v1.1 which includes usergroup permissions and optional template edits for use of canned replies in newthread and userinfractions.

briansol
08-04-2008, 06:17 PM
nice but this modification don't use vbulletin standarts coding style sorry it is not for me at all you should code with vbulletin standarts

agreed.

This is not coded very well and uses 8 queries where 1 would suffice.

good concept, bad execution.

http://www.vbulletin.com/docs/html/main/codestandards

PinkDaisy
08-04-2008, 08:09 PM
I have installed this. Everything seems to be working okay, but when I go to use it to test it, I get:

The following errors occurred with your submission
The message you have entered is too short. Please lengthen your message to at least 1 characters.

-----------

any ideas? it even happens if I put a smilie in the box.

PinkDaisy
08-04-2008, 08:20 PM
oh and it seems to work okay for my other admin, but not for me. ??

JoomlArt
08-05-2008, 03:21 AM
I have installed this. Everything seems to be working okay, but when I go to use it to test it, I get:

The following errors occurred with your submission
The message you have entered is too short. Please lengthen your message to at least 1 characters.

-----------

any ideas? it even happens if I put a smilie in the box.

I have the same problem. When we choose the canned replies from dropdown list. The text is not prefilled into the editor textarea.
vBulletin? Version 3.7.0

Hornstar
08-05-2008, 06:23 AM
What about the pm system? will it work there?

bananalive
08-05-2008, 12:56 PM
This is not coded very well and uses 8 queries where 1 would suffice.
good concept, bad execution.
http://www.vbulletin.com/docs/html/main/codestandards
The next version comes with less queries, available later today.
I have installed this. Everything seems to be working okay, but when I go to use it to test it, I get:

The following errors occurred with your submission
The message you have entered is too short. Please lengthen your message to at least 1 characters.

-----------

any ideas? it even happens if I put a smilie in the box.oh and it seems to work okay for my other admin, but not for me. ??
What is the exact title and message you are trying to use (you can pm it to me if it contains personal info)?
I have the same problem. When we choose the canned replies from dropdown list. The text is not prefilled into the editor textarea.
vBulletin? Version 3.7.0
Have you applied the template edits? Is the editor box active?
What about the pm system? will it work there?
No currently, I will release the template edits necessary for this in the next release, available later today.

JoomlArt
08-05-2008, 04:07 PM
Originally Posted by JoomlArt View Post

I have the same problem. When we choose the canned replies from dropdown list. The text is not prefilled into the editor textarea.
vBulletin? Version 3.7.0

Have you applied the template edits? Is the editor box active?

Yes I have applied and double check.

I should suggest testing with all type of editor (simple , standard, full editor) of vbu because the textarea ID keep changing when users switch to other mode.

Later on today, I have removed some javascript and they works. However, when I switch to other editor modes https://vborg.vbsupport.ru/external/2011/07/26.gif , it stop working

Thank you for releasing new version today. I am eager to be the one to download the new version

bananalive
08-05-2008, 07:19 PM
Yes I have applied and double check.

I should suggest testing with all type of editor (simple , standard, full editor) of vbu because the textarea ID keep changing when users switch to other mode.

Later on today, I have removed some javascript and they works. However, when I switch to other editor modes https://vborg.vbsupport.ru/external/2011/07/26.gif , it stop working

Thank you for releasing new version today. I am eager to be the one to download the new version
I have coded and tested it for the WYSIWYG and standard editors (defaults). Are you using the basic editor?
On which template are you referring to?

bananalive
08-05-2008, 07:22 PM
v1.2 Released
- streamlined code
- additional template edits available for use with PM system

You are recommended to update from previous versions. Please note the template edits are now different.

PinkDaisy
08-05-2008, 10:24 PM
I updated and still am having the same problems. :(

Koroku
08-06-2008, 12:15 AM
I didn't see the Canned Replies drop downs anywhere...

bananalive
08-06-2008, 08:51 AM
I updated and still am having the same problems. :(
The current version only works when using the enhanced interface. I am looking into fixing this.
I didn't see the Canned Replies drop downs anywhere...
Update to the latest version, and apply template edits.

Internetcafe
08-06-2008, 10:31 AM
I didn't see the Canned Replies drop downs anywhere...

Just upgraded to 1.4 and all template edits done .. usergroup permissions set to YES !?

OcR Envy
08-06-2008, 01:31 PM
I do not see canned replies anywhere as well. Also had to manually edit my usercp in order to get the link to show up.

Template edits where done and usergroup permissions where yes.
Appears to be some kind of error in your code while including the php file as $cannedreplies returns nothing.

bananalive
08-06-2008, 02:20 PM
Just upgraded to 1.4 and all template edits done .. usergroup permissions set to YES !?

I do not see canned replies anywhere as well. Also had to manually edit my usercp in order to get the link to show up.

Template edits where done and usergroup permissions where yes.
Appears to be some kind of error in your code while including the php file as $cannedreplies returns nothing.

Sorry about that, I've uploaded v1.4 again, just re-import the product (this fixes the dropdown menu appearing and also the link displaying in usercp)

JoomlArt
08-06-2008, 02:23 PM
The same here. 1.4 version installed. template edits as instructed. Nothing show up

bananalive
08-06-2008, 02:49 PM
The same here. 1.4 version installed. template edits as instructed. Nothing show up
Try downloading the zip again here (https://vborg.vbsupport.ru/attachment.php?attachmentid=85067&d=1218035816) and importing the product again. I updated it only 3 mins before your post.

JoomlArt
08-06-2008, 02:57 PM
Thanks for your effort so far. It seems to work now. But in FF3, it only work if I change the editor mode to wysiwyg. In Plain text mode, when I change the canned reply from the drop down the text is in textarea is not changed.

bananalive
08-06-2008, 03:03 PM
Thanks for your effort so far. It seems to work now. But in FF3, it only work if I change the editor mode to wysiwyg. In Plain text mode, when I change the canned reply from the drop down the text is in textarea is not changed.
Canned Replies works fully with Enhanced Interface - Full WYSIWYG Editing; I am currently working on finding a way for its use in Basic & Standard Editors.

Internetcafe
08-06-2008, 03:12 PM
Sorry about that, I've uploaded v1.4 again, just re-import the product (this fixes the dropdown menu appearing and also the link displaying in usercp)

Working fine now .. thanks :up:

PinkDaisy
08-06-2008, 11:16 PM
Okay, not sure if this matters. I just tested this in another browser on my site, I just used netscape and it worked fine. But for IE7, it seems to not work for me. So this is a browswer issue for me, not sure why tho.

|Jordan|
08-07-2008, 04:29 AM
I installed the plugin, did all the template edits and enabled it for my usergroups and i still dont see the link in usercp. I installed version 1.4.4

bananalive
08-07-2008, 07:22 AM
I installed the plugin, did all the template edits and enabled it for my usergroups and i still dont see the link in usercp. I installed version 1.4.4
Quick Links -> User Control Panel -> Edit Your Canned Replies
Its in group Settings & Options on the left of page, directly below Edit Ignore List

bananalive
08-07-2008, 11:54 AM
**update**

v2.0 additions
- completely recoded
- less template edits
- vB editor integrated into adding/editing canned replies

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
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:
<td><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="$vboptions[titlemaxchars]" tabindex="1" title="$vbphrase[optional]" /><br /><br />$cannedreplies</td>REPLACE:
<td><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="$vboptions[titlemaxchars]" tabindex="1" title="$vbphrase[optional]" /></td>
**OPTIONAL EDITS TO USE CANNED REPLIES IN NEWTHREAD**

Open template: newthread

find:
<input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" /><br /><br />$cannedrepliesREPLACE:
<input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" />

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

Open template: userinfraction

find:
<td><input type="text" class="bginput" name="note" value="$note" size="50" tabindex="1" /><br /><br />$cannedreplies</td>REPLACE:
<td><input type="text" class="bginput" name="note" value="$note" size="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
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
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
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
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
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.
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
$vbphrase[edit_ignore_list]</a></td></tr>
Add Below:
<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 (https://vborg.vbsupport.ru/showthread.php?t=170558) 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
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
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
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

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.''


Warning: mysql_query() [function.mysql-query (http://www.animeost.net/testvb/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 (http://www.animeost.net/testvb/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:

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
I got this Problem if i reply to a thread:

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
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
I got this Problem if i reply to a thread:

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
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
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 (https://vborg.vbsupport.ru/showpost.php?p=1593891&postcount=49), 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
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:
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:

bananalive
09-16-2008, 12:59 PM
Should the new updated one work in my IE now?
Yes
If i insert some URL, like your Example in one of your Screenshots, Canned Reply insert instead of my Text and nothing else.
Didnt notice that, fixed that in 2.5.4
I have version 1.4 installed, do the template edits need to be reinstalled? Have any templates changed since 1.4?
Different JavaScript is used so will need to remove any old template edits and then apply new template edits. I'm trying to reduce template edits but I'm having problems defining the vBeditor
The text does not appear in the quick reply box, when selecting a canned reply.
Sorry I put in conditional variable when I shouldn't have, fixed in v2.5.4
I've upgraded to the latest release, and found some problem in editor mod, please check attached screen shot:
Yes i've noticed this; if you click https://vborg.vbsupport.ru/external/2011/07/26.gif twice then it displays properly

bananalive
09-16-2008, 01:38 PM
Uploaded v2.5.4 with fixes mentioned above.

PinkDaisy
09-16-2008, 05:29 PM
Works great! Thanks!!

wastemytime
09-16-2008, 05:36 PM
Thanks for your Updates, but now i have this Link inserted:

http://\"http//www.myhompage/forumdisplay.php?f=666\%22

and there are no breaks between my sentences.

bananalive
09-16-2008, 05:47 PM
Thanks for your Updates, but now i have this Link inserted:

http://\"http//www.myhompage/forumdisplay.php?f=666\%22

and there are no breaks between my sentences.
The javascript (template edits) have changed so you need to reapply them.

wastemytime
09-16-2008, 06:01 PM
Ah, ok. But sorry to annoy you : )

Links are working now, but there is still no Space and Break between my sentences.

bananalive
09-16-2008, 06:06 PM
Ah, ok. But sorry to annoy you : )

Links are working now, but there is still no Space and Break between my sentences.
Which editor are you using (simple, standard, or enhanced)?
Quick Links -> Edit Options -> Miscellaneous Options -> Miscellaneous Options
Which internet browser are you using?
IE? Firefox? Opera?
Which template/page are you using?
(showthread, new reply, new thread, pm, infractions)

wastemytime
09-16-2008, 06:18 PM
Which editor are you using (simple, standard, or enhanced)?
Standard

Which internet browser are you using?
Firefox (I tried in IE too, but same error)

Which template/page are you using?
Quick Reply, Advanced Reply, User Infractions, PM System

bananalive
09-16-2008, 06:34 PM
Standard


Firefox (I tried in IE too, but same error)


Quick Reply, Advanced Reply, User Infractions, PM System
What bbcode are you using in the canned reply?

(If it doesnt contain personal info then you can pm it to me and I'll test the code on my vbulletin forum)

wastemytime
09-16-2008, 06:58 PM
I use only the Standard BBCodes, like



So, now there is a Space...but no break.

In my canned replies, my Editor shows it correct.

My Test
Blah

My 2nd Test
Blah blah


If i answer with it, it shows:

My Test Blah My 2nd Test Blah blah

wastemytime
09-16-2008, 07:00 PM
I use only the Standard BBCodes, like



So, now there is a Space...but no break.

In my canned replies from my USER CP, my Editor shows it correct.

My Test
Blah

My 2nd Test
Blah blah


If i answer with it, it shows:

My Test Blah My 2nd Test Blah blah

bananalive
09-16-2008, 07:20 PM
I use only the Standard BBCodes, like



So, now there is a Space...but no break.

In my canned replies from my USER CP, my Editor shows it correct.

If i answer with it, it shows:
Have you removed the old javascript/ template edits?

wastemytime
09-16-2008, 07:34 PM
Have you removed the old javascript/ template edits? Yes.

Veer
09-16-2008, 07:54 PM
upgraded to 2.5.5 removed template edits, uploaded files, but still need to click twice then it displays.

pnosko31
09-16-2008, 08:19 PM
since i pretty much use this on my forum for infraction messages my suggestion would be for the admin to be able to add some default messages which can be used for everyone

djr
09-18-2008, 03:48 PM
since i pretty much use this on my forum for infraction messages my suggestion would be for the admin to be able to add some default messages which can be used for everyone
I would love to see this as well. It would make it the perfect hack :) (it's already near perfect btw and nominated and rated accordingly)

DjEddie
09-20-2008, 09:56 AM
Hi,

I've installed this a couple of times with the different version, i now have the latest version installed but still cant get it to work.

All installed ok, but when coming to add a canned reply, it shows the title field correctly but the Reply field it doesn't give me a box to type in the canned reply?

Can anyone help on this please .. thank you :)

bananalive
09-20-2008, 10:05 AM
Hi,

I've installed this a couple of times with the different version, i now have the latest version installed but still cant get it to work.

All installed ok, but when coming to add a canned reply, it shows the title field correctly but the Reply field it doesn't give me a box to type in the canned reply?

Can anyone help on this please .. thank you :)

Have you enabled permissions to your usergroup to use canned replies and set the number of canned replies your usergroup is allowed. (Also check secondary usergroups.)

DjEddie
09-20-2008, 10:33 AM
Hi, Yep i've only got it on mine set atm, admin, and the amount has been set too, but still the same problem :) as it all comes up apart from the box for me to put the canned reply in. the field title is the "Reply" just not the area to type in

bananalive
09-20-2008, 10:43 AM
Hi, Yep i've only got it on mine set atm, admin, and the amount has been set too, but still the same problem :) as it all comes up apart from the box for me to put the canned reply in. the field title is the "Reply" just not the area to type in
What version of vBulletin are you using?
Have you installed any modifications that alter the messagearea/vBeditor?

DjEddie
09-20-2008, 02:49 PM
im using vb 3.7.3 patch 1 .... and nope no modification to alter message area :)

bananalive
09-20-2008, 03:37 PM
im using vb 3.7.3 patch 1 .... and nope no modification to alter message area :)
When you are uploading cannedreplies.php have you checked 'Allow Overwrite'?

DjEddie
09-20-2008, 04:31 PM
yep ... i know how to work vb modding etc, just not sure why this isn't showing

DjEddie
09-21-2008, 08:25 PM
Heres what comes up then in user control panel and I click the link, no room to put reply in ... when i put the title only and click save it just brings me back to the page to click the link to add a reply in.

bananalive
09-22-2008, 08:02 AM
Heres what comes up then in user control panel and I click the link, no room to put reply in ... when i put the title only and click save it just brings me back to the page to click the link to add a reply in.
Do you have smilies disabled?

jluerken
09-22-2008, 08:29 AM
Hi bananalive,

I want to use your modification but I also use the "Icons for UserCP" Addon.
Your first post says:

Modification Conflicts:

* Icons for UserCP uses different usercp_shell so auto-insert link plugin doesn't work in UserCP

Is there a way to use both?

bananalive
09-22-2008, 08:49 AM
I want to use your modification but I also use the "Icons for UserCP" Addon.

Is there a way to use both?
Yes, but there wont be icon for canned replies.

First, install both modifications

Find in template USERCP_SHELL_ICONS
$vbphrase[edit_ignore_list]</a></td>
</tr>
</table>
</td></tr>

After Place
<tr><td class="alt2" nowrap="nowrap">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td>
<td><a class="smallfont" href="cannedreplies.php?$session[sessionurl]">Edit Your $vbphrase[cannedreplies]</a></td>
</tr>
</table>
</td></tr>

DjEddie
09-22-2008, 09:22 AM
Do you have smilies disabled?

no, smilies are enabled on site

tuwebfacil
09-22-2008, 09:24 AM
Great one!! thanks!!!

bananalive
09-22-2008, 12:22 PM
no, smilies are enabled on site
Sorry, I've run out of ideas. You could try uninstalling Canned Replies and then reinstalling it.

xorex
10-18-2008, 01:27 AM
Heres what comes up then in user control panel and I click the link, no room to put reply in ... when i put the title only and click save it just brings me back to the page to click the link to add a reply in.

I have similar problem :(

https://vborg.vbsupport.ru/external/2008/10/30.jpg

dengbej
10-18-2008, 01:43 AM
good idea for short reply :)

thanks

xorex
10-18-2008, 02:16 AM
problem whith hack GTPosting Rules (https://vborg.vbsupport.ru/showthread.php?t=129349&highlight=GTPosting+Rules) if turn off it s work good canned replies !

wastemytime
10-18-2008, 02:17 AM
Any news with the Problems i have with my not showing <br /> Breaks if i answer with it? I tried everything, but i have no solutions.

bananalive
10-18-2008, 09:58 AM
I have similar problem :(

https://vborg.vbsupport.ru/attachment.php?attachmentid=87175&d=1222032198
try adding $vBeditTemplate[clientscript] at beginning of template cr_edit
Any news with the Problems i have with my not showing <br /> Breaks if i answer with it? I tried everything, but i have no solutions.

What vbeditor are you using and what vbulletin version?

wastemytime
10-18-2008, 12:26 PM
<a href="https://vborg.vbsupport.ru/showpost.php?p=1623576&postcount=91" target="_blank">Here</a> is my Problem.

Editor: Standard Editor,
Browser: Firefox or IE - same Problem
I use (better, i want to use...) it for Quick Reply. Advanced Reply, NewThread, User Infractions, and PM System

bananalive
10-18-2008, 01:20 PM
Here (https://vborg.vbsupport.ru/showpost.php?p=1623576&postcount=91) is my Problem.

Editor: Standard Editor,
Browser: Firefox or IE - same Problem
I use (better, i want to use...) it for Quick Reply. Advanced Reply, NewThread, User Infractions, and PM System

Have you tried uninstalling canned replies completely and then reinstalling it?

wastemytime
10-18-2008, 02:16 PM
Have you removed the old javascript/ template edits?

Yes.

Have you tried uninstalling canned replies completely and then reinstalling it?

Yes.

Julie
10-18-2008, 02:58 PM
Works like a charm! :) Thanks!

Alfa1
10-18-2008, 04:51 PM
Indeed it does. Many thanks!

Please add a way to set standard infraction texts. Simply allowing admins to set canned replies that are available to all moderators would already do this.
Attaching certain canned replies to certain infractions & warnings would be a more sophisticated way. This way moderators would not have to select the correct text anymore.

Simon Lloyd
10-20-2008, 10:52 PM
Bananalive, nice hack ;) i'm using it on 3.7.3 without problems, one request if you would, i would want to create a set of canned responses for my mods to use and a set for my admin, i dont want the mods to be able to set their own i want us all singing from the same sheet as it were!

Is there a way to store the canned responses and perhaps set an IF condition somewhere something like <if condition="is_member_of($bbuserinfo,2)">....cannedreplies i'm no coder and i copied that if condition from something else, but is it possible?

If you can supply the code and where to put it i am capable of that!

bananalive
10-21-2008, 11:07 AM
Bananalive, nice hack ;) i'm using it on 3.7.3 without problems, one request if you would, i would want to create a set of canned responses for my mods to use and a set for my admin, i dont want the mods to be able to set their own i want us all singing from the same sheet as it were!

Is there a way to store the canned responses and perhaps set an IF condition somewhere something like <if condition="is_member_of($bbuserinfo,2)">....cannedreplies i'm no coder and i copied that if condition from something else, but is it possible?

If you can supply the code and where to put it i am capable of that!

Try this... (it makes everyone share canned replies)

Give yourself full canned replies permissions.

Give your mods the following permissions:
Can use Canned Replies: Yes
Maximum Canned Replies per User: 0

Find and delete in plugin 'Canned Replies'
WHERE userid=$userid

This will achieve:

You (Administrators) can add/ edit/ use canned replies
Moderators can view/use canned replies

Simon Lloyd
10-21-2008, 12:39 PM
Try this... (it makes everyone share canned replies)

Give yourself full canned replies permissions.

Give your mods the following permissions:
Can use Canned Replies: Yes
Maximum Canned Replies per User: 0

Find and delete in plugin 'Canned Replies'
WHERE userid=$userid

This will achieve:

You (Administrators) can add/ edit/ use canned replies
Moderators can view/use canned replies
Thanks for the prompt reply, i looked at the plugin(s) and the one called Canned replies i couldn't find your suggestion but found this "cannedreplies WHERE userid=$userid ORDER BY title ASC") is it the entire line or this one$userid = $vbulletin->userinfo['userid'];is this the one you meant?

bananalive
10-21-2008, 02:03 PM
Thanks for the prompt reply, i looked at the plugin(s) and the one called Canned replies i couldn't find your suggestion but found this "cannedreplies WHERE userid=$userid ORDER BY title ASC") is it the entire line

Not the entire line just remove the words WHERE userid=$userid from it

The whole plugin should become

if ($permissions['cannedreplies'] & $vbulletin->bf_ugp['cannedreplies']['canusecr']) {
if (THIS_SCRIPT == 'newreply' OR THIS_SCRIPT == 'newthread' OR THIS_SCRIPT == 'infraction' OR THIS_SCRIPT == 'private' OR THIS_SCRIPT == 'showthread') {
$crtest .= "$vbphrase[cannedreplies]: <br />";
$crtest .= "<select onchange=\"insertAtCaret(this.options[this.selectedIndex].value)\">";
$crtest .= "<option value=\"\"></option>";
$crs = $db->query_read("SELECT id, title, reply FROM " . TABLE_PREFIX . "cannedreplies ORDER BY title ASC");
while($row = $db->fetch_array($crs)) {
$row[reply] = preg_replace("#(\r\n|\n|\r)#s", "\r\n <br>", addslashes($row[reply]));
$row[reply] = str_replace('"', '"', $row[reply]);
$crtest .= "<option value=\"$row[reply]\">$row[title]</option>";
}
$crtest .= "</select>";
} }

Simon Lloyd
10-21-2008, 02:13 PM
Flippin' 'eck you're quick!, thanks for that.

Alfa1
10-21-2008, 09:34 PM
I would like to have canned replies for infractions, which are the same for all staff, plus I would like to have personal canned replies for PM's. Is this possible?

BucWiLd
10-22-2008, 02:58 AM
nice feature thanks. needed it

hdrmut
10-22-2008, 07:44 AM
I get general Error ..

I cannot add canned replies !!

look to this screen shout in attach

one filde hiden

bananalive
10-22-2008, 03:00 PM
I would like to have canned replies for infractions, which are the same for all staff, plus I would like to have personal canned replies for PM's. Is this possible?
Not at the moment.
I get general Error ..

I cannot add canned replies !!

look to this screen shout in attach

one filde hiden

try adding $vBeditTemplate[clientscript] at beginning of template cr_edit

hdrmut
10-22-2008, 03:14 PM
try adding $vBeditTemplate[clientscript] at beginning of template cr_edit


Not fixing

Problem same :confused:

Simon Lloyd
10-24-2008, 06:39 AM
Bananalive, is there a restriction to the amount of characters that can be used? im having trouble posting around 3 lines of text? This is how it looks, i have deliberately posted non existant bb code here just so you can see what i was trying to post (the information bb code tag is a custom one but works everywhere else)!
Attatchments.



To upload a workbook, click reply then add your few words, scroll down past the submit button and you will see the Manage Attatchments button, this is where you get to add files for upload, if you have any trouble please use the Contact Us form.

when i post this i get:
Attatchments.
[information]
To upload a workbook, click reply then add your few words, scroll down past the submit button and you will see the Manage Attatchments button, this is where you get to add files for upload, if you have any trouble please use the [ull=\any ideas?

Simon Lloyd
10-24-2008, 06:43 AM
Not fixing

Problem same :confused:When uploading the file did you make sure that you uploaded cannedreplies.php to your forum root aswell as the xml to the includes folder....i only ask as i omitted that when i first uploaded and had that problem, i fixed it by uploading the cannedreplies.php.

Simon Lloyd
10-24-2008, 10:54 AM
Bananalive, is there a restriction to the amount of characters that can be used? im having trouble posting around 3 lines of text? This is how it looks, i have deliberately posted non existant bb code here just so you can see what i was trying to post (the information bb code tag is a custom one but works everywhere else)!

Originally Posted by CANNED REPLY
Attatchments.



To upload a workbook, click reply then add your few words, scroll down past the submit button and you will see the Manage Attatchments button, this is where you get to add files for upload, if you have any trouble please use the Contact Us form.


when i post this i get:

Originally Posted by Actual Canned Reply
Attatchments.
[information]
To upload a workbook, click reply then add your few words, scroll down past the submit button and you will see the Manage Attatchments button, this is where you get to add files for upload, if you have any trouble please use the [ull=\
any ideas?Bananalive, it seems that if you add a www. or bbcode for it or html for a www. then it causes a proble, is there a workaround for this?

Andyrew
10-25-2008, 12:39 PM
I have a small problem with this, if you make a canned reply that has got "Here's" in the reply it shows up in a post as "Here\'s" :confused:

Simon Lloyd
10-25-2008, 01:44 PM
I have a small problem with this, if you make a canned reply that has got "Here's" in the reply it shows up in a post as "Here\'s" :confused:Yep me too! it seems there is a parse problem when using either single or double quotes.

Skyrider
10-31-2008, 12:21 PM
I just installed it properly, shows up in the plugin list. But my usergroup settings doesn't has any option to use the canned replies. Using latest (nonbeta) vbulletin.

Kihon Kata
10-31-2008, 01:47 PM
Sorry to ask, but where to I find this:

Adding and editing canned replies is fully integrated into the User CP with vBulletin Editor.

bananalive
10-31-2008, 02:49 PM
I just installed it properly, shows up in the plugin list. But my usergroup settings doesn't has any option to use the canned replies. Using latest (nonbeta) vbulletin.
make sure you have uploaded bitfield_cannedreplies2008.xml to ./includes/xml/
Sorry to ask, but where to I find this:

Quick Link -> User Control Panel

Then scroll down page and you will see 'Edit your Canned Replies'

url is http://www.your-forum.com/cannedreplies.php

imedic
10-31-2008, 06:43 PM
I like bananas :)
Nice mod. Marked installed. Very useful. Great idea!

I have run some trouble in translating in my language :

Control panel:

Edit Your Canned Replies = Edit Your Raspunsuri sablon
(is changing only Canned Reply phrase already translated to Raspunsuri sablon)

Add a New Canned Reply Here
- could not be edited at all via search in Phrases.

Title, Reply, Add and Cancel from posting a new canned message in Control panel cannot be edited also.
It should use phrases from vb.

On the suggestion side:

- global predefined replies (individual for each usergrup) from admin cp so a user from a group can have already predefined message template just to select from menu.
Used to have templates to be filled by users with different purposes. I will need one for a template for clinical cases (medicine)
It does not make sense to ask each user to introduce the template replies so he can use it when posting a case.

- Usergrup can have admin predetermined canned replies (above suggestion) +/- ability to save own replies (selectable both , one or none)

- add your above message to install info for easy understanding ( have looked for some time to understand how it works and where i set it up, the above message saved me :D )

Skyrider
11-03-2008, 07:54 AM
Thanks, it works. Though It has some issues when using --> ' <-- in canned posts. the slash \ is being added when actually using the canned post in a thread thread.

Example:
It\'s
we\'ll
you\'ll

And the list goes on :).

Samsine
11-09-2008, 04:51 PM
Thanks for making this wunderfull Hack :)

dutchbb
11-09-2008, 06:40 PM
One problem: when you choose a canned reply, it removes all the line breaks/ space between paragraphs.

Can this be fixed, or how can I fix it?

Thanks!

Simon Lloyd
12-01-2008, 07:33 AM
Is it possible to set some the permissions of the actual canned replies?, i want some of the canned replies available to the moderators only (usergroup id 5) but all of the replies available to admin, is it possible? perhaps using something like
<if condition="is_member_of($bbuserinfo,5)"><font size=1><b>canned reply 1:</b></if>

<if condition="is_member_of($bbuserinfo,6)"><font size=1><b>canned reply 1:</b><b>canned reply 2:</b></if>can this mode be made in the cannedreplies.php?

I'm clutching at straws as i'm no coder :)

Alfa1
12-13-2008, 02:19 PM
Thanks, it works. Though It has some issues when using --> ' <-- in canned posts. the slash \ is being added when actually using the canned post in a thread thread.

Example:

It\'s

we\'ll

you\'ll




And the list goes on :).
Yes, same here. Please correct this bug. This bug causes the need to edit every canned reply after posting, which kinda defeats the purpose of canned replies.

Except for this bug, this is a great mod.

bananalive
12-14-2008, 06:42 PM
Yes, same here. Please correct this bug. This bug causes the need to edit every canned reply after posting, which kinda defeats the purpose of canned replies.

Except for this bug, this is a great mod.
Name: Canned Replies
Hook Location: global_start
if ($permissions['cannedreplies'] & $vbulletin->bf_ugp['cannedreplies']['canusecr']) {
if (THIS_SCRIPT == 'newreply' OR THIS_SCRIPT == 'newthread' OR THIS_SCRIPT == 'infraction' OR THIS_SCRIPT == 'private' OR THIS_SCRIPT == 'showthread') {
$userid = $vbulletin->userinfo['userid'];
$crtest .= "$vbphrase[cannedreplies]: <br />";
$crtest .= "<select onchange=\"insertAtCaret(this.options[this.selectedIndex].value)\">";
$crtest .= "<option value=\"\"></option>";
$crs = $db->query_read("SELECT id, title, reply FROM " . TABLE_PREFIX . "cannedreplies WHERE userid=$userid ORDER BY title ASC");
while($row = $db->fetch_array($crs)) {
$row[reply] = preg_replace("#(\r\n|\n|\r)#s", "\r\n <br>", addslashes($row[reply]));
$row[reply] = str_replace('\"', '"', $row[reply]);
$row[reply] = str_replace("\'", ''', $row[reply]);
$crtest .= "<option value=\"$row[reply]\">$row[title]</option>";
}
$crtest .= "</select>";
} }

Simon Lloyd
12-15-2008, 08:47 AM
Bananalive, nice to see you back and thanks for taking the time to look at this, for some reason it now removes " and ' although doesn't cause a parse error!

EDIT: it also removes ?

bananalive
12-15-2008, 12:24 PM
Bananalive, nice to see you back and thanks for taking the time to look at this, for some reason it now removes " and ' although doesn't cause a parse error!

EDIT: it also removes ?
Sorry it's because vBulletin has converted special characters into their symbol. Import attached product file.

Simon Lloyd
12-15-2008, 01:45 PM
Bananalive, Fantastic!!!! works with both html and bbcode and leaves all ', ", ?, / as they should be....well done, what a weight off!

Alfa1
12-15-2008, 11:07 PM
Thank you!

LordNinja
12-16-2008, 03:59 AM
Suggestion:

Can you make a mod like this, but admins can define canned replies for usergroups?

-> add a canned reply -> select which usergroup(s) can use it

It would be useful for define canned replies for moderators like "post closed", "post sticked" etc. like the "multi-moderations" on Invision.

Or if you know a mod like it for vBulletin, please point me out.

Thanks

Simon Lloyd
12-16-2008, 04:18 AM
Is it possible to set some the permissions of the actual canned replies?, i want some of the canned replies available to the moderators only (usergroup id 5) but all of the replies available to admin, is it possible? perhaps using something like
<if condition="is_member_of($bbuserinfo,5)"><font size=1><b>canned reply 1:</b></if>

<if condition="is_member_of($bbuserinfo,6)"><font size=1><b>canned reply 1:</b><b>canned reply 2:</b></if>can this mode be made in the cannedreplies.php?

I'm clutching at straws as i'm no coder :)Any thoughts on this Bananalive? i know that each canned reply has an id so could we use the above IF condition to only show certain canned replies to mods but all of them to admin?

bananalive
12-16-2008, 06:38 PM
Any thoughts on this Bananalive? i know that each canned reply has an id so could we use the above IF condition to only show certain canned replies to mods but all of them to admin?
For that an extra column would be needed in canned replies table

Simon Lloyd
12-17-2008, 05:58 AM
I take it that would be very complicated to acheive?

Rene Kriest
01-05-2009, 05:40 PM
The trouble with this addon is, that it puts all saved text into the source code of a webpage. This way everybody can have a look at your predefined statements.

To me this is a huge security risk, because maybe sensible information might be stored via this addon.

The idea is great and if security problem gets fixed I am the first to re-install this addon. :)

bananalive
01-06-2009, 07:12 AM
The trouble with this addon is, that it puts all saved text into the source code of a webpage. This way everybody can have a look at your predefined statements.

To me this is a huge security risk, because maybe sensible information might be stored via this addon.

The idea is great and if security problem gets fixed I am the first to re-install this addon. :)

The plugin only queries your canned replies, so unless someone is on your account then they can't read your replies.

Simon Lloyd
01-08-2009, 02:39 PM
Bananlive, any thoughts on how to appoint some of the canned replies to moderators but all of them for me (Admin)?

Alfa1
01-10-2009, 06:09 PM
Does thsi work on vb 3.8? Has anyone tried?

Rene Kriest
01-15-2009, 03:16 AM
The plugin only queries your canned replies, so unless someone is on your account then they can't read your replies.
Thank you for your explanation that proofed me wrong. :)

I gonna reinstall your fab addon ASAP.

Simon Lloyd
01-15-2009, 08:41 AM
Does thsi work on vb 3.8? Has anyone tried?I have just upgraded to 3.8 and have no problems!

Simon Lloyd
02-05-2009, 06:41 PM
Bananlive, any thoughts on how to appoint some of the canned replies to moderators but all of them for me (Admin)?Bananalive, i know your are busy with your new mod but any ideas how the above can be achieved?, i really need to allow only certain canned replies for my mods.

bananalive
02-06-2009, 09:19 AM
Bananalive, i know your are busy with your new mod but any ideas how the above can be achieved?, i really need to allow only certain canned replies for my mods.

Import attached product, then if you add {share} at the beginning of the canned reply then others will be able to see it.

Simon Lloyd
02-06-2009, 11:39 AM
Bananalive, thanks for taking the trouble with that, the {share}, does that mean share with those who can use canned replies or everyone? probably a stupid question! :)

bananalive
02-06-2009, 12:30 PM
Bananalive, thanks for taking the trouble with that, the {share}, does that mean share with those who can use canned replies or everyone? probably a stupid question! :)

Those who have permission to use canned replies.

Simon Lloyd
02-06-2009, 01:50 PM
Those who have permission to use canned replies.

Like i said stupid question, the addition to the mod works great!, thansk for spending your valuable time sorting this!

Simon Lloyd
02-07-2009, 07:05 AM
Bananalive, that change allows for certain Canned Replies to be shared but the {share} appears with the reply. I tried using {share} in the title of the CR but that didn't share it, so i used {share} in the body, that shared it but as i said its visible when posted. How can i make it invisible?

bananalive
02-07-2009, 09:45 AM
Bananalive, that change allows for certain Canned Replies to be shared but the {share} appears with the reply. I tried using {share} in the title of the CR but that didn't share it, so i used {share} in the body, that shared it but as i said its visible when posted. How can i make it invisible?
I didn't think of that. Fixed in attached file.

Simon Lloyd
02-07-2009, 08:02 PM
That seems to have nailed it thanks very much! :)

Hornstar
02-20-2009, 05:39 AM
This request might be complicated but it might be a good one :)

With the shared code above, that is great, however I think it could be improved if you could define certain things. eg. Which usergroups can set up shared code. eg. Create shared code and then set it to show for specific usergroups/users instead of to all who can use canned replies. those 2 features would be great.



And another feature request: add canned replies to quick reply in PM (new feature added since vb 3.8.x)

Andy R
02-23-2009, 04:19 AM
You might be able to use something like this to define who you can share it to:

{share:1;5;6}

Where 1, 5, & 6 are the usergroups who can see that shared message.

To define who can use the share code, you could add an option in the Usergroup Settings (bitfield_canreplies2008.xml).

Just some ideas....

Oh yeah, thanks for this great product and sharing it with the Community!

|Jordan|
03-23-2009, 06:58 PM
Is the single/double quote bug fixed yet?

(Eg. When putting single or double quotes anywhere in the canned reply, once the reply is posted, there are /'s in front of the quotes)

Charlie98902
03-24-2009, 01:27 PM
Any use of an apostrophe should look like this : Can't

But it makes the post like this if you use the apostrophe : Can/'t

Can this been fixed or not?

Works on version 3.8.1 PL1 as well

bananalive
03-24-2009, 01:49 PM
The version I'm using doesn't appear to have the error, so I've complied it as v2.5.6

If anyone finds any errors, post them here and I'll try and fix them

Charlie98902
03-24-2009, 02:29 PM
The version I'm using doesn't appear to have the error, so I've complied it as v2.5.6

If anyone finds any errors, post them here and I'll try and fix them

Thanks bananalive that version fix the apostrophe issue I saw.

Simon Lloyd
03-24-2009, 02:33 PM
Bananlive you fixed the problem in this post https://vborg.vbsupport.ru/showpost.php?p=1685841&postcount=147 which has an attachment for the fix but you didn't swap it for the downloadable version here.

bananalive
03-24-2009, 02:49 PM
Thanks bananalive that version fix the apostrophe issue I saw.
Good :D
Bananlive you fixed the problem in this post https://vborg.vbsupport.ru/showpost.php?p=1685841&postcount=147 which has an attachment for the fix but you didn't swap it for the downloadable version here.

Ahaha maybe i should update the first post then ;)

Simon Lloyd
03-24-2009, 03:05 PM
Good :D


Ahaha maybe i should update the first post then ;)Maybe, but that version plus the fix to {share} or not is in this post https://vborg.vbsupport.ru/showpost.php?p=1736880&postcount=166 ;)

bananalive
03-25-2009, 02:32 PM
Maybe, but that version plus the fix to {share} or not is in this post https://vborg.vbsupport.ru/showpost.php?p=1736880&postcount=166 ;)

Oh yea, added in attached file.

realmr
03-26-2009, 09:55 AM
how many queries are run ?

bananalive
03-26-2009, 03:35 PM
how many queries are run ?

Where?

On showthread, showpost? 1 extra query if the user has permission to use canned replies

Stifmeister2
03-29-2009, 09:36 PM
Tagged for now. I'll install this as soon as you fix one thing:

- When a user has 0 canned replies, the Canned Reply bar shouldn't appear! Not everyone wants to use them, but they still see that tiny option bar without any actual replies.

Budget101
03-30-2009, 11:13 AM
I would like to add the Canned Replies Drop Down option to show when a Mod clicks on the "Edit" button or "Advanced Edit" buttons within a Post or Thread.

How would I go about adding this? Thank you, Love this mod, very helpful.

bananalive
04-04-2009, 06:00 PM
Tagged for now. I'll install this as soon as you fix one thing:

- When a user has 0 canned replies, the Canned Reply bar shouldn't appear! Not everyone wants to use them, but they still see that tiny option bar without any actual replies.

Fixed in attached file

bananalive
04-04-2009, 06:02 PM
I would like to add the Canned Replies Drop Down option to show when a Mod clicks on the "Edit" button or "Advanced Edit" buttons within a Post or Thread.

How would I go about adding this? Thank you, Love this mod, very helpful.

It will be rather complicated.

You'll need to edit template EDITPOST and add the variable $crdd where you want the dropdown box, then edit Plugin: Canned Replies Javascript AutoInsert

Stifmeister2
04-05-2009, 08:11 PM
Fixed in attached file
Installed... But now I have a new problem. :confused: How can I delete replies?? I seem to miss a button...


https://vborg.vbsupport.ru/

bigcurt
04-06-2009, 01:43 PM
Please, for the love of all that is holy..tell me this work with 3.6 lol. Does it? Please tell me it does..even if it is a lie lol.

Stifmeister2
04-07-2009, 09:58 AM
Installed... But now I have a new problem. :confused: How can I delete replies?? I seem to miss a button...


http://img27.imageshack.us/img27/3959/image4cmv.jpg
Any word on this? I'd really like to use this mod, it rocks! :D

bananalive
04-07-2009, 01:52 PM
Any word on this? I'd really like to use this mod, it rocks! :D

Import attached file.

bananalive
04-07-2009, 01:52 PM
Please, for the love of all that is holy..tell me this work with 3.6 lol. Does it? Please tell me it does..even if it is a lie lol.

should do.

Stifmeister2
04-07-2009, 03:15 PM
Import attached file.
Will do. I'll report later today if I find bugs.

Stifmeister2
04-07-2009, 08:33 PM
Import attached file.
Still the same problem. :(


Just to make it sure: This probem occurs in every style I have.

https://vborg.vbsupport.ru/

bananalive
04-08-2009, 07:00 AM
Still the same problem. :(


Just to make it sure: This probem occurs in every style I have.

http://img11.imageshack.us/img11/1776/image2wnl.jpg

Did you create those canned replied, you'll only see the edit/ delete links on canned replies you've created.

If you click view source, search for ''cannedreplies.php?do=edit'' and see if it's there.

Stifmeister2
04-08-2009, 06:58 PM
Did you create those canned replied, you'll only see the edit/ delete links on canned replies you've created.

If you click view source, search for ''cannedreplies.php?do=edit'' and see if it's there.
Yea I created them all by myself.


I'll check that and report back.

Stifmeister2
04-08-2009, 08:58 PM
banana, after unistalling this product I think I have lost my "Delete" phrases from my forums. I don't see that "Delete" word when I try to delete PMs or in quick edit. I took a quick look at the product file you gave me, there is:

- <phrase name="delete" date="0" username="admin" version="1">
- <![CDATA[ Delete ]]>

I wonder if that is causing it??

bananalive
04-09-2009, 08:14 AM
banana, after uninstalling this product I think I have lost my "Delete" phrases from my forums. I don't see that "Delete" word when I try to delete PMs or in quick edit. I took a quick look at the product file you gave me, there is:

- <phrase name="delete" date="0" username="admin" version="1">
- <![CDATA[ Delete ]]>

I wonder if that is causing it??

No, That adds a phrase if it doesn't exist. You could try adding the phrase manually.

Stifmeister2
04-09-2009, 11:49 AM
No, That adds a phrase if it doesn't exist. You could try adding the phrase manually.
But does it remove that phrse upon unistalling? Everything worked fine until I uninstalled this product.


Anyway I'll try to add the phrase manually.


This is what I meant btw if I wasn't clear enough:

https://vborg.vbsupport.ru/external/2009/04/115.jpg

https://vborg.vbsupport.ru/external/2009/04/116.jpg


The default vBulletin phrase "Delete" is gone. Can someone try unistalling this product and report if they also get this??

Stifmeister2
04-09-2009, 01:35 PM
Ok I have confirmed this now. I added the phrase manually now and it works again. :)

Maybe you should remove that delete phrase from the *.xml, as it seems to remove that (default vBuuletin) phrase when you unistall this product. ;)

Stifmeister2
04-09-2009, 01:38 PM
Did you create those canned replied, you'll only see the edit/ delete links on canned replies you've created.

If you click view source, search for ''cannedreplies.php?do=edit'' and see if it's there.
Did it. There is NO ''cannedreplies.php?do=edit'' or ''cannedreplies.php?do=delete'' in the source code.

bananalive
04-09-2009, 02:01 PM
Did it. There is NO ''cannedreplies.php?do=edit'' or ''cannedreplies.php?do=delete'' in the source code.

Open template:
<tbody>
<tr>
<td class="thead" colspan="2">
<if condition="$shared"><div style="float: right; width: auto;">$vbphrase[shared_reply]</div></if>
<a name="$cr[id]" id="$cr[id]"></a>
$cr[title]
</td>
</tr>
<tr>
<td class="alt2 smallfont" colspan="2">
$cr[reply]
<if condition="$cr[userid] == $vbulletin->userinfo[userid]"><div style="text-align: right;">
<a href="cannedreplies.php?do=edit&amp;id=$cr[id]">$vbphrase[edit]</a> &nbsp;
<a href="javascript:delCR('$cr[id]', '$cr[title2]');">$vbphrase[delete]</a></div></if>
</td>
</tr>
</tbody>
Replace All:
<tbody>
<tr>
<td class="thead" colspan="2">
<if condition="$shared"><div style="float: right; width: auto;">$vbphrase[shared_reply]</div></if>
<a name="$cr[id]" id="$cr[id]"></a>
$cr[title]
</td>
</tr>
<tr>
<td class="alt2 smallfont" colspan="2">
$cr[reply]
<div style="text-align: right;">
<a href="cannedreplies.php?do=edit&amp;id=$cr[id]">$vbphrase[edit]</a> &nbsp;
<a href="javascript:delCR('$cr[id]', '$cr[title2]');">$vbphrase[delete]</a></div>
</td>
</tr>
</tbody>

Stifmeister2
04-09-2009, 02:43 PM
Open template:
<tbody>
<tr>
<td class="thead" colspan="2">
<if condition="$shared"><div style="float: right; width: auto;">$vbphrase[shared_reply]</div></if>
<a name="$cr[id]" id="$cr[id]"></a>
$cr[title]
</td>
</tr>
<tr>
<td class="alt2 smallfont" colspan="2">
$cr[reply]
<if condition="$cr[userid] == $vbulletin->userinfo[userid]"><div style="text-align: right;">
<a href="cannedreplies.php?do=edit&amp;id=$cr[id]">$vbphrase[edit]</a> &nbsp;
<a href="javascript:delCR('$cr[id]', '$cr[title2]');">$vbphrase[delete]</a></div></if>
</td>
</tr>
</tbody>
Replace All:
<tbody>
<tr>
<td class="thead" colspan="2">
<if condition="$shared"><div style="float: right; width: auto;">$vbphrase[shared_reply]</div></if>
<a name="$cr[id]" id="$cr[id]"></a>
$cr[title]
</td>
</tr>
<tr>
<td class="alt2 smallfont" colspan="2">
$cr[reply]
<div style="text-align: right;">
<a href="cannedreplies.php?do=edit&amp;id=$cr[id]">$vbphrase[edit]</a> &nbsp;
<a href="javascript:delCR('$cr[id]', '$cr[title2]');">$vbphrase[delete]</a></div>
</td>
</tr>
</tbody>
Ok that does the trick, thanks. ;)


What was wrong with the current template as I seemed to be the only one with this problem??

bananalive
04-09-2009, 02:58 PM
Ok that does the trick, thanks. ;)


What was wrong with the current template as I seemed to be the only one with this problem??

kl,

I'm not sure what the problem was

Stifmeister2
04-09-2009, 04:20 PM
Banana I need help in two things:

1) How do I make it that it shows the link in UserCP only to those usergroups that can use Canned replies? I have that "Icons for UserCP" modification and I did the manual template edit but the link is showing for everyone. I need some kind of if-conditional to only show it to allowed people.

2) How can I make it to use the edited UserCP shell also when I'm on cannedreplies.php ??
See the screens for better explanation.

1. My usercp shell after manually adding the link:
https://vborg.vbsupport.ru/external/2009/04/112.jpg


2. After clicking "Edit Canned Replies" ( = being in cannedreplies.php):
https://vborg.vbsupport.ru/external/2009/04/113.jpg

Stifmeister2
04-09-2009, 11:06 PM
Ok I managed to do #1 myself, just added this if condition:

<if condition="$permissions['cannedreplies'] & $vbulletin->bf_ugp['cannedreplies']['canusecr']">

[the link here]

</if>


But I still need your help for the second request. I need those icons for the UserCP even whem I'm on cannedreplies.php page.

bananalive
04-10-2009, 02:07 PM
Ok I managed to do #1 myself, just added this if condition:

<if condition="$permissions['cannedreplies'] & $vbulletin->bf_ugp['cannedreplies']['canusecr']">

[the link here]

</if>


But I still need your help for the second request. I need those icons for the UserCP even whem I'm on cannedreplies.php page.

Import/ upload attached files

Stifmeister2
04-10-2009, 08:59 PM
Import/ upload attached files
Will do. :)



---edit---

The UserCP shell is still the default one whem I'm on cannedreplies.php page. Which template should I edit to make it with the icons?


The template I need it to use is 'USERCP_SHELL_ICONS' not 'USERCP_SHELL' like usually.

bananalive
04-11-2009, 10:10 AM
Will do. :)



---edit---

The UserCP shell is still the default one whem I'm on cannedreplies.php page. Which template should I edit to make it with the icons?


The template I need it to use is 'USERCP_SHELL_ICONS' not 'USERCP_SHELL' like usually.

Open cannedreplies.php and replace all USERCP_SHELL with USERCP_SHELL_ICONS

Stifmeister2
04-11-2009, 08:48 PM
Open cannedreplies.php and replace all USERCP_SHELL with USERCP_SHELL_ICONS
Will do, thx. :)

Keesa
04-13-2009, 10:10 PM
:up: :up: :up: :up: :up: :up: :up:

AWESOME!

Simon Lloyd
04-16-2009, 06:16 AM
Bananalive, if it won't take up too much of your time could you look at making the canned reply insert rather than overwrite?, the problem is if i quote a post then click a canned reply it overwrites the quoted post, right now i copy the post add the canned reply then paste the post back, i didn't mind at first but it's becoming a pain to do now :(

If it is a lot of work/trouble then don't worry.

bananalive
04-17-2009, 02:26 PM
Bananalive, if it won't take up too much of your time could you look at making the canned reply insert rather than overwrite?, the problem is if i quote a post then click a canned reply it overwrites the quoted post, right now i copy the post add the canned reply then paste the post back, i didn't mind at first but it's becoming a pain to do now :(

If it is a lot of work/trouble then don't worry.

It depends on the browser whether it replaces it or inserts it.

Simon Lloyd
04-18-2009, 02:02 PM
i thought that but i use both firefox and IE and when quoting a post using the quote button or typing anything in the reply box it will be entirely replaced by the canned reply when you click canned reply,

Like i said if its a pain don't waste your time over it!

bigcurt
04-28-2009, 10:42 AM
That is weird. I have never noticed that before.

bananalive
05-02-2009, 02:57 PM
i thought that but i use both firefox and IE and when quoting a post using the quote button or typing anything in the reply box it will be entirely replaced by the canned reply when you click canned reply,

Like i said if its a pain don't waste your time over it!

I've tested this in firefox:

template cr_js:
<script language="javascript" type="text/javascript">
function storeCaret (textEl) {
if (textEl.createTextRange)
textEl.caretPos = document.selection.createRange().duplicate();
}
function insertAtCaret (text) {
text = text.replace(/\\"/ig, "\"");
var textb = text;
text = text.replace(/ \<br\>/ig, "");
var o = document.getElementById("{$editorid}_iframe");
if (o) {
document.getElementById("{$editorid}_iframe").contentWindow.document.body.innerHTML += textb;
}
if (document.vbform.message.createTextRange && document.vbform.message.caretPos) {
var caretPos = document.vbform.message.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
}
else
document.vbform.message.value += text;

document.vbform.message.focus();
setCursorPosition(document.vbform.message,document .vbform.message.value.lastIndexOf(text)+3,1);
}
function setCursorPosition(oInput,oStart,oEnd) {
if( oInput.setSelectionRange ) {
oInput.setSelectionRange(oStart,oEnd);
}
else if( oInput.createTextRange ) {
var range = oInput.createTextRange();
range.collapse(true);
range.moveEnd('character',oEnd);
range.moveStart('character',oStart);
range.select();
}
}
function showOutput(){
if (o) {
document.getElementById("{$editorid}_iframe").contentWindow.document.body.innerHTML += textb;
}
document.getElementById('msgOutput').innerHTML += document.vbform.message.value;
}
</script>

Simon Lloyd
05-02-2009, 07:54 PM
Just added that to a test style and tried it out in IE 7 - Worked like a charm!

Thanks very much for looking in to it and solving the issue, answering posts just became a whole lot easier :)

Simon Lloyd
05-05-2009, 09:10 AM
Just added that to a test style and tried it out in IE 7 - Worked like a charm!

Thanks very much for looking in to it and solving the issue, answering posts just became a whole lot easier :)Bananalive, i can confirm this works with IE7, Firefox, Google Chrome, it also works with these OS's Ubuntu, Windows and MAC.

Again, thanks for taking the time to create this fix!

Stifmeister2
05-05-2009, 06:53 PM
Bananalive, i can confirm this works with IE7, Firefox, Google Chrome, it also works with these OS's Ubuntu, Windows and MAC.

Again, thanks for taking the time to create this fix!
Same here, thanks for the fix Banana. ;)

Arbit3r
05-12-2009, 06:40 PM
Anyone know if this works for 3.8.x? Im getting this error when trying to set permissions.



Database error in vBulletin 3.8.2:

Invalid SQL:
UPDATE vb_usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = '<!-- Order=\"1\" -->Administrators',
`description` = '',
`usertitle` = 'Administrator',
`opentag` = '<B><font color=\"red\">',
`closetag` = '</font></B>',
`passwordexpires` = '180',
`passwordhistory` = '360',
`cannedreplies` = '1',
`maxcr` = '8',
`ecdownloadpermissions` = '32767',
`ecexcludecatlist` = '',
`ecdownloadsmaxuploadtotal` = '-1',
`ecdownloadsmaxdailydl` = '-1',
`ecdownloadsmaxdailyfiles` = '-1',
`ecdownloaddelaygrp` = '-1',
`moderatepm_permissions` = '4',
`pmquota` = '5000',
`pmpermissions` = '7',
`pmsendmax` = '5',
`pmthrottlequantity` = '0',
`forumpermissions` = '16777215',
`genericpermissions` = '2147483583',
`attachlimit` = '0',
`calendarpermissions` = '63',
`wolpermissions` = '31',
`adminpermissions` = '3',
`genericpermissions2` = '1',
`genericoptions` = '63',
`profilepicmaxwidth` = '350',
`profilepicmaxheight` = '400',
`profilepicmaxsize` = '999999999',
`avatarmaxwidth` = '100',
`avatarmaxheight` = '100',
`avatarmaxsize` = '999999999',
`signaturepermissions` = '245759',
`sigpicmaxwidth` = '650',
`sigpicmaxheight` = '200',
`sigpicmaxsize` = '999999999',
`sigmaxrawchars` = '0',
`sigmaxchars` = '0',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '0',
`albumpermissions` = '255',
`albumpicmaxwidth` = '600',
`albumpicmaxheight` = '600',
`albumpicmaxsize` = '100000',
`albummaxpics` = '100',
`albummaxsize` = '0',
`usercsspermissions` = '63',
`visitormessagepermissions` = '63',
`socialgrouppermissions` = '65535',
`maximumsocialgroups` = '5',
`groupiconmaxsize` = '999999999',
`mgc_cb_evo_permissions` = '0',
`mgc_cb_evo_nbmsg_show` = '',
`mgc_cb_evo_nbmsg_perday_show` = '',
`arcadepermissions` = '255',
`minpoststoplay` = '0',
`minreptoplay` = '-1000',
`minreglengthtoplay` = '0'
WHERE usergroupid=6;

MySQL Error : Unknown column 'mgc_cb_evo_permissions' in 'field list'
Error Number : 1054
Request Date : Tuesday, May 12th 2009 @ 09:34:48 PM
Error Date : Tuesday, May 12th 2009 @ 09:34:48 PM
Script : http://movie-forumz.org/admincp/usergroup.php?do=update
Referrer : http://movie-forumz.org/admincp/usergroup.php?do=edit&usergroupid=6
IP Address : 82.33.12.57
Username : ***
Classname : vB_Database_MySQLi
MySQL Version : 5.0.51a-24+lenny1

bananalive
05-14-2009, 10:42 AM
Anyone know if this works for 3.8.x? Im getting this error when trying to set permissions.



Database error in vBulletin 3.8.2:

Invalid SQL:
UPDATE vb_usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = '<!-- Order=\"1\" -->Administrators',
`description` = '',
`usertitle` = 'Administrator',
`opentag` = '<B><font color=\"red\">',
`closetag` = '</font></B>',
`passwordexpires` = '180',
`passwordhistory` = '360',
`cannedreplies` = '1',
`maxcr` = '8',
`ecdownloadpermissions` = '32767',
`ecexcludecatlist` = '',
`ecdownloadsmaxuploadtotal` = '-1',
`ecdownloadsmaxdailydl` = '-1',
`ecdownloadsmaxdailyfiles` = '-1',
`ecdownloaddelaygrp` = '-1',
`moderatepm_permissions` = '4',
`pmquota` = '5000',
`pmpermissions` = '7',
`pmsendmax` = '5',
`pmthrottlequantity` = '0',
`forumpermissions` = '16777215',
`genericpermissions` = '2147483583',
`attachlimit` = '0',
`calendarpermissions` = '63',
`wolpermissions` = '31',
`adminpermissions` = '3',
`genericpermissions2` = '1',
`genericoptions` = '63',
`profilepicmaxwidth` = '350',
`profilepicmaxheight` = '400',
`profilepicmaxsize` = '999999999',
`avatarmaxwidth` = '100',
`avatarmaxheight` = '100',
`avatarmaxsize` = '999999999',
`signaturepermissions` = '245759',
`sigpicmaxwidth` = '650',
`sigpicmaxheight` = '200',
`sigpicmaxsize` = '999999999',
`sigmaxrawchars` = '0',
`sigmaxchars` = '0',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '0',
`albumpermissions` = '255',
`albumpicmaxwidth` = '600',
`albumpicmaxheight` = '600',
`albumpicmaxsize` = '100000',
`albummaxpics` = '100',
`albummaxsize` = '0',
`usercsspermissions` = '63',
`visitormessagepermissions` = '63',
`socialgrouppermissions` = '65535',
`maximumsocialgroups` = '5',
`groupiconmaxsize` = '999999999',
`mgc_cb_evo_permissions` = '0',
`mgc_cb_evo_nbmsg_show` = '',
`mgc_cb_evo_nbmsg_perday_show` = '',
`arcadepermissions` = '255',
`minpoststoplay` = '0',
`minreptoplay` = '-1000',
`minreglengthtoplay` = '0'
WHERE usergroupid=6;

MySQL Error : Unknown column 'mgc_cb_evo_permissions' in 'field list'
Error Number : 1054
Request Date : Tuesday, May 12th 2009 @ 09:34:48 PM
Error Date : Tuesday, May 12th 2009 @ 09:34:48 PM
Script : http://movie-forumz.org/admincp/usergroup.php?do=update
Referrer : http://movie-forumz.org/admincp/usergroup.php?do=edit&usergroupid=6
IP Address : 82.33.12.57
Username : ***
Classname : vB_Database_MySQLi
MySQL Version : 5.0.51a-24+lenny1

Error with mgc chatbox

Arbit3r
05-16-2009, 03:36 PM
Ah, i did not see that down there. I've been having allot of issues with that MGC chatbox. Thanks for the help.

Arbit3r
05-18-2009, 09:18 PM
Another question. I seem to be having issues with "Shared Canned Replies" When a canned reply is selected that has been added by another user or "Shared" nothing comes up in the text box and the drop down menu becomes blank.

Any help appreciated.

-Raf

Simon Lloyd
05-19-2009, 04:58 PM
Another question. I seem to be having issues with "Shared Canned Replies" When a canned reply is selected that has been added by another user or "Shared" nothing comes up in the text box and the drop down menu becomes blank.


Any help appreciated.


-RafShared replies are shared by using {shared}, whichever user shares them everyone who has access to use canned replies can use them, any personal canned replies not shared remain hidden from everyone else.

imported_silkroad
05-23-2009, 01:22 PM
Sorry if this has been asked before, but I had trouble searching because of the test in the error message:

Could not find phrase ''.

We are running 3.4.1 ... has anyone seen the error above? How to fix it?

Thanks!

imported_silkroad
05-23-2009, 01:34 PM
(deleted) See post below.

imported_silkroad
05-23-2009, 01:44 PM
Shared replies are shared by using {share}, whichever user shares them everyone who has access to use canned replies can use them, any personal canned replies not shared remain hidden from everyone else.

I prefixed our replies (the name of the canned reply) with {share} and it is not sharing. Just installed version

vb_cannedreplies2008 v2.5.6

Any clues?

bananalive
05-23-2009, 02:21 PM
Another question. I seem to be having issues with "Shared Canned Replies" When a canned reply is selected that has been added by another user or "Shared" nothing comes up in the text box and the drop down menu becomes blank.


Any help appreciated.


-Raf

Import attached file

bananalive
05-23-2009, 02:21 PM
I prefixed our replies (the name of the canned reply) with {share} and it is not sharing. Just installed version

vb_cannedreplies2008 v2.5.6

Any clues?

When editing the canned reply, check the tickbox
Share: Share reply with other users who can use Canned Replies

And import product file from post above

imported_silkroad
05-23-2009, 02:53 PM
When editing the canned reply, check the tickbox
Share: Share reply with other users who can use Canned Replies

And import product file from post above

Thanks, will try it.

OBTW, the earlier version...

It needs to go in the text not the title, a little bit of query running sorted that out.

Actually I think the way it works is a little counter-intuitive, and the title would be a better place than the reply text.

I'll give the new version a try.

Cheers and thanks.

imported_silkroad
05-23-2009, 02:56 PM
FYI:

vBulletin Message


The following dependencies were not met:

1. This product is not compatible with version 3.7.4 of vBulletin. (Compatible starting with 3.8.0)

imported_silkroad
05-23-2009, 03:00 PM
This is the same product??

File Type: xml product-articleforum-v1.6.xml (91.8 KB, 2 views)

I don't think this is the right file, is it?

imported_silkroad
05-23-2009, 03:05 PM
Basically,

The version we just installed:

<title>Canned Replies</title>

<description>Save standard post replies</description>

<version>2.5.5</version>



Shares CRs only if you put the tag {share} in the text of the message.

We kindly suggest you should either

(1) Have a check box (variable) or
(2) At least put {share} in the title (not the body) of message.

(1) is better.. Simply create a tick box and get rid of the {share} thing... thanks!

imported_silkroad
05-23-2009, 03:19 PM
In the absence of a good sharing solution, we simply cut this out of the code:

WHERE userid=$userid || reply LIKE '{share}%' || reply LIKE '{share}%'

A tick box when creating a canned reply would be the best, me suggests :D

bananalive
05-23-2009, 03:34 PM
This is the same product??


I don't think this is the right file, is it?

No, this should be right file now

imported_silkroad
05-23-2009, 03:54 PM
No, this should be right file now

Thanks. However, that one does not work. In 3.7.4 it breaks the page formatting on page:

/cannedreplies.php

Cheers.

imported_silkroad
05-23-2009, 03:59 PM
This latest version <version>2.5.6</version> still has this "shared" code:

userid=$userid || reply LIKE '___share___%' || reply LIKE '___share___%Could you please release a clean, working version that does not have this "share" requirement (using the world share in the text), but a configuration switch?

Also, this version (mentioned earlier) breaks our page formatting, FYI, and does not work property with 3.7.4, FYI.

H3C x Nevz
05-29-2009, 12:05 AM
Big fan of your mods, bananalive. I think a nice feature for the future would be an additional field when editing your canned replies, to show notes for usage. Then, when someone selects that canned reply, the notes for usage appear inline in italics. I know a lot of people use this mod so that admins & moderators can post notices or infractions and they need to know how to use the forms.

Simon Lloyd
05-30-2009, 08:41 PM
When editing the canned reply, check the tickbox
Share: Share reply with other users who can use Canned Replies

And import product file from post aboveIs that file an upgraded version for 3.8.2?, does it mean that we would no longer need to use {share}?

bananalive
06-02-2009, 04:04 PM
Is that file an upgraded version for 3.8.2?, does it mean that we would no longer need to use {share}?

No. At some point, I will redo all the code for vbulletin 3.8.x - although it already works with 3.8.x it needs cleaning up and improving a bit.

Yes the {share} has been replaced by a simple check box option when editing the canned reply.

Simon Lloyd
06-04-2009, 06:32 AM
No. At some point, I will redo all the code for vbulletin 3.8.x - although it already works with 3.8.x it needs cleaning up and improving a bit.

Yes the {share} has been replaced by a simple check box option when editing the canned reply.Bananalive, if i import the xml in this post https://vborg.vbsupport.ru/showpost.php?p=1815815&postcount=231 (just a couple of posts up from here) will i have to change all the canned replies that have {share} to a check in the check box? or will i loose those canned replies and have to recreate them?

By the way i am using vb3.8.2 and i have not experienced any problems since you fixed the inserting the CR rather than overwrite everything in the reply box :)

bananalive
06-04-2009, 09:10 AM
Bananalive, if i import the xml in this post https://vborg.vbsupport.ru/showpost.php?p=1815815&postcount=231 (just a couple of posts up from here) will i have to change all the canned replies that have {share} to a check in the check box? or will i loose those canned replies and have to recreate them?

By the way i am using vb3.8.2 and i have not experienced any problems since you fixed the inserting the CR rather than overwrite everything in the reply box :)

During upgrade you will not lose any canned replies. You will however need to edit canned replies which you wish to share, by editing them and checking the share box.

Simon Lloyd
06-07-2009, 10:42 AM
Bananalive i imported the xml found here https://vborg.vbsupport.ru/showpost.php?p=1815815&postcount=231 (i did overwrite!) but when i go to edit my canned replies i get a white page with all the canned replies on and no way of editing.

Can you help?

Artes_Marciales
06-07-2009, 12:13 PM
Great Idea

bananalive
06-07-2009, 12:49 PM
Bananalive i imported the xml found here https://vborg.vbsupport.ru/showpost.php?p=1815815&postcount=231 (i did overwrite!) but when i go to edit my canned replies i get a white page with all the canned replies on and no way of editing.

Can you help?

Do you have latest cannedrepies.php as well?

Simon Lloyd
06-07-2009, 02:03 PM
Do you have latest cannedrepies.php as well?Ah!, no, guess that was it then :)

Alfa1
06-10-2009, 04:31 PM
The template cr_js is not cached. Is that absolutely needed?

bananalive
06-11-2009, 12:27 PM
The template cr_js is not cached. Is that absolutely needed?

It is cached in plugin: Canned Replies Javascript AutoInsert

OsideRida06
07-24-2009, 11:59 PM
Thanks this is perfect. Installed!

Epr Guy
08-15-2009, 05:44 AM
Ok, I have a request from my users.... They want to be able to use "Quote" or "multi-quote". In other words, when you quote a message, then select a canned reply, the canned reply completely wipes the quote text. They would like to be able to quote or multi-quote, and have the canned reply added to the editor, instead of over-writing. And while I'm asking, it would be nice to have a choice of placement, such as adding the canned reply BEFORE, or AFTER the quoted text.

This would be an excellent addition to an already most excellent mod.

Thanks!

Simon Lloyd
08-15-2009, 06:40 AM
Ok, I have a request from my users.... They want to be able to use "Quote" or "multi-quote". In other words, when you quote a message, then select a canned reply, the canned reply completely wipes the quote text. They would like to be able to quote or multi-quote, and have the canned reply added to the editor, instead of over-writing. And while I'm asking, it would be nice to have a choice of placement, such as adding the canned reply BEFORE, or AFTER the quoted text.

This would be an excellent addition to an already most excellent mod.

Thanks!If it wipes the quote your using an old version of canned replies, i had this issue a long time ago where Bananalive was kind enogh to develop this further to cure that :) here https://vborg.vbsupport.ru/showpost.php?p=1803075&postcount=212

Epr Guy
08-15-2009, 06:53 AM
Thanks! I should have read just a few more pages first! LOL! Thanks again!

jazzyname
10-14-2009, 05:50 PM
This would be wonder full, though i just need it for Admin situational replies. Unless there is something just for admins replies, i would love to use this... but does it work for 3.8

thanks and good work.

* installed and working.. thank you very much. this is a staple for forums. You have made my life a little bit easier.. ;)

Keesa
11-02-2009, 04:19 AM
It is cached in plugin: Canned Replies Javascript AutoInsert

How can this be? I am still getting the error that it is not caching.