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

Author Topic: Ads below posts  (Read 3953 times)

0 Members and 1 Guest are viewing this topic.

Offline SlyBaldGuys

  • Member
  • *
  • Posts: 8
    • View Profile
Ads below posts
« on: October 31, 2014, 12:54:37 am »
One of the things I loved about Ad Management Mod is that I could easily put different ads below different posts.  For example I had ads below posts 1,6,9 and 12.  How can I replicate that with Ad Seller Pro?  Each ad will have it's own code as I used each post position to show different styles of ads.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Ads below posts
« Reply #1 on: October 31, 2014, 08:26:00 am »
You would need to create a new ad location 6,9,12 then place the code in display.template.php and check the counter if after 6 position do the custom ad location and repeat for each post position.
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 ThiloS

  • Member
  • *
  • Posts: 3
    • View Profile
Re: Ads below posts
« Reply #2 on: November 10, 2014, 04:03:24 am »
Hi there,

i'm at the same point... but having no clue, where to put the new code inside the "Display.template.php"... ?
And how am i supposed to do a check on the counter ? :-)

Do i have to write my own php "if blablabla" request?
How should that look like ? (Since i'm not really into PHP)


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Ads below posts
« Reply #3 on: November 10, 2014, 09:10:07 am »
What exactly are you trying to do? You can attach your Display.template.php and we can try to add it 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 SlyBaldGuys

  • Member
  • *
  • Posts: 8
    • View Profile
Re: Ads below posts
« Reply #4 on: November 10, 2014, 12:30:40 pm »
Like ThiloS, I don't exactly know where to put the code.  Can you provide an example of where the code should go?  I'm pretty sure if I can see an example I can replicate it.

I manage each ad within a post differently. For example, the code for post 1 is different than post 6, which is different than post 9, etc.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Ads below posts
« Reply #5 on: November 10, 2014, 12:36:59 pm »
It depends on each theme if isn't the default and what mods are installed.
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 SlyBaldGuys

  • Member
  • *
  • Posts: 8
    • View Profile
Re: Ads below posts
« Reply #6 on: November 10, 2014, 02:14:42 pm »
I've attached my display.template.php file and a file that has the code for each placement.  Can you add them for me?

I appreciate the help!!

Offline ThiloS

  • Member
  • *
  • Posts: 3
    • View Profile
Re: Ads below posts
« Reply #7 on: November 11, 2014, 03:08:18 am »
Well - i try to implement an ad between the 2. and the 3. Posting.

(or alternatively an ad inside the third posting.)

the Display.template.php is attached...

Thanks in advance!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Ads below posts
« Reply #8 on: November 11, 2014, 12:26:09 pm »
I've attached my display.template.php file and a file that has the code for each placement.  Can you add them for me?

I appreciate the help!!
Updated page
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 SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Ads below posts
« Reply #9 on: November 11, 2014, 12:27:17 pm »
Well - i try to implement an ad between the 2. and the 3. Posting.

(or alternatively an ad inside the third posting.)

the Display.template.php is attached...

Thanks in advance!
Need for you to generate a new ad location in your ad locations area and get me that 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 SlyBaldGuys

  • Member
  • *
  • Posts: 8
    • View Profile
Re: Ads below posts
« Reply #10 on: November 11, 2014, 05:58:42 pm »
I've attached my display.template.php file and a file that has the code for each placement.  Can you add them for me?

I appreciate the help!!
Updated page

Thank you!  But I screwed up and gave you the wrong template to update.  Can you please update this one?


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Ads below posts
« Reply #11 on: November 11, 2014, 11:09:55 pm »
Updated file attached
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 ThiloS

  • Member
  • *
  • Posts: 3
    • View Profile
Re: Ads below posts
« Reply #12 on: November 12, 2014, 02:42:40 am »
Hi there,
ok - here comes the code:

Code for INSIDE the third posting:
Code: [Select]
// Begin Ad Seller Pro Location - Im dritten Posting

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 - Im dritten Posting

Code for BETWEEN second and third posting:
Code: [Select]
// Begin Ad Seller Pro Location - Zwischen 2. und 3. Posting

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

$adSellerAdData =  ShowAdLocation(1001);

// Check if any ads where found
if ($adSellerAdData != false)
{
// Dispaly the advertising code
echo $adSellerAdData;
}

// End Ad Seller Pro Location - Zwischen 2. und 3. Posting

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Ads below posts
« Reply #13 on: November 12, 2014, 12:28:53 pm »
Updated file attached
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/

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
4022 Views
Last post February 17, 2007, 06:20:42 pm
by xchuck
2 Replies
5145 Views
Last post December 27, 2007, 10:17:32 pm
by SMFHacks
0 Replies
3389 Views
Last post May 22, 2009, 03:44:04 pm
by Paddleducks Forum - Damien
2 Replies
3937 Views
Last post October 09, 2016, 01:04:58 pm
by SMFHacks
2 Replies
2513 Views
Last post September 05, 2017, 12:48:21 am
by shuban

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