vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Quick Editor Improver - Support Attachment (https://vborg.vbsupport.ru/showthread.php?t=202160)

W!cKeD 06-01-2009 10:41 AM

* Thanks & Installed * :up:

sunrise2006 06-01-2009 04:55 PM

Quote:

Originally Posted by mohammadxxx (Post 1819255)
hi

your hack very nice but the quick edit don't show my toolbar like quick replay !!??
pic attached .

thanks again

Please check for vBulletin Options -> Quick Editor Improver, and please sure for exists of templates that start with imp_ prefix.

However I checked your board and I saw that Quick Editor Improver for Quick Reply works perfect.

sunrise2006 06-02-2009 06:10 AM

Quote:

Originally Posted by alexsinev (Post 1818594)
Sunrise2006, I guess, that attachments in vBBlog comments are uavailable also. What about such a possibility? Do you intend to add it?

As default of vBulletin vB Blog does not support attachments, because of I not spot it.

thedagnu 06-02-2009 08:06 PM

thanks

Saviour 06-11-2009 09:09 PM

Is there any way to disable this Quick Editor Reply for certain forums? I know I'd have to edit the SHOWTHREAD template. I'm just not sure where...and what code to use.

Thank you in advance...

sunrise2006 06-12-2009 02:49 AM

Quote:

Originally Posted by Saviour (Post 1827888)
Is there any way to disable this Quick Editor Reply for certain forums? I know I'd have to edit the SHOWTHREAD template. I'm just not sure where...and what code to use.

Thank you in advance...

For current version you may limit it based on usergroup and style, but for specified forums this is not possible, sorry.

However this is not meant you may not have that, because of if you know about vBulletin and plug-ins system, you may add new option to Quick Editor Improver as you will need to create a new plug-in for this capability.

Another way for this issue that I think it's better and easy follow:

Quote:

Admincp -> Plugins & Products -> Plugin Manager
Edit Button Visibility Bitfields plug-in same as this:
PHP Code:

                    if ($vbulletin->options['qeimp_enabled'])
                    {
                        
$qei_apply false;
                        if (
$vbulletin->options['qei_excluded_usergroups'])
                        {
                            
$qei_exclusergroups explode(','$vbulletin->options['qei_excluded_usergroups']);
                        }
                        if (
$vbulletin->options['qei_excluded_styles'])
                        {
                            
$qei_exclstyles explode(','$vbulletin->options['qei_excluded_styles']);
                        }
                        
$exclforums '1,2,3,4,5,6,7';
                        if (
$exclforums)
                        {
                            
$qei_exclforums explode(','$exclforums);
                        }
                        
                        if (!
$qei_exclforums OR (isset($qei_exclforums) AND !in_array($forumid$qei_exclforums)))
                        {                        
                            
//if (!isset($qei_exclusergroups) OR (isset($qei_exclusergroups) AND !in_array($vbulletin->userinfo['usergroupid'], $qei_exclusergroups)))
                            
if ((!isset($qei_exclusergroups) AND !isset($qei_exclstyles)) OR !((isset($qei_exclusergroups) AND in_array($vbulletin->userinfo['usergroupid'], $qei_exclusergroups)) OR (isset($qei_exclstyles) AND in_array($vbulletin->userinfo['styleid'], $qei_exclstyles))))
                            {                    
                                switch (
THIS_SCRIPT)
                                {
                                    case 
'showthread':
                                        
$qei_apply = ($vbulletin->options['qei_applyto']) ? true false;
                                    break;
                                    case 
'member':
                                        
$qei_apply = ($vbulletin->options['qei_applyto']) ? true false;
                                    break;
                                    case 
'group':
                                        
$qei_apply = ($vbulletin->options['qei_applyto']) ? true false;
                                    break;
                                    case 
'blog':
                                        
$qei_apply = ($vbulletin->options['qei_applyto']) ? true false;
                                    break;
                                    case 
'project':
                                        
$qei_apply = (16 $vbulletin->options['qei_applyto']) ? true false;
                                    break;
                                    default:
                                        
$qei_apply true;
                                    break;
                                }
                            }
                            if (
$qei_apply AND intval($vbulletin->options['qei_visiblebuttons']) > 0)
                            {
                                
$bv_bitfield = array(
                                    
'qr_visible_smilies'    =>    1,
                                    
'qr_visible_size'        =>    2,
                                    
'qr_visible_font'        =>    4,
                                    
'qr_visible_align'        =>    8,
                                    
'qr_visible_list'        =>    16,
                                    
'qr_visible_code'        =>    32,
                                    
'qr_visible_php'        =>    64,
                                    
'qr_visible_html'        =>    128,
                                    
'qr_visible_custom'        =>    256,
                                    
'qe_visible_smilies'    =>    512,
                                    
'qe_visible_size'        =>    1024,
                                    
'qe_visible_font'        =>    2048,
                                    
'qe_visible_align'        =>    4096,
                                    
'qe_visible_list'        =>    8192,
                                    
'qe_visible_code'        =>    16384,
                                    
'qe_visible_php'        =>    32768,
                                    
'qe_visible_html'        =>    65536,
                                    
'qe_visible_custom'        =>    131072,
                                    
'pmqr_visible_smilies'    =>    262144,
                                    
'pmqr_visible_size'        =>    524288,
                                    
'pmqr_visible_font'        =>    1048576,
                                    
'pmqr_visible_align'    =>    2097152,
                                    
'pmqr_visible_list'        =>    4194304,
                                    
'pmqr_visible_code'        =>    8388608,
                                    
'pmqr_visible_php'        =>    16777216,
                                    
'pmqr_visible_html'        =>    33554432,
                                    
'pmqr_visible_custom'    =>    67108864
                                
);
                            }
                        }
                    } 

Please remember that $exclforums = '1,2,3,4,5,6,7' will specified forumids to be excluded, thus you may spot a simple option on vBulletin options for it.

Good Luck

Saviour 06-12-2009 03:01 AM

Sorry...ya lost me there...

Though it says "Coder" under my username...I'm not that good.

Can't a simple if condition with an array in the SHOWTHREAD template accomplish what I want to do?

sunrise2006 06-12-2009 12:33 PM

Quote:

Originally Posted by Saviour (Post 1828046)
Sorry...ya lost me there...

Though it says "Coder" under my username...I'm not that good.

Can't a simple if condition with an array in the SHOWTHREAD template accomplish what I want to do?

I think this is the best method for this issue, because of if the condition check on the top level it's very better to decision about processing of that, so extra queries will not affect. I will post a new attachment that applied this for easy of you.

Thank you.

insanegrunt.com 06-12-2009 11:12 PM

I having a problem i install it and it works fine on the admin account but when i loggin to my own account i cant see it. its like only admin can see it?

Saviour 06-12-2009 11:33 PM

Uninstalled...Unsubscribed...

Doesn't work with Post Templates hack...


All times are GMT. The time now is 01:05 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.01320 seconds
  • Memory Usage 1,807KB
  • 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
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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