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)

bigcurt 04-28-2009 10:42 AM

That is weird. I have never noticed that before.

bananalive 05-02-2009 02:57 PM

Quote:

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

<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

Quote:

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

Quote:

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



Code:

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

Quote:

Originally Posted by Arbit3r (Post 1809541)
Anyone know if this works for 3.8.x? Im getting this error when trying to set permissions.



Code:

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

Quote:

Originally Posted by Arbit3r (Post 1813164)
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

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


All times are GMT. The time now is 09:11 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.01270 seconds
  • Memory Usage 1,771KB
  • 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
  • (3)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