Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 202
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 202
Total: 202

Author Topic: new position for ad possible  (Read 1434 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: 16436
    • 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: 16436
    • 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: 16436
    • 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: 16436
    • 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
5851 Views
Last post September 03, 2007, 02:14:42 pm
by SMFHacks
1 Replies
2917 Views
Last post October 16, 2011, 03:01:51 pm
by SMFHacks
1 Replies
4891 Views
Last post July 26, 2012, 10:22:15 pm
by SMFHacks
1 Replies
3105 Views
Last post April 08, 2014, 04:44:53 pm
by SMFHacks
2 Replies
3884 Views
Last post May 28, 2014, 02:47:15 pm
by 200mV

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal