×
Kunena 5.1.14 Released - Security release (13 Aug 2019)

The Kunena team is proud to announce the arrival of Kunena 5.1.14 [K5.1.14] which is now available for download as a native Joomla extension for Joomla 3.9.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1.14. This update fixed 1 security issue.

Idea SOLVED: NOT SOLVED: BBCode legend (Help) doesn't work

More
10 years 2 months ago - 10 years 2 months ago #1 by JComeskey
Running K1.0.10 on a J1.5.10 site. Recently upgraded from K1.0.08.

I get a popup tooltip for Bold, no tooltips at all for anything else, and my yellow box is stuck with the message that says, 'bbCode Help - Hint: bbCode can be used on selected text!'.

I've tried uploading a new kunenaforum.min.js file (found in another post) and I've tried copying and renaming the kunenaforum.js file (found in another post). Neither worked.

The site is here:
www.orrrc.org/runners/forum.html

Any ideas??
Last edit: 10 years 2 months ago by JComeskey.

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #2 by grumblemarc
It does nothing to post a link when you cannot actually view the problem.
"The administrator has disabled public write access."
Might be a JS conflict. Does it occur on the default Joomla templates?

We love stars on the Joomla Extension Directory . :-)

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #3 by JComeskey
Thanks for the response!

grumblemarc wrote:

It does nothing to post a link when you cannot actually view the problem.
"The administrator has disabled public write access."


Same as this Kunena forum. You can create a free user account easily enough.

Might be a JS conflict. Does it occur on the default Joomla templates?


Yes, still happens with rhuk_milkyway.

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #4 by sozzled
@JComeskey: do you have a test user account that would help to see the problem?

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #5 by JComeskey
sozzled wrote:

@JComeskey: do you have a test user account that would help to see the problem?


Good idea! Try:
Username: testuser
Password: kunena

Thanks!!

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #6 by sozzled
If it's of any consolation to you, I have discovered the same problem.

K 1.0.10 on a J! 1.5.10 website (also using JEvent components).

However, I don't have these symptoms on a J! 1.5.7 website with K 1.0.10 and JEvent. I'll dig more into this matter tomorrow - see if the kunenaforum.min.js is involved.

Cheers

sozz :)

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago - 10 years 2 months ago #7 by sozzled
I can confirm that I had exactly the same problem as JComeskey ... exactly as he described it! I can also confirm that I've fixed the problem as described in lemur's post SOLVED: BBCode legend (Help) doesn't work . First of all, thank you, lemur and Matias, for your help. :woohoo:

You need to follow the procedure carefully; it's easy to make a mistake and discover that you've made no improvement.
  1. Examine the directory ../components/com_kunena/templates/defaul/js
  2. there are two files, one called kunenaforum.js (which is 4467 bytes) and the other called kunenaforum.min.js (which is 4323 bytes);
  3. delete kunenaforum.min.js
  4. make another copy of kunenaforum.js and rename the copy as kunenaforum.min.js
  5. you should now have two identically-sized files (of 4467 bytes) in your directory called kunenaforum.js and kunenaforum.min.js
This solved my problem and I'm rapt! B) What causes this problem, I still don't know. I did not need to see these problems occur after upgrading to K 1.0.10 with J! 1.5.7 or J! 1.5.8. The problems exhibited themselves with J! 1.5.10. Perhaps it's a Joomla thing? Can someone else confirm this is the case? :S
Last edit: 10 years 2 months ago by sozzled.

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago - 10 years 2 months ago #8 by JComeskey
???? I must be living in a parallel universe...

I tried this solution before I made this original post. Then I tried it again just now. No change for me.

Where are you finding your kunenaforum.js file? I took mine from com_kunena_v1.0.10_stable_b1344_2009-05-21, but it is only 4.22kb.

I will paste my file below.

Can you please paste your kunenaforum.js file?

Thanks!
/*<![CDATA[*/
/**
* @version $Id: kunenaforum.js 756 2009-05-17 23:06:01Z mahagr $
* Kunena Component
* @package Kunena
* @Copyright (C) 2006 - 2007 Best Of Joomla All rights reserved
* @license https://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link https://www.bestofjoomla.com
**/
 
jQuery.noConflict();
 
jQuery.kunena_cookie = function(name, value, options)
{
    if (typeof value != 'undefined')
    { // name and value given, set cookie
        options = options || { };
        var expires = '';
 
        if (options.expires && ( typeof options.expires == 'number' || options.expires.toGMTString))
        {
            var date;
 
            if (typeof options.expires == 'number')
            {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            }
            else
            {
                date = options.expires;
            }
 
            expires = '; expires=' + date.toGMTString(); // use expires attribute, max-age is not supported by IE
        }
 
        var path = options.path ? '; path=' + options.path : '';
        var domain = options.domain ? '; domain=' + options.domain : '';
        var secure = options.secure ? '; secure' : '';
        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    }
    else
    { // only name given, get cookie
        var cookieValue = null;
 
        if (document.cookie && document.cookie != '')
        {
            var cookies = document.cookie.split(';');
 
            for (var i = 0; i < cookies.length; i++)
            {
                var cookie = jQuery.trim(cookies[i]);
 
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '='))
                {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
 
        return cookieValue;
    }
};
 
function JRshrinkHeaderMulti(mode, imgId, cid)
{
    if (mode == 1)
    {
        cMod = 0;
        jQuery("#" + cid).show();
    }
    else
    {
        cMod = 1;
        jQuery("#" + cid).hide();
    }
 
    jQuery.kunena_cookie("upshrink_" + imgId, cMod);
    jQuery("#" + imgId).attr("src", window.jr_expandImg_url + (cMod ? "expand.gif" : "shrink.gif"));
}
 
function kunenaShowHelp($text) {
	jQuery('input[name=helpbox]').val($text);
}
 
function fbGetPreview(content, sitemid) {
    var templatePath = document.postform.templatePath.value;
    var content = encodeURIComponent(content);
    var kunenaPath = document.postform.kunenaPath.value;
 
    jQuery('input[name=previewspeicher]').val('preview');
    jQuery.ajax({url:kunenaPath,
    data : { msgpreview : content, Itemid : sitemid , option: "com_kunena" , func: "getpreview" , no_html: 1},
    type: "POST",
    beforeSend : function (req){
        jQuery('#previewContainer').show();
        jQuery('#previewMsg'). html("<img src='"+templatePath+"/images/preview_loading.gif' />");    
    },
    success : function (req){
        jQuery('#previewMsg'). html(req);
        return;
    }
    });
    return false;
}
 
function kunenaRedirectTimeout(redirecturl, timeout) {
    var redirect_timeout = setTimeout("location='"+redirecturl+"'", 3500);
    jQuery("body").bind("click", function(e) { clearTimeout(redirect_timeout); } );
}
 
jQuery(document).ready(function()
{
    jQuery(".hideshow").click(function()
    {
        var imgId = jQuery(this).attr("id");
        var cId = imgId.split("__")[1];
        var cVal = jQuery.kunena_cookie("upshrink_" + imgId);
        JRshrinkHeaderMulti(cVal, imgId, cId);
    }).each(function()
    {
        var imgId = jQuery(this).attr("id");
        var cId = imgId.split("__")[1];
		var el = jQuery("#" + cId);
		if (el.hasClass("fb-hidden"))
		{
            jQuery.kunena_cookie("upshrink_" + imgId, 1);
		}
		if (el.hasClass("fb-visible"))
		{
		    jQuery.kunena_cookie("upshrink_" + imgId, 0);
		}
        if (jQuery.kunena_cookie("upshrink_" + imgId) == 1)
        {
            JRshrinkHeaderMulti(0, imgId, cId);
        }
    });
 
});
 
/*]]>*/
Last edit: 10 years 2 months ago by JComeskey.

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #9 by sozzled
I think you'll find that the file I'm attaching will be identical to yours.

File Attachment:

File Name: kunenaforum.txt
File Size:4 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #10 by JComeskey
sozzled wrote:

I think you'll find that the file I'm attaching will be identical to yours.


Yep, seems to be.

Just in case, I tried it 2 more times. The first time, I cut and pasted your file content into my files.
Then the second time, I uploaded and renamed your file.

My problem persists.

So are you thinking it is a javascipt conflict with some other extension?

Can I just go back to the plain old popup tooltips?

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.096 seconds