help with premium banners

I have a small issue that I'm not sure how to deal with. I'm successfully using {$premium_banner_url} to display premium members banners where I want them, but if there is no premium banner uploaded it is automatically defaulting to the members regular banner. Instead of defaulting to a regular or default banner, I would like it to show nothing if there is no premium banner available. Is that possible?

Also, where can I edit the info in this tag? {$lng->main_featured}

Thank you
 

Basti

Administrator
Staff member
Also, where can I edit the info in this tag? {$lng->main_featured}
admin -> hover over "content" in menu -> manage languages

There search for ( without quotes ) "main_featured" and then change the value

---------------------------------

As for the premium, you could archive this easiest with a bit of css.

This is the img code found in table_top_row_premium.html
Code:
<img src="{$premium_banner_url}" alt="{$title}" title="{$lng->g_premium_visit}"/>
You would need to add a class to it, lik this
Code:
<img src="{$premium_banner_url}" alt="{$title}" title="{$lng->g_premium_visit}" class="premium-img"/>
Now open up user.css and add the following
Code:
img.premium-img[src="http://www.yoursite.come/images/button.png"] {
    display: none;
}
Note that you actually have to change the address to reflect your actual button path and domain

What this is does is, it checks the img's with that class which have a specific path and hide them. That should do the trick.
 
ok, I've updated table_row_premium to include this:
img border="0" src="{$premium_banner_url}" class="premium-img"

I've updated user.css to include this:
img.premium-img[src="[url]http://www.top10chatrooms.com/images/button.png[/url]"] {
display: none;
}

my default button is here:
/images/button.png

I'm now seeing what looks like a broken image placeholder where the banner/image used to be. When I check the page source / view image info I see the following: 0px × 0px (scaled to 24px × 24px). I'm using the latest version of Firefox. Can you please check and let me know if you have any ideas of how to fix this?
http://www.top10chatrooms.com
Listing #3.

Thank you
 

Basti

Administrator
Staff member
rank #3
Code:
<img border="0" src="" class="premium-img">
If you dont actually use a default banner for members who dont upload one, you need to adjust your css
Code:
img.premium-img[src=""] {
 
Top