Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Spoilers

More
16 years 1 month ago #43590 by MarkBoy81
Spoilers was created by MarkBoy81
Is it possible to change the emoticon that appears in collapsed/expanded spoilers?
Even at a code level.
Just a curiosity... :)

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

More
16 years 1 month ago #43604 by xillibit
Replied by xillibit on topic Re:Spoilers
Hello,

look in the file components\com_kunena\lib\kunena.parser.php at line 659 :
Code:
case 'spoiler': if($between) { if ($this->spoilerid==0) { // Only need the script for the first spoiler we find $app =& JFactory::getApplication(); $app->addCustomHeadTag('<script language = "JavaScript" type = "text/javascript">'. 'function fb_showDetail(srcElement) {'. 'var targetID, srcElement, targetElement, imgElementID, imgElement;'. 'targetID = srcElement.id + "_details";'. 'imgElementID = srcElement.id + "_img";'. 'targetElement = document.getElementById(targetID);'. 'imgElement = document.getElementById(imgElementID);'. 'if (targetElement.style.display == "none") {'. 'targetElement.style.display = "";'. 'imgElement.src = "'.KUNENA_JLIVEURL.'/components/com_kunena/template/default/images/english/emoticons/w00t.png";'. '} else {'. 'targetElement.style.display = "none";'. 'imgElement.src = "'.KUNENA_JLIVEURL.'/components/com_kunena/template/default/images/english/emoticons/pinch.png";'. '}} </script>'); } $this->spoilerid++; $randomid = rand(); $tag_new = '<div id="'.$randomid.'" onclick="javascript:fb_showDetail(this);" style="cursor:pointer;"><img id="'.$randomid.'_img"'. 'src="'.KUNENA_JLIVEURL.'/components/com_kunena/template/default/images/english/emoticons/pinch.png" border="0"> <strong>'. (isset($tag->options["title"]) ? ($tag->options["title"]) : (_KUNENA_BBCODE_SPOILER)) . '</strong></div><div id="'. $randomid . '_details" style="display:None;"><span class="fb_quote">' . $between . '</span></div>'; return TAGPARSER_RET_REPLACED; } return TAGPARSER_RET_NOTHING; break;

I don't provide support by PM, because this can be useful for someone else.

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

Time to create page: 0.253 seconds