Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43293
Total Topics: 7522
Most Online Today: 118
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 105
Total: 106

Author Topic: Multiple ads in header  (Read 16669 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: 16451
    • 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: 16451
    • 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: 16451
    • 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: 16451
    • 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: 16451
    • 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: 16451
    • 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: 16451
    • 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
5491 Views
Last post January 30, 2007, 10:24:10 am
by SMFHacks
0 Replies
3562 Views
Last post August 31, 2007, 03:48:19 pm
by jossiejojo
2 Replies
4572 Views
Last post September 16, 2010, 05:28:34 pm
by endomorph
18 Replies
9667 Views
Last post June 28, 2014, 03:42:30 pm
by SMFHacks
0 Replies
3898 Views
Last post March 13, 2016, 10:11:34 pm
by SMFHacks

+- Recent Topics

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

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

Powered by EzPortal