SMFHacks.com
Ad Seller Pro => Support => Topic started 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
-
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.
-
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>
-
Attach your index.template.php file
-
index template attached
-
Try this file.
Installed adseller pro to it and your custom ad location
-
Thanks... BUT I cant seem to download the file... it says I don't have permissions
-
Enter license key under
https://www.smfhacks.com/index.php?action=license
-
Absolutely brilliant... so many thanks for that I spent days on that... hahahaha