Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11948
Latest: kirkvan
New This Month: 13
New This Week: 4
New Today: 3
Stats
Total Posts: 37960
Total Topics: 6684
Most Online Today: 79
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 54
Total: 55

Author Topic: Sidebar Image width  (Read 844 times)

0 Members and 1 Guest are viewing this topic.

Offline hippieboy123

  • Ad Seller Pro Customer
  • Newbie
  • *****
  • Posts: 22
    • View Profile
Sidebar Image width
« 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?




Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14058
    • View Profile
Re: Sidebar Image width
« Reply #1 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>';
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

Offline hippieboy123

  • Ad Seller Pro Customer
  • Newbie
  • *****
  • Posts: 22
    • View Profile
Re: Sidebar Image width
« Reply #2 on: April 12, 2017, 01:32:00 pm »
Your a legend

Works perfect!

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3019 Views
Last post October 08, 2007, 06:38:41 pm
by SMFHacks
2 Replies
2797 Views
Last post October 07, 2008, 07:45:29 am
by SMFHacks
1 Replies
1752 Views
Last post August 04, 2010, 06:39:20 pm
by SMFHacks
1 Replies
1842 Views
Last post May 06, 2012, 01:41:11 am
by SMFHacks
3 Replies
1988 Views
Last post May 13, 2012, 02:13:41 pm
by ApplianceJunk

+- Recent Topics

Importing GeoIP into MySQL by kirkvan
Today at 05:04:00 pm

ad code by SMFHacks
Today at 11:45:17 am

Responsive SMFHacks mods for SMF2.1 by Vincent Volmer
June 23, 2017, 09:16:48 am

[WIP] SMF Wiki for SMF 2.0.14 by SMFHacks
May 31, 2017, 10:49:05 pm

Are you killing your forum? by shuban
May 25, 2017, 01:26:02 pm

[Mod]Unofficial SMF 1.1.23 for PHP7 by shuban
May 25, 2017, 01:15:53 pm

Bulk Upload Option? by SMFHacks
May 25, 2017, 01:07:41 pm

nCode Image Resizer ssl sertifika ? by sempatiko
May 23, 2017, 02:50:28 pm

seo4smf_lite-3.2.0-2.1.x by sempatiko
May 23, 2017, 02:34:10 pm

SMF Staff mod button image by SMFHacks
May 22, 2017, 06:50:40 pm

Powered by EzPortal