Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12404
Latest: azaratir
New This Month: 10
New This Week: 0
New Today: 0
Stats
Total Posts: 39925
Total Topics: 7028
Most Online Today: 28
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 28
Total: 28

Author Topic: Display ads on every page as a tower on the left side?  (Read 7549 times)

0 Members and 1 Guest are viewing this topic.

Offline ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
Display ads on every page as a tower on the left side?
« 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!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14969
    • View Profile
Re: Display ads on every page as a tower on the left side?
« Reply #1 on: May 07, 2013, 01:18:22 pm »
Looks like you have it working on that site?
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 ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
Re: Display ads on every page as a tower on the left side?
« Reply #2 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,

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14969
    • View Profile
Re: Display ads on every page as a tower on the left side?
« Reply #3 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
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 ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
Re: Display ads on every page as a tower on the left side?
« Reply #4 on: May 07, 2013, 02:23:14 pm »
That works, :D

Don't know how I did not see that before, thanks!

Offline ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
Re: Display ads on every page as a tower on the left side?
« Reply #5 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,



Offline ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
Re: Display ads on every page as a tower on the left side?
« Reply #6 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();

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14969
    • View Profile
Re: Display ads on every page as a tower on the left side?
« Reply #7 on: May 07, 2013, 07:12:40 pm »
Awesome yeah that should do it.
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 ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
Re: Display ads on every page as a tower on the left side?
« Reply #8 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,
« Last Edit: August 05, 2014, 06:44:43 pm by ApplianceJunk »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14969
    • View Profile
Re: Display ads on every page as a tower on the left side?
« Reply #9 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?
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 ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
Re: Display ads on every page as a tower on the left side?
« Reply #10 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!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14969
    • View Profile
Re: Display ads on every page as a tower on the left side?
« Reply #11 on: August 06, 2014, 10:39:59 pm »
Ah good to know!
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
0 Replies
2491 Views
Last post July 06, 2008, 01:49:41 am
by vkot
1 Replies
2065 Views
Last post June 13, 2013, 11:00:52 pm
by SMFHacks
9 Replies
3294 Views
Last post January 26, 2014, 12:11:17 pm
by SMFHacks
7 Replies
3670 Views
Last post January 26, 2014, 02:33:03 pm
by mrnuke7175
18 Replies
5345 Views
Last post January 27, 2016, 10:13:05 pm
by northview

+- Recent Topics

Update detect mobile mode PHP5 to PHP7 by Rock Lee
November 16, 2019, 07:18:13 pm

PHP error by davejo
November 12, 2019, 12:09:47 pm

Message Editor Pro Issues by SMFHacks
November 06, 2019, 09:58:33 pm

most popular categories doesnt work by fussilet
November 02, 2019, 02:51:42 pm

Change colors of Halloween theme by SMFHacks
October 24, 2019, 11:44:59 am

prettyurls - TroubleShooting.wiki by Rock Lee
October 10, 2019, 11:37:09 am

Some issues with adding and editing a listing by ajac63
October 07, 2019, 04:16:40 am

Problem update 1.1.21 to 2.0.15 by Rock Lee
October 06, 2019, 06:09:16 pm

[Mod]SMF 2.0.x PHP 7.2 Support by sah62
October 04, 2019, 01:46:00 pm

Ideas by shuban
October 03, 2019, 10:19:06 pm

Powered by EzPortal