Kunena 7.0.9 & Kunena 6.4.14 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.9 [K 7.0.9] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.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

This category contains miscellaneous, uncategorised third-party extensions (e.g. JomSocial, Community Builder, etc.) relating to older versions of Kunena that are no longer supported.

This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.

The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, the ideas in these topics may not work with later versions and, for that reason, the topics are locked.

Question Jomsocial tooltips in Kunena 1.6

More
15 years 11 months ago #66633 by SinisaKrisan
Hello everyone

Im trying to do something different with mine Kunena template, and since my site is heavily based on Kunena and Jomsocial, i need to integrate this two extensions as much as i can for better end user experience.
One of the things im trying now is to add fancy Jomsocial tooltips on users avatar in posts. Im almost done, but really not quite there yet.
This is the code i use to load funky new tooltips in kunena.
Code:
<?php require_once( JPATH_ROOT .DS.'components'.DS.'com_community'.DS.'libraries'.DS.'core.php'); $js='/assets/script-1.2.js'; CAssets::attach($js, 'js'); ?>
This works awesome, because now when i use "jomTips" class selector on template divs, i can get funky tooltips :) Yippie :)

What im heaving trouble with is the content of the Tooltip, please, observe this code to get familiar with the structure:
Code:
<li class="kpost-avatar"> <?php require_once( JPATH_ROOT .DS.'components'.DS.'com_community'.DS.'libraries'.DS.'core.php'); $js='/assets/script-1.2.js'; CAssets::attach($js, 'js'); ?> <div class="jomTips" title="Username::This is the tooltip content" > <?php echo CKunenaLink::GetProfileLink ( intval($this->profile->userid), $this->avatar ); ?> </div> </li>

This is now OK as im getting this result



But problem begins when i try to put something in the tooltip. For instance
If i use something like this
Code:
<div class="jomTips" title="<?php echo CKunenaLink::GetProfileLink ( intval($this->profile->userid), $this->escape($this->username) ); ?>::This is the tooltip content" >
I easily end up with this :(



Please, if some good soul out there have time, please advise with an example how should i go around this.
Im not a coder, but do understand the code when i see it.

Thanks in advance
Sinisa.

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

Time to create page: 0.255 seconds