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: 193
Total: 193

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

0 Members and 1 Guest are viewing this topic.

Offline mygsmxxx

  • Member
  • *
  • Posts: 19
    • View Profile
Re: Multiple ads in header
« Reply #30 on: September 02, 2015, 06:05:34 pm »
Do you have any other suggestions?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Multiple ads in header
« Reply #31 on: September 02, 2015, 06:23:37 pm »
not at the moment.
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 #32 on: September 02, 2015, 08:08:24 pm »
Too bad. That means the mod is unusable for me as it stands....

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Multiple ads in header
« Reply #33 on: September 02, 2015, 10:20:43 pm »
Well you could make three custom ad locations and put them in a table in the header spot instead and that would work. Then assign an ad to each custom ad location.

Currently It seems like I would need to add a non alignment option to fix it since each spot uses a div tag for alignment at the moment which makes them not stack well horizontally.
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 #34 on: September 03, 2015, 08:54:40 am »
That should work. What codes could I  use, and how do I create the table at the header position?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Multiple ads in header
« Reply #35 on: September 03, 2015, 11:23:12 am »
You could use a table in index.template.php then add each custom ad location example below.
Change the ad location id's to your custom ad locations.

Use this code to replace the overall header that you are using currently.

Code: [Select]
<table align="center">
<tr>
<td>';

// Begin Ad Seller Pro Location - test

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

echo '
</td>
<td>';


// Begin Ad Seller Pro Location - Overall Header

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

$adSellerAdData =  ShowAdLocation(1,0,false,3);
if ($adSellerAdData != false)

{
echo $adSellerAdData;
}

// End Ad Seller Pro Location - Overall Header


echo '
</td>
<td>
';

// Begin Ad Seller Pro Location - test

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


echo '</td>

</tr>
</table>
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 #36 on: September 03, 2015, 02:31:08 pm »
Placing the code in index.template.php caused an error which stopped the forum from working. I'm still trying to figure it out though. Any additional input is appreciated.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Multiple ads in header
« Reply #37 on: September 03, 2015, 02:37:49 pm »
Attach your index.template.php will replace 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 mygsmxxx

  • Member
  • *
  • Posts: 19
    • View Profile
Re: Multiple ads in header
« Reply #38 on: September 03, 2015, 02:50:52 pm »
Thanks. Find it attached.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Multiple ads in header
« Reply #39 on: September 03, 2015, 03:09:08 pm »
Attached the 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 mygsmxxx

  • Member
  • *
  • Posts: 19
    • View Profile
Re: Multiple ads in header
« Reply #40 on: September 03, 2015, 03:24:26 pm »
I can't access the attachment in your post. Could it be as a result of membergroups permissions?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Multiple ads in header
« Reply #41 on: September 03, 2015, 03:30:33 pm »
Yes
Add license information on this page http://www.smfhacks.com/index.php?action=license to gain access to attachments and other customer forums
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 #42 on: September 03, 2015, 04:17:39 pm »
I've added it

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Multiple ads in header
« Reply #43 on: September 03, 2015, 04:31:49 pm »
Ok you should see the attachment then.
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 #44 on: September 03, 2015, 07:48:25 pm »
Seen it; uploaded it; tested it. Worked like a charm. Thanks for the wonderful support. I'll be using a similar code for the footer.

 

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