Jump to content
MakeWebGames

Forum Sigs Problem


chaoswar4u

Recommended Posts

How would you go about restricting the size a sig loads up as.

The lines I have

 

if($memb['forums_avatar']) { $av="{$memb["; } else { $av="noav.gif"; }

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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="{$memb["; } else { $av="noav.gif"; }

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>";

}

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...