Kunena 7.0.2 Released

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

Question Signature Image-Size Limit

More
15 years 4 months ago #68574 by SkeeterUK
Hi all.

I need to know how to alter the height and width of the signature box on the Kunena forum software using the The Black Dragon template. As atm. Our clan/fleet uses a signature size of 750*200 pixels and the forum is showing them small and compressed which due to text in them is unusable in the current situation so i need to increase the max spaces for signature sizes allowed and displayed from whatever they are now to at least show a full non altered version of the signature images for our members.

Had a look at the css file but i can only find.

td.msgsignature {
width: 100%;
}
td.msgsignature div {
text-align: left;
overflow: hidden;
color:#999;
font-size:small;
padding: 5px 5px;

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

More
15 years 4 months ago #68777 by SkeeterUK
That isnt in the template im using "black dragon". Sry hijackin the thread but no ones posting in my thread and this is basically same thing id like to know how to do. As the images ppl use in their profiles for signatures are comparessed to max width of 400 ish when the sigs our clan/fleet uses are 750. Which ok kinda large i guess we can shrink em to 650-700 to fit the narrow theme of black dragon but how to edit that and i have looked through all the css and php files in the template and no go. That code posted above just forces quick reply in everyones post so we need some ppl to reply to how to not have limits on our signature images ppl use when using our forums.

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

More
15 years 4 months ago #68780 by sozzled
SkeeterUK. Images as large as 750 x 200 px are going to cause problems, no matter whichever way you look at it. For example, some people are only able to run a screen resolution of 800 x 600 px on their computer monitors!

Although I don't know anything about this "black dragon" template, who designed it or who developed it, and I haven't seen your website, I am assuming that the template is not wide enough to handle images of 750 px x 800 px in an area that's less than 750 px wide. Even if you could enlarge the width of the Kunena template to utilise 100% of whatever has been defined for your component display, it's unlikely that you will be able to fit images as large as you're suggesting without some resizing and, therefore, loss of resolution.

Either you need a wider Joomla template or you need to modify your expectations about using large banner-sized images in your member's signatures. The maximum image size that people can use is defined by the maximum width of the td.msgsignature class. This is, in turn, limited by the maximum width of the table that contains this td. These limits are further dependent on your Joomla template.

Using Firebug you can determine the actual widths (in pixels) and you may be able to make some adjustments.

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

More
15 years 4 months ago - 15 years 4 months ago #68783 by SkeeterUK
Hi there.

It is a clan/fleet site and forum and we had them this size on our previous forums so dont know why we should change just as we use this forum software now. So as they took alot of time to design and craft we will keep them that size. The template will need to be changed to accomodate them. This is what i need help with.

As post 5 clearly stated with firebug some element style is limiting it to 400px wide.

<div class="msgsignature">
<div style="table-layout: fixed; display: table; width: 100%;">
<a rel="lightbox" href=" img682.imageshack.us/img682/3946/sigra.png ">
<img width="400" alt="" style="max-width: 400px;" src=" img682.imageshack.us/img682/3946/sigra.png"/ >
</a>
</div>


I have looked for the code to change it but it escapes me.

So basically i need someone who knows templates, how to adjust the code that is cropping signature images and to disable this code. I dont care if it breaks the forum we will deal with this. Just need help coding to disable the code that is basically "if img is x then crop to Y". Please help.

Our site/forum showing the signature images to be shrunk to unreadable quality i.e what we want fixing.

www.therisenphoenixfleet.com/index.php/f...n/166-hello.html#176

The template was made here.

www.kenlapz.org/download?task=view.download&cid=114

Now if it was me id change to a different wider template but im only an Administrator i dont make them decisions someone else does i just help run the site and fix things hence why im here.

Edit- I switched template to either default or defaultex and sig sizes were still that way so its not just this black dragon template it seems.
Last edit: 15 years 4 months ago by SkeeterUK.

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

More
15 years 4 months ago - 15 years 4 months ago #68841 by SkeeterUK
Solved!

It is fixed by going to kunena lib folder in ftp and finding and editing kunena parser.php

Find this text and notice the part in a red color is what ur lookin to change.

{
// This part: <div style=\"table-layout:fixed; display:table;\"> ... </div> compliments of IE8

$tag_new = "<a href='".$tempstr."' rel=\"lightbox\"><img src='".$tempstr.($imgtagsize ?"' width='".$imgmaxsize:'')."' style='max-width:".$imgmaxsize."px; ' alt='' /></a>";
} else {
// This part: <div style=\"table-layout:fixed; display:table;\"> ... </div> compliments of IE8

$tag_new = "<img src='".$tempstr.($imgtagsize ?"' width='".$imgmaxsize:'')."' style='max-width:".$imgmaxsize."px; ' alt='' />";
}


Change it to and i have marked it in red which i have changed.

{
// This part: <div style=\"table-layout:fixed; display:table;\"> ... </div> compliments of IE8

$tag_new = "<a href='".$tempstr."' rel=\"lightbox\"><img src='".$tempstr.($imgtagsize ?"' width='".$imgmaxsize:'')."' style='max-width:700px; ' alt='' /></a>";
} else {
// This part: <div style=\"table-layout:fixed; display:table;\"> ... </div> compliments of IE8

$tag_new = "<img src='".$tempstr.($imgtagsize ?"' width='".$imgmaxsize:'')."' style='max-width:700px; ' alt='' />";
}

Last edit: 15 years 4 months ago by SkeeterUK.

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

  • C0n
  • C0n's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Only the strongest will survive
More
15 years 4 months ago #68914 by C0n
Replied by C0n on topic Re: Signature Image-Size Limit
Thanks works terrificly :D

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

Time to create page: 0.294 seconds