Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4253
Latest: Ineedsmfhelp
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43242
Total Topics: 7516
Most Online Today: 92
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 99
Total: 99

Author Topic: Chrome different than IE  (Read 3988 times)

0 Members and 1 Guest are viewing this topic.

Offline VapeTech

  • Member
  • *
  • Posts: 39
    • View Profile
Chrome different than IE
« on: July 25, 2015, 07:10:56 am »
I have another problem  I am testing some ad sizes I have set the right side ad to be 220X150 I created an ad banner this size but if you look at in in Chrome the banner is tiny, if you look at the page in IE the size is right.  http://www.vapeshopforum.com/ futhermore, the Bottom footer bannor sems to resize properly when you change the browser window, but the right side ad, does not. 


Also I would like to have several of these Ad sizes on the left and right,is there a way to stack these.  I would like 4 or 5 on each side.

Thanks!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16428
    • View Profile
Re: Chrome different than IE
« Reply #1 on: July 25, 2015, 08:29:36 am »
Attach your theme's index.template.php file
This one is going to be tricky since the theme is responsive might require custom css not sure yet.

Quote
Also I would like to have several of these Ad sizes on the left and right,is there a way to stack these.  I would like 4 or 5 on each side.
Just for the right and left ad locations? Stacked vertically right?
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 VapeTech

  • Member
  • *
  • Posts: 39
    • View Profile
Re: Chrome different than IE
« Reply #2 on: July 25, 2015, 10:13:47 am »
Yes.. Fingers crossed.. thanks for the help

 it is attached


Offline VapeTech

  • Member
  • *
  • Posts: 39
    • View Profile
Re: Chrome different than IE
« Reply #3 on: July 25, 2015, 02:45:39 pm »
From what I am reading on this, it has something to do with the table tag and Chrome/Safari browsers when using the bootstrap.css and custom img tag

The page define the Img section on the theme

img
{
   max-width: 100%;       
   height: auto;
}

This sets the responsive resizing, so having it in a table messes it up. If I remove the style then the image is full size, but will not resize making a smaller window or mobile device impossible to read. I have not figured out the work around yet.


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16428
    • View Profile
Re: Chrome different than IE
« Reply #4 on: July 25, 2015, 10:52:00 pm »
This index.template.php for that theme will allow you to have multiple ads stack in the sidebar
Still have to figure out the responsive side of things.
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 VapeTech

  • Member
  • *
  • Posts: 39
    • View Profile
Re: Chrome different than IE
« Reply #5 on: July 26, 2015, 10:42:27 am »
Thanks!,  is this for all areas and how will it work? is there a variable that lets me set the number of ads stacked and on what side of the screen?


I found a table example of responsive use inside of a table that work in their example.  http://jsfiddle.net/TAE3w/21/  I tried to impliment it in the adseller2.php file but it still does not want to work. It seems to want to conform to the TD columns.

I created the CSS for this in the Theme

Code: [Select]
#divAdSellerPro {
    height: 100%;
    width: 100%;
    border:2px solid red;
}
#divAdSellerPro img {
    max-width: 100%;
    max-height: 100%;
 
}

and this in the php, just as a test

Code: [Select]
$adDisplayData .= '
     
     
      <div id="divAdSellerPro">   
            <img  onload="(function() {  var parentSize = this.parentNode.clientWidth; this.style.width=\'auto\'; if(this.clientWidth > parentSize) this.style.width = \'100%\'; }).call(this)" src="https://www.google.ru/images/srpr/logo4w.png"/>
           
            </div>
     
      ';


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16428
    • View Profile
Re: Chrome different than IE
« Reply #6 on: July 26, 2015, 07:42:20 pm »
Just for the right and left side areas that I modified.
The main function call is
Code: [Select]
ShowAdLocation($LocationID, $boardID = 0, $checkReturn = false, $showAdsCount = 1, $verticalAd = false)

Changed for instance this:
Code: [Select]
$adSellerAdData =  ShowAdLocation(9);
To
Code: [Select]
$adSellerAdData =  ShowAdLocation(9,0,false,5,true);

Which made it show up to 5 ads at a time and vertical.
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 VapeTech

  • Member
  • *
  • Posts: 39
    • View Profile
Re: Chrome different than IE
« Reply #7 on: July 30, 2015, 07:46:15 am »
I posted the issue with the responsive problem and the ads at the theme's website forum.  Here is the answer and it seemed to fix the problem. 

Thanks for your continued help with this.  now if I can get the menu working as it should.

http://smftricks.com/index.php?topic=856.new#new

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16428
    • View Profile
Re: Chrome different than IE
« Reply #8 on: July 30, 2015, 07:55:11 am »
Cool good to know for the future!
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/

 

Related Topics

  Subject / Started by Replies Last post
6 Replies
6255 Views
Last post August 25, 2012, 10:19:56 am
by SMFHacks

+- Recent Topics

is it possible to add support for odysee.com by SMFHacks
March 13, 2024, 10:53:28 pm

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

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

User Gallery Feature: move / bulk move images by SMFHacks
January 30, 2024, 05:48:25 pm

In the future it may be for smf 2.1.x? by smithloo
January 30, 2024, 12:55:34 am

Powered by EzPortal