Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11982
Latest: jonny88
New This Month: 8
New This Week: 3
New Today: 1
Stats
Total Posts: 38097
Total Topics: 6707
Most Online Today: 86
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 52
Total: 53

Author Topic: Sidebar Image width  (Read 1048 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: 14116
    • 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
3110 Views
Last post October 08, 2007, 06:38:41 pm
by SMFHacks
2 Replies
2872 Views
Last post October 07, 2008, 07:45:29 am
by SMFHacks
1 Replies
1806 Views
Last post August 04, 2010, 06:39:20 pm
by SMFHacks
1 Replies
1898 Views
Last post May 06, 2012, 01:41:11 am
by SMFHacks
3 Replies
2060 Views
Last post May 13, 2012, 02:13:41 pm
by ApplianceJunk

+- Recent Topics

Advance Fake Users and Guests Online by jonny88
Today at 09:28:28 am

Purchase Notification Email to Store Admins by scso1502
August 18, 2017, 05:22:42 pm

Won't install in ShelfLife theme. No code matching "Find" code. by ted245
August 11, 2017, 10:12:59 am

Image Linking Codes section missing after install by ted245
August 11, 2017, 08:31:52 am

please i need a programmer who can build this exact forum using smf by horlique
August 07, 2017, 09:03:25 am

Are SMFHack mods compatible with SMF 2.1? by SMFHacks
August 06, 2017, 07:56:38 am

Allow user to customize username and password by SMFHacks
August 04, 2017, 12:22:53 pm

Reset gallery by SMFHacks
August 03, 2017, 11:04:39 am

Members Can't create a Category to upload photos to by SMFHacks
August 02, 2017, 05:07:03 pm

Only post in own galleries by SMFHacks
August 01, 2017, 12:12:36 pm

Powered by EzPortal