SMFHacks.com

Ad Seller Pro => Support => Topic started by: alans on September 01, 2021, 09:21:02 pm

Title: new position for ad possible
Post by: alans on September 01, 2021, 09:21:02 pm
Im wondering if it is possible to have a position for a banner add in the very top as per the screen grab attached. Im thinking in the case of your above page in the teal area at the top to the left of the facebook logo and below the product link. I hope that is as clear as mud.hahha
Title: Re: new position for ad possible
Post by: SMFHacks on September 01, 2021, 09:27:00 pm
Yes, you can create new positions. There is an option to add a location in the mod itself.
Then just copy the PHP code to that location in the template area to attach to it.
Title: Re: new position for ad possible
Post by: alans on September 07, 2021, 06:58:58 pm
Sorry to bother you but I just cant make that work...  here is the code I'm using.. im trying to get to know php having been stuck in cgi for many years.. ;D  the iframe works but is not really the way I want to go... this is in index.template

<div id="logo_title">
            <table width=100% border=0><tr><td width=40%> <h1 class="forumtitle"><a href="', $scripturl, '"><img src="', empty($context['header_logo_url_html_safe']) ? $settings['images_url'] . '/smflogo.gif' : $context['header_logo_url_html_safe'] ,'" alt="' . $context['forum_name'] . '" />', '</a></td><td width=60%>

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

$adSellerAdData =  ShowAdLocation(1000);

// Check if any ads where found
if ($adSellerAdData != false)
{
   // Dispaly the advertising code
   echo $adSellerAdData;
}

// End Ad Seller Pro Location - very Top next to logo
 

 </td></tr></table>
            </h1>
Title: Re: new position for ad possible
Post by: SMFHacks on September 07, 2021, 07:00:05 pm
Attach your index.template.php file
Title: Re: new position for ad possible
Post by: alans on September 07, 2021, 07:10:47 pm
index template attached
Title: Re: new position for ad possible
Post by: SMFHacks on September 07, 2021, 07:30:02 pm
Try this file.
Installed adseller pro to it and your custom ad location
Title: Re: new position for ad possible
Post by: alans on September 07, 2021, 08:21:52 pm
Thanks... BUT I cant seem to download the file... it says I don't have permissions
Title: Re: new position for ad possible
Post by: SMFHacks on September 07, 2021, 08:24:13 pm
Enter license key under
https://www.smfhacks.com/index.php?action=license
Title: Re: new position for ad possible
Post by: alans on September 07, 2021, 08:42:28 pm
Absolutely brilliant... so many thanks for that I spent days on that... hahahaha