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: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 184
Total: 184

Author Topic: Multiple ads in header  (Read 16616 times)

0 Members and 1 Guest are viewing this topic.

Offline rickk

  • Member
  • *
  • Posts: 43
    • View Profile
Re: Multiple ads in header
« Reply #15 on: June 15, 2015, 01:38:57 pm »
and how do you load the banner files?  does it allow you to load two for the same ad?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Multiple ads in header
« Reply #16 on: June 15, 2015, 01:41:14 pm »
Yes it does. Just assign two ads to that ad location. when adding the ad.
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 rickk

  • Member
  • *
  • Posts: 43
    • View Profile
Re: Multiple ads in header
« Reply #17 on: June 15, 2015, 01:44:30 pm »
I'll give it a try - thx.

Offline rickk

  • Member
  • *
  • Posts: 43
    • View Profile
Re: Multiple ads in header
« Reply #18 on: June 15, 2015, 05:41:04 pm »
Yes you don't need to create two header locations.

Just modify ShowAdLocation();

And change to
ShowAdLocation(#location ID goes here#,0,false,2);l

This is what I see for the header code:
Code: [Select]
// Begin Ad Seller Pro Location - Overall Header

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

$adSellerAdData =  ShowAdLocation(1,0,false,2);
if ($adSellerAdData != false)
{
echo $adSellerAdData;
}

// End Ad Seller Pro Location - Overall Header
What do I modify? The (1 in the (1,0,false,2)?
Where would I find the location ID?  Is it "1" for the header?

I tried to add a second image and only the 2nd appeared  :-[
« Last Edit: June 15, 2015, 05:45:53 pm by rickk »

Offline mygsmxxx

  • Member
  • *
  • Posts: 19
    • View Profile
Re: Multiple ads in header
« Reply #19 on: September 02, 2015, 06:07:14 am »
Yes you don't need to create two header locations.

Just modify ShowAdLocation();

And change to
ShowAdLocation(#location ID goes here#,0,false,2);l

This is what I see for the header code:
Code: [Select]
// Begin Ad Seller Pro Location - Overall Header

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

$adSellerAdData =  ShowAdLocation(1,0,false,2);
if ($adSellerAdData != false)
{
echo $adSellerAdData;
}

// End Ad Seller Pro Location - Overall Header
What do I modify? The (1 in the (1,0,false,2)?
Where would I find the location ID?  Is it "1" for the header?

I tried to add a second image and only the 2nd appeared  :-[


Hi SMFHacks,

firstly I must acknowledge your awesome mod. That said, I am having the same issues as rickk. Having modified the ShowAdLocation for overall header to 1,0,false,3, it has been so far impossible to get 3 ads on the same header location.

What do I need to do next?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Multiple ads in header
« Reply #20 on: September 02, 2015, 07:27:42 am »
Make sure you have at least three different ads set to that 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 mygsmxxx

  • Member
  • *
  • Posts: 19
    • View Profile
Re: Multiple ads in header
« Reply #21 on: September 02, 2015, 07:44:48 am »
Make sure you have at least three different ads set to that ad location.


Thanks for the response. I have already done that, and the result is not very nice. To serve my purpose, all the ads have to be on the same header, and not three different headers.

Find attached.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Multiple ads in header
« Reply #22 on: September 02, 2015, 07:48:30 am »
Attach your index.template.php of that theme.
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 mygsmxxx

  • Member
  • *
  • Posts: 19
    • View Profile
Re: Multiple ads in header
« Reply #23 on: September 02, 2015, 07:56:21 am »
Nice. Kindly find attached

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Multiple ads in header
« Reply #24 on: September 02, 2015, 10:45:29 am »
Everything looks ok from what I can see in the file. What type of adcode are you using. It shouldn't be all over the place but it does depend on the html code.
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 mygsmxxx

  • Member
  • *
  • Posts: 19
    • View Profile
Re: Multiple ads in header
« Reply #25 on: September 02, 2015, 11:24:14 am »
Everything looks ok from what I can see in the file. What type of adcode are you using. It shouldn't be all over the place but it does depend on the html code.


No codes; just the banners

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Multiple ads in header
« Reply #26 on: September 02, 2015, 12:15:10 pm »
Do you have link to a page that this occurs on?
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 mygsmxxx

  • Member
  • *
  • Posts: 19
    • View Profile
Re: Multiple ads in header
« Reply #27 on: September 02, 2015, 12:53:25 pm »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Multiple ads in header
« Reply #28 on: September 02, 2015, 01:01:58 pm »
Hmmm don't have a good fix for this right now
The only thing you can do for now is remove the alignment code
In sources/adseller2.php
Code: [Select]
if (!empty($adRow['align']))
{
if ($adRow['align'] == 1)
$adDisplayData .= '<div align="left">';
if ($adRow['align'] == 2)
$adDisplayData .= '<div align="center">';
if ($adRow['align'] == 3)
$adDisplayData .= '<div align="right">';
}

Remove
Code: [Select]
if (!empty($adRow['align']))
$adDisplayData .= '</div>';
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 mygsmxxx

  • Member
  • *
  • Posts: 19
    • View Profile
Re: Multiple ads in header
« Reply #29 on: September 02, 2015, 03:36:37 pm »
I tried the suggestion, but the forum immediately stopped displaying after doing that. I had to put the code back for it to work again.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
5481 Views
Last post January 30, 2007, 10:24:10 am
by SMFHacks
0 Replies
3555 Views
Last post August 31, 2007, 03:48:19 pm
by jossiejojo
2 Replies
4548 Views
Last post September 16, 2010, 05:28:34 pm
by endomorph
18 Replies
9628 Views
Last post June 28, 2014, 03:42:30 pm
by SMFHacks
0 Replies
3883 Views
Last post March 13, 2016, 10:11:34 pm
by SMFHacks

+- 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