Kunena 7.0.6 & Kunena 6.4.12 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.6 [K 7.0.6] 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.

The Kunena team is also pleased to announce the twelfth version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) 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, these ideas in these topics will not work with later versions and, for that reason, the topics are locked.

Question showing full image in shadowbox hack

More
17 years 3 days ago #19308 by 810
i already using the shadowbox, so the files are there.

1:
i copied the shadowbox-img.js file to the template/default/plugin/shadowbox/players and replaced the file.

2:
i changed the line :
$tag_new .= "<a href='".$between."' rel=\"shadowbox\"><img src='".$between."'".(($imgtagsize) ? " width='".$imgtagsize."'" : "")." border='0'/></a></div>";

3:
i add the script in view.php on the first line before <?php

4:
i am tested the forum, and i see a white screen.

Ok thanks i will test the attach

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

More
17 years 3 days ago #19310 by 810
oh :side: i changed the wrong view.php. :P

its working. but do you know how to remove the ugly scrollbars, and size.

thanks for hack.

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

More
17 years 3 days ago #19313 by guerilla
sure,

delete this part:
$tag_new = '<div style="width: '.$width.'px; border: 0px inset; margin: 0px; padding: 6px; overflow: auto; max-height: '.$height.'px; text-align: center;">';

and change this
$tag_new .= "<a href='".$between."' rel=\"shadowbox\"><img src='".$between."'".(($imgtagsize) ? " width='".$imgtagsize."'" : "")." border='0'/></a></div>";

to this:

$tag_new = "<a href='".$between."' rel=\"shadowbox\"><img style='max-width:".$width."px' src='".$between."'".(($imgtagsize) ? " width='".$imgtagsize."'" : "")." border='0'/></a>";

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

More
17 years 2 days ago #19388 by 810
thanks, only the picture has not the right height, its a littlebit stretched up.

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

More
17 years 2 days ago #19394 by guerilla
i guess it is about jonijnm edition. as i sad before this edition havent got maximum image size veriable like default kunena 1.0.10.

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

More
17 years 2 days ago - 17 years 2 days ago #19427 by JoniJnm
Hi, guerilla.

I have added your plugin into Kunena JoniJnm Edition. But I had to add this condition for make the link:

$in_server = (strpos(substr(substr($between,7), 0, strpos(substr($between,7), "/")), $_SERVER) !== false);
//or $in_server = (strpos($between,$_SERVER) !== false);

if ($in_server) { ... }

If the image is not in the server, shadowbox can't show the image

Good plugin!
Last edit: 17 years 2 days ago by JoniJnm.

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

Time to create page: 0.283 seconds