Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4200
Latest: [chrisB]
New This Month: 0
New This Week: 1
New Today: 0
Stats
Total Posts: 42613
Total Topics: 7433
Most Online Today: 98
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 31
Total: 32

Author Topic: new position for ad possible  (Read 697 times)

0 Members and 1 Guest are viewing this topic.

Offline alans

  • Member
  • *
  • Posts: 7
    • View Profile
new position for ad possible
« 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16161
    • View Profile
Re: new position for ad possible
« Reply #1 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.
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 alans

  • Member
  • *
  • Posts: 7
    • View Profile
Re: new position for ad possible
« Reply #2 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>

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16161
    • View Profile
Re: new position for ad possible
« Reply #3 on: September 07, 2021, 07:00:05 pm »
Attach your index.template.php file
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 alans

  • Member
  • *
  • Posts: 7
    • View Profile
Re: new position for ad possible
« Reply #4 on: September 07, 2021, 07:10:47 pm »
index template attached

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16161
    • View Profile
Re: new position for ad possible
« Reply #5 on: September 07, 2021, 07:30:02 pm »
Try this file.
Installed adseller pro to it and your custom ad location
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 alans

  • Member
  • *
  • Posts: 7
    • View Profile
Re: new position for ad possible
« Reply #6 on: September 07, 2021, 08:21:52 pm »
Thanks... BUT I cant seem to download the file... it says I don't have permissions

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16161
    • View Profile
Re: new position for ad possible
« Reply #7 on: September 07, 2021, 08:24:13 pm »
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 alans

  • Member
  • *
  • Posts: 7
    • View Profile
Re: new position for ad possible
« Reply #8 on: September 07, 2021, 08:42:28 pm »
Absolutely brilliant... so many thanks for that I spent days on that... hahahaha

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4820 Views
Last post September 03, 2007, 02:14:42 pm
by SMFHacks
1 Replies
1935 Views
Last post October 16, 2011, 03:01:51 pm
by SMFHacks
1 Replies
4270 Views
Last post July 26, 2012, 10:22:15 pm
by SMFHacks
1 Replies
2585 Views
Last post April 08, 2014, 04:44:53 pm
by SMFHacks
2 Replies
3314 Views
Last post May 28, 2014, 02:47:15 pm
by 200mV

+- Recent Topics

List of changes in SMFGallery by Monocero
Today at 06:23:53 am

Permissions query by davejo
November 30, 2022, 09:52:38 am

Errors with SMF2WPBridge by [chrisB]
November 29, 2022, 04:30:26 pm

"Notify all store admins of item purchase" Not Working in SMF 2.1.2 or 2.1.3 by SMFHacks
November 29, 2022, 01:15:50 pm

Undefined index: id by Shades
November 29, 2022, 12:15:20 pm

Additional Recommendations for SMF Store by Michael Vail
November 26, 2022, 12:49:58 pm

SMF Store 5.0 Beta Errors - Trying to access array offset on value of type null by Michael Vail
November 26, 2022, 12:07:42 pm

Modification: Subcategories total in main gallery view by VisiGod
November 26, 2022, 11:27:34 am

Change log for Downloads Pro 6.13 and 6.14 by Nicole
November 20, 2022, 08:24:34 am

Release date? by SMFHacks
November 20, 2022, 08:09:10 am

Powered by EzPortal