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
Less
More
Posts: 146
Thank you received: 4
16 years 1 month ago #43590
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.
Less
More
Posts: 10666
Thank you received: 1288
16 years 1 month ago #43604
by xillibit
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.