WordPress.org

Support

Support » Plugins and Hacks » Ads gone after upgrading

Ads gone after upgrading

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author drmen8x
    Member

    @drmen8x

    hi sijo55, can you tell me what problem with you when you upgrading to 2.0?

    Plugin Author drmen8x
    Member

    @drmen8x

    I have tested my plugin with wordpress version 3.4.1 and version 3.4.2 and it done. Check it here http://blog.casanova.vn

    Hi again..
    The ads are not showing with the new version.
    I have tried with IE, FF and chrome.
    I’m using wp 3.4.2

    Plugin Author drmen8x
    Member

    @drmen8x

    Try uninstall and reinstall it again. Remember set width & height of your banner (Left & Right).
    You can test it in IE, Chrome, FF this link: http://blog.casanova.vn

    I have done uninstall and reinstall several times with same result.
    I have also tried “Active plugin Yes/No” several times.
    I can see it works on your site, but still not on mine..

    Take a look at this. This is the diff inserted into body:

    Version 1.0:

    <div style="display: none;"><a href="http://casanova.vn" title="Ao So Mi Nam Han Quoc">Ao So Mi Nam Han Quoc</a> va Ao Vest Han Quoc, Ca Vat Han Quoc</div>	<div id="divAdRight" style="display: none; position: absolute; top: 0px;"> <a target="_blank" href = "http://www.xn--idyry-yua.no/iDyroy/redirect.php?url=www.dyroymat.no/">
    <img alt="" src="http://www.xn--idyry-yua.no/iDyroy/images/ads/DMannonse2012.gif" width="180" height="600" class="style1" /></a></div><div id="divAdLeft" style="display: none; position: absolute; top: 0px;"><a target="_blank" href="http://norwayfishing.co.uk/">
    <img alt="" src="http://www.xn--idyry-yua.no/iDyroy/images/ads/NorwayFishing.jpg" width="180" height="600" class="style1" /></a>
    </div>
        	<script type="text/javascript">
    		var clientWidth	=	document.body.clientWidth;
    		if(clientWidth > 1024){
    			MainContentW = 1000;
    			LeftBannerW = 180;
    			RightBannerW = 10;
    			LeftAdjust = 10;
    			RightAdjust = 10;
    			TopAdjust = 80;
    			ShowAdDiv();
    			window.onresize=ShowAdDiv;
    		}
        </script>
    
    	<script type="text/javascript">

    Version 2.0:

    <script type="text/javascript">
                var clientWidth	=	document.body.clientWidth;
                if(clientWidth > 1024){
                    document.write('<div id="divAdRight" style="position: absolute; top: 0px; width:180px; height:600px; overflow:hidden;"> <a target="_blank" href = "http://www.xn--idyry-yua.no/iDyroy/redirect.php?url=www.dyroymat.no/">
    <img alt="" src="http://www.xn--idyry-yua.no/iDyroy/images/ads/DMannonse2012.gif" width="180" height="600" class="style1" /></a></div><div id="divAdLeft" style="position: absolute; top: 0px; width:180px; height:600px; overflow:hidden;"><a target="_blank" href="http://norwayfishing.co.uk/">
    <img alt="" src="http://www.xn--idyry-yua.no/iDyroy/images/ads/NorwayFishing.jpg" width="180" height="600" class="style1" /></a>
    </div>');	
    
                    var MainContentW = 1000;
                    var LeftBannerW = 180;
                    var RightBannerW = 180;
                    var LeftAdjust = 10;
                    var RightAdjust = 10;
                    var TopAdjust = 80;
                    ShowAdDiv();
                    window.onresize=ShowAdDiv;
                }
            </script>

    Is this right?

    Plugin Author drmen8x
    Member

    @drmen8x

    download plugin again (if you want). I’ve added screenshot-3.png (see: http://blog.casanova.vn//wp-content/plugins/float-left-right-advertising/screenshot-3.png), and replace document.body.clientWidth to window.screen.width;.

    Remember: If your resolution width >= Banner Left Width + Margin Left + Main Content Width + Banner Right Width + Margin Right then it display good.

    downloaded and tried, still dont work…

    Plugin Author drmen8x
    Member

    @drmen8x

    Show me your url and your configuration. I want to known what error!

    Hi again..
    Here is my site

    ..and my config

    Since I have paid ads in left and right the installed version 2.0 of your plugin will only stay for 1 hour from now, then I’ll be back on version 1.0

    Plugin Author drmen8x
    Member

    @drmen8x

    From your config:

    Main width: 1000px
    Banner left width: 180px
    Banner right width: 180px
    margin left: 10px
    margin right: 10px

    ==> Total width= 1000+180+180+10+10 = 1380px
    If screen width < 1380px (ie 1280) then horizontal scrollbar will display. I think you should set banner width to 100px if you want ads display in resolution (1280 * xxx)

    At the moment i don’t know why your website doesn’t display your ads with version 2.0, i’ll test this plugin again and fixed soon.

    I can only get ads to display when image is loaded on the site
    i.e. http://www.mysite.com/wp-content/uploads/2013/04/image.jpg

    and not when I use the advertisers image from there site
    i.e. http://www.advertisersite.com/images/advert.jpg

    plus clicking the link does not go to ad site, just reopens my site.
    should I try version one?
    many thanks

    http://daftynews.co.uk

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Ads gone after upgrading’ is closed to new replies.