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)

bananalive 02-06-2009 09:19 AM

Quote:

Originally Posted by Simon Lloyd (Post 1735427)
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

Quote:

Originally Posted by Simon Lloyd (Post 1736017)
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

Quote:

Originally Posted by bananalive (Post 1736045)
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

Quote:

Originally Posted by Simon Lloyd (Post 1736823)
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

Quote:

Originally Posted by bananalive (Post 1775821)
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....&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

Quote:

Originally Posted by Charlie98902 (Post 1775865)
Thanks bananalive that version fix the apostrophe issue I saw.

Good :D
Quote:

Originally Posted by Simon Lloyd (Post 1775871)
Bananlive you fixed the problem in this post https://vborg.vbsupport.ru/showpost....&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

Quote:

Originally Posted by bananalive (Post 1775885)
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....&postcount=166 ;)

bananalive 03-25-2009 02:32 PM

Quote:

Originally Posted by Simon Lloyd (Post 1775893)
Maybe, but that version plus the fix to {share} or not is in this post https://vborg.vbsupport.ru/showpost....&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

Quote:

Originally Posted by realmr (Post 1777356)
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

Quote:

Originally Posted by Stifmeister2 (Post 1779974)
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

Quote:

Originally Posted by Budget101 (Post 1780268)
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

Quote:

Originally Posted by bananalive (Post 1783854)
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

Quote:

Originally Posted by Stifmeister2 (Post 1784550)
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

Quote:

Originally Posted by Stifmeister2 (Post 1785637)
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

Quote:

Originally Posted by bigcurt (Post 1785037)
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

Quote:

Originally Posted by bananalive (Post 1785744)
Import attached file.

Will do. I'll report later today if I find bugs.

Stifmeister2 04-07-2009 08:33 PM

Quote:

Originally Posted by bananalive (Post 1785744)
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

Quote:

Originally Posted by Stifmeister2 (Post 1786050)
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

Quote:

Originally Posted by bananalive (Post 1786397)
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:

Code:

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

Quote:

Originally Posted by Stifmeister2 (Post 1786897)
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:

Code:

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

Quote:

Originally Posted by bananalive (Post 1787194)
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

Quote:

Originally Posted by bananalive (Post 1786397)
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

Quote:

Originally Posted by Stifmeister2 (Post 1787351)
Did it. There is NO ''cannedreplies.php?do=edit'' or ''cannedreplies.php?do=delete'' in the source code.

Open template:
Code:

<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:
Code:

<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

Quote:

Originally Posted by bananalive (Post 1787366)
Open template:
Code:

<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:
Code:

<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

Quote:

Originally Posted by Stifmeister2 (Post 1787403)
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


All times are GMT. The time now is 10:14 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.01874 seconds
  • Memory Usage 1,860KB
  • 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
  • (6)bbcode_code_printable
  • (26)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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