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)

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:

Code:

<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

Quote:

Originally Posted by Stifmeister2 (Post 1787785)
Ok I managed to do #1 myself, just added this if condition:

Code:

<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

Quote:

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

Quote:

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

Quote:

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

Quote:

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


All times are GMT. The time now is 04:30 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01375 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete