• OzzModz is no longer taking registrations. All registrations are being redirected to Snog's Site
    All addons and support is available there now.

Code tags in guick reply

stratos

New member
Can some one help me, I want code tags # to show in quick reply, I don't want any mod to do this.
Any help I appreciate.
 
Here what mod is used. I have this...[CKEditor] MARCO1 Advanced Quick Reply And Edit
but to many problems when testing to validator.w3.org, to much code for tag code I need only.
Even I tested (product Advance Reply For Quick Reply) by AR4QR (problem in mobile styles)

Any other solution for this, even another mod?
thanks...
 
Thanks ozzy, but does not work for me at all, module installed, setting are all ok, nothing to see in quick reply.
3-4 times tested, install - reinstall.
vb 4.1.12, checked in all skin, default too.

:rolleyes1:
 
This is not installed in my real forum, always installed to test forum with host file in my PC, never, never install something if I am not sure, play with it,
test it several times and than install. Thank you for your interest.


View attachment 853

View attachment 854

The only thing that did not make, is to disable all other modules and leave this one alone
I will test it now, any result I will edit this post.

EDIT:
Nothing, all modules disabled one by one, and left only this one.

Plugin that I see... PHP/HTML/CODE Tags
PHP:
if ($vbulletin->options['ozzmodz_editor_enhance_active'])
{
    if ($vbulletin->options['ozzmodz_editor_enhance_code'])
    {
        $code_button = 'Code';
    }
    
    if ($vbulletin->options['ozzmodz_editor_enhance_html'])
    {
        $html_button = 'Html';
    }
    
    if ($vbulletin->options['ozzmodz_editor_enhance_php'])
    {
        $php_button = 'Php';
    }
    
    if ($this->editor_type == 'qr' || $this->editor_type == 'qe')
    {
        $toolbar[] = array
        (
            $code_button, 
            $html_button, 
            $php_button
        );
    }
}

I am sure that module in vb4.1.12 does not have respond
 
Last edited:
Well I know this is working on my 4.1.10 and 4.2.2pl4 installs, so without being able to replicate it, I don't know what to do, other than guess.

So lets start off by adding this to the top of the plugin, global $vbulletin; so it looks like this:

PHP:
global $vbulletin;

if ($vbulletin->options['ozzmodz_editor_enhance_active'])
{
    if ($vbulletin->options['ozzmodz_editor_enhance_code'])
    {
        $code_button = 'Code';
    }
    
    if ($vbulletin->options['ozzmodz_editor_enhance_html'])
    {
        $html_button = 'Html';
    }
    
    if ($vbulletin->options['ozzmodz_editor_enhance_php'])
    {
        $php_button = 'Php';
    }
    
    if ($this->editor_type == 'qr' || $this->editor_type == 'qe')
    {
        $toolbar[] = array
        (
            $code_button, 
            $html_button, 
            $php_button
        );
    }
}
 
Well sometimes vBulletin needs to be globalized in order for some mods to work, but if it is already globalized, then their is no need. I probably have a mod running on my pages that is doing that, but you don't.

I will update the mods thread with the new version so it will work on all sites.
 
I will update the mods thread with the new version so it will work on all sites.

Hope that this global $vbulletin; don't be an issue thought for other mods, or more queries in forum.
Don't now about coding, but I see how it works so maybe I will try to change for my needs. Put and some other bbcodes.

Respect
:yo:
 
Back
Top