Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11916
Latest: aire
New This Month: 17
New This Week: 5
New Today: 0
Stats
Total Posts: 37897
Total Topics: 6668
Most Online Today: 91
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 70
Total: 70

Author Topic: Sidebar Image width  (Read 347 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: 14031
    • 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
2934 Views
Last post October 08, 2007, 06:38:41 pm
by SMFHacks
2 Replies
2730 Views
Last post October 07, 2008, 07:45:29 am
by SMFHacks
1 Replies
1686 Views
Last post August 04, 2010, 06:39:20 pm
by SMFHacks
1 Replies
1765 Views
Last post May 06, 2012, 01:41:11 am
by SMFHacks
3 Replies
1901 Views
Last post May 13, 2012, 02:13:41 pm
by ApplianceJunk

+- Recent Topics

Error 500 in index.php?action=gallery;sa=add2 by nend
April 28, 2017, 01:31:50 pm

Custom Fields in Gallery by bknapp
April 26, 2017, 07:03:07 pm

With .htaccess, how do I redirect an action to another action by nend
April 26, 2017, 10:29:51 am

RSS Feed killed my forum by hippieboy123
April 18, 2017, 07:39:26 am

Is there a converter than converts all files found in topics of a specific board by SMFHacks
April 13, 2017, 02:46:18 pm

Sidebar Image width by hippieboy123
April 12, 2017, 01:32:00 pm

I run a Custom Theme and have many Test Failed - What to do? by SMFHacks
April 11, 2017, 05:12:15 pm

Daughter menus by Labradoodle-360
April 08, 2017, 05:37:22 pm

Lost my copyright removal when I converted forum to SSL by Nova
April 08, 2017, 01:19:50 pm

Newsletter Pro errors in log by SMFHacks
April 03, 2017, 04:54:40 pm

Powered by EzPortal