SMFHacks.com

Ad Seller Pro => Support => Topic started by: hippieboy123 on April 12, 2017, 07:17:39 am

Title: Sidebar Image width
Post by: hippieboy123 on April 12, 2017, 07:17:39 am
Hello

When I skrink my page down, I would like the sidbar banners to shrink with the column width

I maybe wrong, but to accomplish this, I would need to edit a template.. yes?
If so, which one - Line Number?

Code: [Select]
<a href="http://goodbadiptv.com/?action=adpro;sa=c&id=1" target="_blank" rel="nofollow">
<img src="http://tvinthailand.com/wp-content/uploads/2017/04/bannerad-xtream297x61.png" alt="" >
</a>

to

Code: [Select]
<a href="http://goodbadiptv.com/?action=adpro;sa=c&id=1" target="_blank" rel="nofollow">
<img src="http://tvinthailand.com/wp-content/uploads/2017/04/bannerad-xtream297x61.png" alt="" width="100%">
</a>

Is that the correct way to do it?



Title: Re: Sidebar Image width
Post by: SMFHacks on April 12, 2017, 01:01:16 pm
If you want to change the image tag.
You would need to modify Sources/Adseller2.php
Find around line 2685
Code: [Select]
$adDisplayData .= '<a href="' . $scripturl . '?action=adpro;sa=c&amp;id=' . $adRow['ID_AD'] . '" ' . $openNewWindow . ' rel="nofollow"><img src="' .  $imgUrl .'" alt="" /></a>';
Title: Re: Sidebar Image width
Post by: hippieboy123 on April 12, 2017, 01:32:00 pm
Your a legend

Works perfect!