Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4274
Latest: kellanphil
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43645
Total Topics: 7572
Most Online Today: 58
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 51
Total: 51

Author Topic: After last post ad location?  (Read 3529 times)

0 Members and 1 Guest are viewing this topic.

Offline ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
After last post ad location?
« on: November 13, 2012, 08:07:44 am »
This is the code you have for the ad location after the last post.

Code: [Select]
// Begin Ad Seller Pro Location - After Last Post

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

$adSellerAdData =  ShowAdLocation(5);
if ($adSellerAdData != false)
{


echo '<div class="',  ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2') , '">
<span class="topslice"><span></span></span>

<div class="poster">

</div>

<div class="post">
' . $adSellerAdData . '
</div>';
echo'
<span class="botslice"><span></span></span>

</div>
';



}

// End Ad Seller Pro Location - After Last Post

As it is now I only show it to guest.

I would like to create another ad and place it in the same location, then show it to all except guest.
All the div stuff is confusing me on how to place the code for the second ad location that I created.

Do I somehow just ad to this part of the code?

Code: [Select]
$adSellerAdData =  ShowAdLocation(5);
if ($adSellerAdData != false)

Thanks,

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16611
    • View Profile
Re: After last post ad location?
« Reply #1 on: November 15, 2012, 07:20:47 pm »
You would get the location code from ad seller pro for the custom location that you just created.Then just add before or after that entire ad location block that is already there.
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 ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
Re: After last post ad location?
« Reply #2 on: November 15, 2012, 07:46:48 pm »
Thanks,

 

Related Topics

  Subject / Started by Replies Last post
28 Replies
24893 Views
Last post April 13, 2007, 07:56:47 am
by sduford
4 Replies
5143 Views
Last post June 18, 2010, 08:50:58 am
by jos
2 Replies
3517 Views
Last post September 02, 2011, 08:38:35 am
by SMFHacks
15 Replies
7963 Views
Last post April 30, 2012, 10:35:20 pm
by dougvarrieur
13 Replies
10471 Views
Last post July 26, 2015, 11:34:29 am
by SMFHacks

+- Recent Topics

Ability to exclude categories from ezPortal SMF Gallery random image ezblock by Alistair
January 22, 2025, 08:20:13 am

How to move SMF to new server by SMFHacks
January 21, 2025, 08:45:53 pm

Figuring out settings by SMFHacks
January 12, 2025, 04:56:14 pm

Filesizes incorrect by SMFHacks
January 12, 2025, 02:02:47 pm

December 2024 Sale! by SMFHacks
December 02, 2024, 10:30:38 pm

Denying members some admin settings by rickk
November 17, 2024, 12:02:55 pm

Weird setup by SMFHacks
November 07, 2024, 06:37:41 am

Restoring a deleted photo by Monocero
November 01, 2024, 04:23:56 am

Gallery Pro reinstalation by Lirorobert
October 14, 2024, 01:43:43 am

Move picture from main gallery to user gallery by SMFHacks
October 11, 2024, 09:11:00 pm

Powered by EzPortal