chaoswar4u Posted January 28, 2008 Posted January 28, 2008 How would you go about restricting the size a sig loads up as. The lines I have if($memb['forums_avatar']) { $av=""; } else { $av=""; } if(!$memb['forums_signature']) { $memb['forums_signature']="No Signature"; } else { $memb['forums_signature']=$bbc->bbcode_parse($memb['forums_signature']); } $r['fp_text']=$bbc->bbcode_parse($r['fp_text']); As you can see ive done the avator but ive tried all sorts on the forum sig and get all sorts of errors. Anyone can give me a dig out on this. Many thx in advance. Quote
Floydian Posted January 29, 2008 Posted January 29, 2008 Re: Forum Sigs Problem Can't you do the width="blah" height="blah" in the img tag for the forum sig? If that's not an option, try this: <div style="overflow:hidden; width:500px; height:125px"> Forum sig goes here </div> doing that will put a div in for the forum sig that cannot stretch any bigger than the size you specify. It won't display any scroll bars either because you're doing overflow:hidden. If you did want scroll bars, use overflow:auto. If you wanted the div to shrink down in size when people don't have sigs, you could put in a variable for the height, and if there is no sig, set the height to 1. Quote
chaoswar4u Posted January 29, 2008 Author Posted January 29, 2008 Re: Forum Sigs Problem Below is what I finished with. Thx for the help. $memb=$precache[$r['fp_poster_id']]; } $rank=forums_rank($memb['posts']); if($memb['forums_avatar']) { $av=""; } else { $av=""; } if(!$memb['forums_signature']) { $memb['forums_signature']="No Signature"; } else { $memb['forums_signature']=$bbc->bbcode_parse($memb['forums_signature']); } $r['fp_text']=$bbc->bbcode_parse($r['fp_text']); print "<tr> <th align='center'>Post #{$no}</th> <th align='center'>Subject: {$r['fp_subject']} Posted at: $t $qlink$elink$dlink</th> </tr> <tr> <td valign=top>{$r['fp_poster_name']} [{$r['fp_poster_id']}] $av Level: {$memb['level']} <font color=blue>Forums Rank: {$rank}</font></td> <td valign=top>{$r['fp_text']} {$edittext} ------------------- <div style='overflow:auto; width:500px; height:250px'> {$memb['forums_signature']}</td> </div> </tr>"; } Quote
Floydian Posted January 29, 2008 Posted January 29, 2008 Re: Forum Sigs Problem Sweet, but I did notice a small syntactical HTML error. <div style='overflow:auto; width:500px; height:250px'> {$memb['forums_signature']}</td> </div> The </td> should come after the </div> instead of just before. Lemme know how that works for ya. Quote
chaoswar4u Posted January 30, 2008 Author Posted January 30, 2008 Re: Forum Sigs Problem Nothing changed that I could see but I changed it all the same. Quote
Floydian Posted January 30, 2008 Posted January 30, 2008 Re: Forum Sigs Problem Right on, so long as it's working :D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.