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: 43295
Total Topics: 7523
Most Online Today: 77
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 67
Total: 67

Author Topic: After last post ad location?  (Read 3209 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: 16452
    • 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
23768 Views
Last post April 13, 2007, 07:56:47 am
by sduford
4 Replies
5009 Views
Last post June 18, 2010, 08:50:58 am
by jos
2 Replies
3424 Views
Last post September 02, 2011, 08:38:35 am
by SMFHacks
15 Replies
7601 Views
Last post April 30, 2012, 10:35:20 pm
by dougvarrieur
13 Replies
10006 Views
Last post July 26, 2015, 11:34:29 am
by SMFHacks

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

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

Powered by EzPortal