Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43293
Total Topics: 7522
Most Online Today: 96
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 107
Total: 107

Author Topic: Sidebar Image width  (Read 3677 times)

0 Members and 1 Guest are viewing this topic.

Offline hippieboy123

  • Member
  • *
  • 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: 16451
    • 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 https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline hippieboy123

  • Member
  • *
  • 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
4468 Views
Last post October 08, 2007, 06:38:41 pm
by SMFHacks
2 Replies
4365 Views
Last post October 07, 2008, 07:45:29 am
by SMFHacks
0 Replies
3150 Views
Last post April 28, 2010, 03:08:09 pm
by PurpleCrow
1 Replies
3675 Views
Last post May 06, 2012, 01:41:11 am
by SMFHacks
3 Replies
3609 Views
Last post May 13, 2012, 02:13:41 pm
by ApplianceJunk

+- Recent Topics

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

Powered by EzPortal