Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12399
Latest: tssycnlys01
New This Month: 5
New This Week: 0
New Today: 0
Stats
Total Posts: 39914
Total Topics: 7026
Most Online Today: 65
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 43
Total: 43

Author Topic: How to create Side by Side Banner in Board Index Top  (Read 5333 times)

0 Members and 1 Guest are viewing this topic.

Offline northview

  • Newbie
  • *
  • Posts: 15
    • View Profile
How to create Side by Side Banner in Board Index Top
« on: January 26, 2016, 09:40:53 am »
I would like to create a 'Side by Side' (2 ads) banner style in the 'Board Index Top', as per the attached image.

I previously found a post suggesting that for multiple 'Vertical' ads in the 'Right Side of Fourum' to locate the 'Index.Template.php' and amend line ShowAdLocation(10) to ShowAdLocation(10,0,false,20,true) but I don't know how or where to amend PHP code to create side by side (horizontal) banner ads in the 'Board Index Top'.

1.) Can someone please assist with some suggestions?

2.) Is there some place I can find (i.e. help manual) what numbers in ShowAdLocation() pertain to which locations in the forum, i.e. for the following parameters: ShowAdLocation(nLocation, nBoard, lCheckReturn, nAddCount, lVertical) is there a list somewhere that shows the various options for 'nLocation'?

3.) Finally, sometime in the future I may wish to have rotating banners, is this possible?  i.e. 2 side by side banners for Advertiser 1 and Advertiser 2 then the flip and Advertiser 1 becomes Advertiser 3 and Advertiser 2 becomes Advertiser 4.

Thanks in advance for your help.

P.S. Ad Pro is a fabulous product. Well done!


 
« Last Edit: January 26, 2016, 10:24:57 am by northview »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14965
    • View Profile
Re: How to create Side by Side Banner in Board Index Top
« Reply #1 on: January 26, 2016, 10:12:50 am »
1. Attach your boardindex.template.php from the themes/default folder here Make sure you upgrade your account on this site first at http://www.smfhacks.com/index.php?action=license

2. The location number is the Location ID of the ad location found in Ad Seller Pro admin -> Ad Locations

3. Yes you can. When you add another ad to the same ad location it will automatically rotate.

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 northview

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: How to create Side by Side Banner in Board Index Top
« Reply #2 on: January 26, 2016, 10:24:36 am »
Thanks for the very quick response.

The BoardIndex.Template.php is attached.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14965
    • View Profile
Re: How to create Side by Side Banner in Board Index Top
« Reply #3 on: January 26, 2016, 10:28:43 am »
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 northview

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: How to create Side by Side Banner in Board Index Top
« Reply #4 on: January 26, 2016, 10:45:33 am »
Thanks again for such quick response.

I installed the amended BoardIndex.Template.php and your amended code is: ShowAdLocation(11,0,false,2) but the problem still exists. I would like 'side by side' on the same row but here's what happens using various settings:

1.) Both ads left aligned (they appear vertical)
     Ad1
     Ad2

2.) If I specifically set Ad 2 for right alignment I get them offset but on different rows
     Ad1
               Ad2

3.) If I set both for centered, they show again as per # 1 above but in the center.

How do I arrange them to be 'horizontal' and on the same line (row)?



Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14965
    • View Profile
Re: How to create Side by Side Banner in Board Index Top
« Reply #5 on: January 26, 2016, 10:55:44 am »
Just want to double check you are using the boardindex top ad location? And not the overall header?
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 northview

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: How to create Side by Side Banner in Board Index Top
« Reply #6 on: January 26, 2016, 12:57:26 pm »
Correct

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14965
    • View Profile
Re: How to create Side by Side Banner in Board Index Top
« Reply #7 on: January 26, 2016, 01:42:28 pm »
Try this file removed old ad management 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 northview

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: How to create Side by Side Banner in Board Index Top
« Reply #8 on: January 26, 2016, 02:01:21 pm »
The 2nd revision of BoardIndex.Template.php you provided resulted in a loss of banner across the top, which was above the 2 banner ads. I reverted back to the 1st revision for now.

So, the result was no change to banner with either revision, they still won't align on the same row (line).

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14965
    • View Profile
Re: How to create Side by Side Banner in Board Index Top
« Reply #9 on: January 26, 2016, 02:07:31 pm »
Ok that means you were using the admanagement mod for the banner.
You must disable the admanagement mod/uninstall it first.

Then activate the adseller pro locations   quick start guide http://www.smfhacks.com/index.php/topic,4270.0.html
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 northview

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: How to create Side by Side Banner in Board Index Top
« Reply #10 on: January 26, 2016, 04:17:09 pm »
The Ad Management Mod has been removed.

I have not enrolled with PayPal because it is not yet required.

Same results when a refresh occurs, the Banner Ads still do not align on same row. Hopefully, the PayPal registration isn't a requirement.

Any other suggestions?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14965
    • View Profile
Re: How to create Side by Side Banner in Board Index Top
« Reply #11 on: January 26, 2016, 04:20:03 pm »
Can you send me a link to the page where this occurs.

Paypal is not required. only if you want users to buy adspace on their own.
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 northview

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: How to create Side by Side Banner in Board Index Top
« Reply #12 on: January 26, 2016, 06:37:16 pm »
One more try, attached is the screen image of the banners, not aligning, on the 'Board Index Top'.

Also, attached is a partial screen image of the PHP code change in BoardIndex.Template.php

Thoughts?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14965
    • View Profile
Re: How to create Side by Side Banner in Board Index Top
« Reply #13 on: January 26, 2016, 07:12:08 pm »
Are you using custom code?
Or the text ad or banner feature in the ad location?
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: 14965
    • View Profile
Re: How to create Side by Side Banner in Board Index Top
« Reply #14 on: January 26, 2016, 08:13:40 pm »
Also for the alignment have nothing selected for both ads if you are doing side by side.
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
6 Replies
4543 Views
Last post March 12, 2008, 08:12:41 pm
by filipina
2 Replies
5721 Views
Last post July 08, 2009, 11:21:05 pm
by armorbeast
1 Replies
2111 Views
Last post October 10, 2011, 11:29:00 am
by SMFHacks
1 Replies
2058 Views
Last post June 13, 2013, 11:00:52 pm
by SMFHacks
7 Replies
3661 Views
Last post January 26, 2014, 02:33:03 pm
by mrnuke7175

+- Recent Topics

PHP error by SMFHacks
Today at 03:55:24 pm

Message Editor Pro Issues by SMFHacks
November 06, 2019, 09:58:33 pm

most popular categories doesnt work by fussilet
November 02, 2019, 02:51:42 pm

Change colors of Halloween theme by SMFHacks
October 24, 2019, 11:44:59 am

prettyurls - TroubleShooting.wiki by Rock Lee
October 10, 2019, 11:37:09 am

Some issues with adding and editing a listing by ajac63
October 07, 2019, 04:16:40 am

Problem update 1.1.21 to 2.0.15 by Rock Lee
October 06, 2019, 06:09:16 pm

[Mod]SMF 2.0.x PHP 7.2 Support by sah62
October 04, 2019, 01:46:00 pm

Ideas by shuban
October 03, 2019, 10:19:06 pm

How to space icons and multiple reacts? by shadav
October 03, 2019, 04:20:07 pm

Powered by EzPortal