Featured Member in the Table_Top

Anna

Member
It does it on my iPad, but most likely it is like you guessed that the element is to wide. Can I write in a width constraint somehow? Using the Featured__member tag.
This is the code used for the featured_member tag as I guess you very well know....
Code:
<div class="featured">
    <h3 class="heading">{$lng->main_featured}</h3>
        <div class="left screen1">
          {$featured_member_screenshot}
        </div>
    <a href="{$url}" onclick="out(this,'{$username}');">{$title}</a> - {$description, length=100}
    <br class="cl"/>
</div>
 

Mark

Administrator
Staff member
Try

.featured { width:400px;}

In user.css


Then once confirmed width is the problem you can gradually make it bigger until it fits nice.
 

Basti

Administrator
Staff member
The problem is that you float an element where the parent can be of variable height, so the float goes into box model and stretches until it reaches the end of the last floated element in the DOM ( which is the sidebar ).

To fix this you have 2 options

1. Simply give the parent container ( div class="featured" ) a css rule of overflow: hidden;

or

2. give the parent ( div class="featured" ) a defined height or min-height

I would go with method 1, to keep the parent of variable height which is also cross brower compatible
 

cenk123

New Member
Hello

I also want the Featured Member below the header. I have tried, copy the Table_Top_Row and paste in Featured_Member and then in Table_Wrapper :

{$table_wrap_before_content}
{$featured_member}
{$content}
{$table_wrap_after_content}

But nothing is displayed. what am I doing wrong?

I've tried as an alternative to put this Code into Wrapper below Content:

<h3 class="heading">{$lng->main_featured}</h3>
<div class="center">
{$featured_member} <a href="{$url}" onclick="out(this,'{$username}');" rel="nofollow"><img src="{$banner_url}"/>{$title}</a> - {$description}
</div>

it works but if it is not a premium member, another is displayed which is none. Can someone help me? Thanks :)
 

Mark

Administrator
Staff member
Hello

I also want the Featured Member below the header. I have tried, copy the Table_Top_Row and paste in Featured_Member and then in Table_Wrapper :

{$table_wrap_before_content}
{$featured_member}
{$content}
{$table_wrap_after_content}

But nothing is displayed. what am I doing wrong?
unfortunately it looks like {$featured_member} only works in wrapper.html, you would need to create a custom plugin to handle this
 
Top