Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12356
Latest: Hermankidd
New This Month: 7
New This Week: 0
New Today: 0
Stats
Total Posts: 39780
Total Topics: 7006
Most Online Today: 78
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 41
Total: 41

Author Topic: How to create Side by Side Banner in Board Index Top  (Read 5070 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: 14904
    • 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: 14904
    • 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: 14904
    • 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: 14904
    • 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: 14904
    • 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: 14904
    • 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: 14904
    • 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: 14904
    • 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
4472 Views
Last post March 12, 2008, 08:12:41 pm
by filipina
2 Replies
5653 Views
Last post July 08, 2009, 11:21:05 pm
by armorbeast
1 Replies
2071 Views
Last post October 10, 2011, 11:29:00 am
by SMFHacks
1 Replies
1975 Views
Last post June 13, 2013, 11:00:52 pm
by SMFHacks
7 Replies
3560 Views
Last post January 26, 2014, 02:33:03 pm
by mrnuke7175

+- Recent Topics

[Mod]Login Menu Button by SMFHacks
July 05, 2019, 03:26:24 pm

Update by SMFHacks
June 19, 2019, 10:58:25 am

About Comments Approval by ajac63
June 12, 2019, 07:48:52 pm

Pretty Urls extras by SMFHacks
June 06, 2019, 12:14:53 pm

About using chmod to secure files by ajac63
June 05, 2019, 04:02:28 am

Bulk upload image problem by SMFHacks
June 01, 2019, 07:24:00 pm

About Watermark Options by ajac63
May 30, 2019, 05:25:39 pm

Why PayPal only by ajac63
May 30, 2019, 04:20:47 pm

Seller ToU not showing by ajac63
May 29, 2019, 01:59:24 am

Not happy by ajac63
May 28, 2019, 06:37:58 pm

Powered by EzPortal