SMFHacks.com

Ad Seller Pro => Support => Topic started by: ApplianceJunk on May 07, 2013, 12:58:12 pm

Title: Display ads on every page as a tower on the left side?
Post by: ApplianceJunk on May 07, 2013, 12:58:12 pm
Hi,

I'm using ad seller pro, but noticed in your free smf ad mod there is...

"Display ads on every page as a tower on the left side".

Tried it out on my test site here.
http://diyappliancerepair.com/index.php

Could you tell me where to put the code I create with the Ad Seller Pro mod for that same location?

Thanks!
Title: Re: Display ads on every page as a tower on the left side?
Post by: SMFHacks on May 07, 2013, 01:18:22 pm
Looks like you have it working on that site?
Title: Re: Display ads on every page as a tower on the left side?
Post by: ApplianceJunk on May 07, 2013, 01:22:15 pm
Hi,

I should have been more clear, sorry.

Yes, I have it working on http://diyappliancerepair.com (test site) using the free smf ad management mod.
http://custom.simplemachines.org/mods/index.php?mod=255

My question though is how can I create that same location using Ad Seller Pro?
I use Ad Seller Pro with http://appliancejunk.com to display ads.

Thanks,
Title: Re: Display ads on every page as a tower on the left side?
Post by: SMFHacks on May 07, 2013, 01:57:17 pm
There should be a left column location that you need to enable. Once enabled you can add ad's to that column
Title: Re: Display ads on every page as a tower on the left side?
Post by: ApplianceJunk on May 07, 2013, 02:23:14 pm
That works, :D

Don't know how I did not see that before, thanks!
Title: Re: Display ads on every page as a tower on the left side?
Post by: ApplianceJunk on May 07, 2013, 03:55:59 pm
Sorry to be such a pest about this ad location.

There seems to be a slight difference between the left side ad location between the free SMF ad management mod and the Ad Seller Pro mod.

I have added two attachments to point out the differences along with the site links below.

Using: Ad Management
http://diyappliancerepair.com

Using: Ad Seller Pro
http://appliancejunk.com

I like how the ad location at http://diyappliancerepair.com is displayed under the link tree instead along side the link tree.

I would guess I need to edit the Ad Seller Pro ad location in the index.template.php file, but for the life of me I can't figure it out.

Any help in getting the ad location to display under the link tree at http://appliancejunk.com would be greatly appreciated.

Thanks,


Title: Re: Display ads on every page as a tower on the left side?
Post by: ApplianceJunk on May 07, 2013, 05:02:16 pm
Think I figured it out. ;)

Took the link code in index.template.php

Code: [Select]
// Begin Ad Seller Pro Location - Left Side of the Forum


if (ShowAdLocation(9,0,true) || ShowAdLocation(10,0,true))
{
echo '<table width="100%">
<tr>';

global $sourcedir;
include_once $sourcedir . "/adseller2.php";

$adSellerAdData =  ShowAdLocation(9);
if ($adSellerAdData != false)
{
echo '<td valign="top">';

echo $adSellerAdData;

echo '</td>';
}



echo '<td valign="top" width="100%">';
}


// End Ad Seller Pro Location - Left Side of the Forum

and moved it to just after...

Code: [Select]
// Show the navigation tree.
theme_linktree();
Title: Re: Display ads on every page as a tower on the left side?
Post by: SMFHacks on May 07, 2013, 07:12:40 pm
Awesome yeah that should do it.
Title: Re: Display ads on every page as a tower on the left side?
Post by: ApplianceJunk on August 05, 2014, 06:42:43 pm
Old topic, but still related to what I'm trying to currently accomplish.

I"m using this code I got from Google to display my Google+ Badge as shown in the attachment.

Code: [Select]
<!-- Place this tag where you want the widget to render. -->
<div class="g-page" data-width="180" data-href="//plus.google.com/u/0/112501127124723139472" data-rel="publisher"></div>

<!-- Place this tag after the last widget tag. -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/platform.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>

If I just copy and paste it into the "Left Column Location" it only displays the Google+ badge on my home page, index.php and not one any of the other pages even though I have the other locations checked in the settings.

If I replace the code with just simple text like the word TEST that word shows up in the "Left Column Location" on the index.php page and all the other pages as it should.

I'm guessing I must have to do a bit of editing to the code I got from google, but now sure how.

I have been experimenting with the code google gave to try and get it to work, but have given up and come here looking for help now.

I would greatly appreciate any help.

Thanks,
Title: Re: Display ads on every page as a tower on the left side?
Post by: SMFHacks on August 06, 2014, 10:43:23 am
Do you have any other google+ code on your forum? Such as a modification or code that you added?
Title: Re: Display ads on every page as a tower on the left side?
Post by: ApplianceJunk on August 06, 2014, 10:33:10 pm
Yes I did have other google+ code on my site, so I removed it and tried again only to have the same problem.
But then it hit me. The problem was ad blocker, lol...

Don't know why it would not block it on the index page like it did on all the other pages, but once I disabled ad blocker in my browser it displayed correctly on the rest of the site.

Thanks!
Title: Re: Display ads on every page as a tower on the left side?
Post by: SMFHacks on August 06, 2014, 10:39:59 pm
Ah good to know!