Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 11 Mar 2017, 15:50
Emad ELsayed's Avatar
Emad ELsayed Emad ELsayed is offline
 
Join Date: Feb 2013
How add floating ads in left and right vb4

welcome everybody
How add floating ads in left and right vb4 ?
This code works

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But when minimize the window size of the Forum .. comes in the background
Is there a way to fit with Style
Reply With Quote
  #2  
Old 11 Mar 2017, 15:58
KevinL KevinL is offline
 
Join Date: Apr 2005
You can check out this mod

http://www.vbulletin.org/forum/showt...99#post2570099
Reply With Quote
  #3  
Old 11 Mar 2017, 16:32
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
This information below will only work correctly on fixed width sites...

Say for example your site has a fixed width of 800px centered on the screen, and then your side banners are a width of 160px each. That will require a minimum of 1120px total to show everything (without any margins). Now, you can take into account a small margin between ads so everything doesn't show right on top of each other, so we'll add 80px (20px on both the left & right side of each ad) for a total of 1200px.

We'll now need to write css code to say don't show those sidebar ads when the screen is less than 1200px wide.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You can add this code to additional.css template. Then confirm it is working like desired by manually adjusting your screen width.

Last edited by bzcomputers; 11 Mar 2017 at 16:37.
Reply With Quote
  #4  
Old 11 Mar 2017, 16:51
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Would it be this product?

Screenshot
Screenshot.png
Attached Files
File Type: xml product-yilmaz_floating_ads.xml (5.5 KB, 3 views)

Last edited by yilmaz; 11 Mar 2017 at 18:38.
Reply With Quote
  #5  
Old 11 Mar 2017, 20:50
Emad ELsayed's Avatar
Emad ELsayed Emad ELsayed is offline
 
Join Date: Feb 2013
Originally Posted by KevinL View Post
Dear Sorry it did not work 4.2.4


Originally Posted by bzcomputers View Post
This information below will only work correctly on fixed width sites...

Say for example your site has a fixed width of 800px centered on the screen, and then your side banners are a width of 160px each. That will require a minimum of 1120px total to show everything (without any margins). Now, you can take into account a small margin between ads so everything doesn't show right on top of each other, so we'll add 80px (20px on both the left & right side of each ad) for a total of 1200px.

We'll now need to write css code to say don't show those sidebar ads when the screen is less than 1200px wide.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You can add this code to additional.css template. Then confirm it is working like desired by manually adjusting your screen width.
Thank you very much dear
Everything is fine now
I set the maximum width of 1000 Ad 2unit 160 and the total in 1250
Is this good for you ??
Best Regards

Originally Posted by yilmaz View Post
Would it be this product?

Screenshot
Attachment 155989
Works
But when minimize the window size of the Forum ... It appears on the forums
Reply With Quote
  #6  
Old 12 Mar 2017, 03:52
webmastersun's Avatar
webmastersun webmastersun is offline
 
Join Date: Oct 2013
Originally Posted by Emad ELsayed View Post
But when minimize the window size of the Forum .. comes in the background
Is there a way to fit with Style
You should use bzcomputers's way suggested.
Using media screen can help in this case but note that when viewing your banner ads on smaller screens, they can hide a part of your content on right and left side.
__________________
The best webmaster forum & internet marketing forum for webmasters and internet marketers.
Reply With Quote
  #7  
Old 12 Mar 2017, 15:47
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Originally Posted by Emad ELsayed View Post
Works
But when minimize the window size of the Forum ... It appears on the forums
Demo https://i.hizliresim.com/ldrG7B.gif
Attached Files
File Type: xml product-yilmaz_floating_ads.xml (5.7 KB, 2 views)
Reply With Quote
  #8  
Old 12 Mar 2017, 16:58
Emad ELsayed's Avatar
Emad ELsayed Emad ELsayed is offline
 
Join Date: Feb 2013
Originally Posted by yilmaz View Post
This works great dear
But you can develop it so that it can exclude Forum
Best regards for your cooperation
Reply With Quote
  #9  
Old 12 Mar 2017, 19:14
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Originally Posted by Emad ELsayed View Post
This works great dear
But you can develop it so that it can exclude Forum
Best regards for your cooperation
added excluded forums

Screenshot.png
Attached Files
File Type: xml product-yilmaz_floating_ads.xml (6.3 KB, 4 views)
Reply With Quote
  #10  
Old 12 Mar 2017, 21:16
Emad ELsayed's Avatar
Emad ELsayed Emad ELsayed is offline
 
Join Date: Feb 2013
Originally Posted by yilmaz View Post
added excluded forums

Attachment 155992
dear / yilmaz
I can't thank you enough
Thank a lot for the the nice gift
Best Regards
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 09:28.

Layout Options | Width: Wide Color: