Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 213
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 260
Total: 261

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

0 Members and 1 Guest are viewing this topic.

Offline northview

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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: 16436
    • 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
5608 Views
Last post March 12, 2008, 08:12:41 pm
by filipina
2 Replies
7448 Views
Last post July 08, 2009, 11:21:05 pm
by armorbeast
1 Replies
3380 Views
Last post October 10, 2011, 11:29:00 am
by SMFHacks
1 Replies
3665 Views
Last post June 13, 2013, 11:00:52 pm
by SMFHacks
7 Replies
5940 Views
Last post January 26, 2014, 02:33:03 pm
by mrnuke7175

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal