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 #19292 by 810
iam also using rolands hack for guest image.
Code:
case 'img': if($between) { // rolandshack start if ($my->id==0 && $GLOBALS["fbConfig"]->showimgforguest==0) { // Hide between content from non registered users $tag_new = '<b>' . _KUNENA_BBCODE_HIDEIMG . '</b>'; } else { $task->autolink_disable--; $width = (int)(($GLOBALS["fbConfig"]->rtewidth * 9) / 10); $height = (int)$GLOBALS["fbConfig"]->rteheight; $imgtagsize = isset($tag->options["size"]) ? (int)htmlspecialchars($tag->options["size"]) : 0; $tag_new = '<div style="width: '.$width.'px; border: 0px inset; margin: 0px; padding: 6px; overflow: auto; max-height: '.$height.'px; text-align: center;">'; $tag_new .= "<img src='".$between."'".(($imgtagsize) ? " width='".$imgtagsize."'" : "")." border='0'/></div>"; // rolandshack start } // rolandshack end //Fin JoniJnm return TAGPARSER_RET_REPLACED; } return TAGPARSER_RET_NOTHING; break;

and if i changed it , i get a blank screen.
Code:
case 'img': if($between) { // rolandshack start if ($my->id==0 && $GLOBALS["fbConfig"]->showimgforguest==0) { // Hide between content from non registered users $tag_new = '<b>' . _KUNENA_BBCODE_HIDEIMG . '</b>'; } else { $task->autolink_disable--; $width = (int)(($GLOBALS["fbConfig"]->rtewidth * 9) / 10); $height = (int)$GLOBALS["fbConfig"]->rteheight; $imgtagsize = isset($tag->options["size"]) ? (int)htmlspecialchars($tag->options["size"]) : 0; $tag_new = '<div style="width: '.$width.'px; border: 0px inset; margin: 0px; padding: 6px; overflow: auto; max-height: '.$height.'px; text-align: center;">'; 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>'; // rolandshack start } // rolandshack end //Fin JoniJnm return TAGPARSER_RET_REPLACED; } return TAGPARSER_RET_NOTHING; break;

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

More
17 years 3 days ago - 17 years 3 days ago #19294 by guerilla
you use such more modificatin :P

i guess $imgmaxsize veriable not decelerated at jonijnm edition,
so change this part:
Code:
$tag_new. = "<a href='".$between."' rel=\"shadowbox\"><img src='".$between.($imgtagsize ?"' width='".$imgmaxsize:'')."' style='max-width:".$imgmaxsize."px; ' alt='' /></a>";

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

but it may be not resize images if jonijnm itself hasnt got a max image size property.
Last edit: 17 years 3 days ago by guerilla.

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

More
17 years 3 days ago #19299 by 810
:p yes i use alot of hacks and plugins. iam making my own edition Ultimate NL.

but i still get a blank screen. can you post the codes. from
Code:
case 'img':
until
Code:
return TAGPARSER_RET_NOTHING; break;
.

I am on my work. using a virualpc so i can't download attach. and i i'm busy on my laptop to get my edition ready. I only waiting for the hack suspend and the hack Restricted Forum User For Kunena 2.0 for kunena 1.0.10.

thanks for you help.

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

More
17 years 3 days ago - 17 years 3 days ago #19303 by guerilla
it is not necessary, just open your original kunena.parser.php file and change this:

$tag_new .= "<img src='".$between."'".(($imgtagsize) ? " width='".$imgtagsize."'" : "")." border='0'/></div>";

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


here i installed jonijnm for testing and it works:
www.genctasarim.biz/deneme/index.php?opt...c=view&catid=2&id=27

but as i guess at upper message jonijnm edition not resize large images. it show them in a div with scrollbars.
Last edit: 17 years 3 days ago by guerilla.

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

More
17 years 3 days ago - 17 years 3 days ago #19305 by 810
must i add, i am already using shadowbox
Code:
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>
because i still get a blank screen,
Last edit: 17 years 3 days ago by 810.

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

More
17 years 3 days ago - 17 years 3 days ago #19306 by guerilla
what do you mean blank page?
blank shadowbox page or blank php page?
if you get blankshadowbox page you must add shadowbox files that i said at first message.

here i send you jonijnm files i tested:

File Attachment:

File Name: view-b2730...7399.zip
File Size:23.65 KB
Last edit: 17 years 3 days ago by guerilla.

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

Time to create page: 0.350 seconds