Kunena 7.0.5 & Kunena 6.4.11 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.5 [K 7.0.5] 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 eleventh 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
16 years 11 months ago #19170 by guerilla
open kunena.parser.php file and find this:
Code:
$tag_new = "<a href='".$between."' rel=\"lightbox\"><img src='".$between.($imgtagsize ?"' width='".$imgmaxsize:'')."' style='max-width:".$imgmaxsize."px; ' alt='' /></a>";

and change to this:
Code:
$tag_new = "<a href='".$between."' rel=\"shadowbox\"><img src='".$between.($imgtagsize ?"' width='".$imgmaxsize:'')."' style='max-width:".$imgmaxsize."px; ' alt='' /></a>";

then open view.php and add this codes at top:
Code:
<link rel="stylesheet" type="text/css" href="<?php echo KUNENA_DIRECTURL . '/template/default';?>/plugin/shadowbox/shadowbox.css"> <script type="text/javascript" src="<?php echo KUNENA_DIRECTURL . '/template/default';?>/plugin/shadowbox/shadowbox.js"></script> <script type="text/javascript"> Shadowbox.init({ language: "tr", players: ["img"] }); </script>

and finally copy sahdowbox folder at the attachment to your default/plugin folder.

thats all

ps: if you have my shadowbox preview hack, you can only copy shadowbox-img.js file to default/plugin/shadowbox/player folder.

ps2: language: "tr",
change this part to your language.

File Attachment:

File Name: shadowbox_build_3.zip
File Size:57.4 KB

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

More
16 years 11 months ago - 16 years 11 months ago #19275 by guerilla
Last edit: 16 years 11 months ago by guerilla.

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

More
16 years 11 months ago #19285 by 810
guerilla wrote:

open kunena.parser.php file and find this:

Code:
$tag_new = "<a href='".$between."' rel=\"lightbox\"><img src='".$between.($imgtagsize ?"' width='".$imgmaxsize:'')."' style='max-width:".$imgmaxsize."px; ' alt='' /></a>";

and change to this:
Code:
$tag_new = "<a href='".$between."' rel=\"shadowbox\"><img src='".$between.($imgtagsize ?"' width='".$imgmaxsize:'')."' style='max-width:".$imgmaxsize."px; ' alt='' /></a>";

i can't find it on my kunena.parser.php, on which line can i add this.
thanx

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

More
16 years 11 months ago - 16 years 11 months ago #19287 by guerilla
i wrote for kunena 1.0.10, i guess u use another version or modified version.
search this:
Code:
$tag_new = "<a href='".$between."'><img src='".$between.($imgtagsize ?"' width='".$imgmaxsize:'')."' style='max-width:".$imgmaxsize."px; ' alt='' /></a>";

if you find change as second code.
Last edit: 16 years 11 months ago by guerilla.

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

More
16 years 11 months ago #19289 by 810
Can't find it. i am useing JoniJnm edition.
is it the:
Code:
case 'img':
on line +- 344

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

More
16 years 11 months ago #19291 by guerilla
no. i dowloaded jonijnm edition an took a look.
find this code:
Code:
$tag_new .= "<img src='".$between."'".(($imgtagsize) ? " width='".$imgtagsize."'" : "")." border='0'/></div>";


and replace with this:
Code:
if($task->autolink_disable == 0) { $tag_new. = "<a href='".$between."' rel=\"shadowbox\"><img src='".$between.($imgtagsize ?"' width='".$imgmaxsize:'')."' style='max-width:".$imgmaxsize."px; ' alt='' /></a>"; } else { $tag_new. = "<img src='".$between.($imgtagsize ?"' width='".$imgmaxsize:'')."' style='max-width:".$imgmaxsize."px; ' alt='' />"; } $tag_new .= '</div>';

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

Time to create page: 0.294 seconds