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

Author Topic: Question abt using one area for multiple ad's  (Read 12586 times)

0 Members and 1 Guest are viewing this topic.

Offline Adapa

  • Member
  • *
  • Posts: 34
    • View Profile
Question abt using one area for multiple ad's
« on: March 24, 2013, 06:58:15 am »
in the ad spot of 'right side of the forum' is it possible to have multiple sm ad's arranged vertically? similar to what you have arranged on the right side of this forum with 'recent posts', 'random pictures', & 'donate to smfhacks.com'.

thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Question abt using one area for multiple ad's
« Reply #1 on: March 24, 2013, 09:50:48 am »
Here is an example of changing the right column SMF 2.0.x

in index.template.php of your theme find
Code: [Select]
// Begin Ad Seller Pro Location - Right Side of the Forum
if (ShowAdLocation(9,0,true) || ShowAdLocation(10,0,true))
{
echo '</td>';
global $sourcedir;
include_once $sourcedir . "/adseller2.php";

$adSellerAdData =  ShowAdLocation(10);
if ($adSellerAdData != false)
{
echo '<td valign="top">';

echo $adSellerAdData;

echo '</td>';
}
echo '</tr></table>';
}
// End Ad Seller Pro Location - Right Side of the Forum
Change to

Code: [Select]
// Begin Ad Seller Pro Location - Right Side of the Forum
if (ShowAdLocation(9,0,true) || ShowAdLocation(10,0,true))
{
echo '</td>';
global $sourcedir;
include_once $sourcedir . "/adseller2.php";

$adSellerAdData =  ShowAdLocation(10,0,false,5,true);
if ($adSellerAdData != false)
{
echo '<td valign="top">';

echo $adSellerAdData;

echo '</td>';
}
echo '</tr></table>';
}
// End Ad Seller Pro Location - Right Side of the Forum

In the above code we just changed ShowAdLocation(10,0,false,5,true); which means to show five ads vertically.


The function we call is
Code: [Select]
function ShowAdLocation($LocationID, $boardID = 0, $checkReturn = false, $showAdsCount = 1, $verticalAd = false)
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 Adapa

  • Member
  • *
  • Posts: 34
    • View Profile
Re: Question abt using one area for multiple ad's
« Reply #2 on: March 24, 2013, 04:26:19 pm »
thank you
it'll be a few days before i can attempt to implement this.

Offline Adapa

  • Member
  • *
  • Posts: 34
    • View Profile
Re: Question abt using one area for multiple ad's
« Reply #3 on: April 30, 2013, 11:50:05 am »
*finally* got to making the change. Looks *great*

I'm a bit confused by this
Quote
The function we call is
Code: [Select]
function ShowAdLocation($LocationID, $boardID = 0, $checkReturn = false, $showAdsCount = 1, $verticalAd = false)
do I need to do anything with this?  (Yeah, I'm still learning<grin>)

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Question abt using one area for multiple ad's
« Reply #4 on: April 30, 2013, 11:53:46 am »
No you do not need to change that code it is good to go.
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 Adapa

  • Member
  • *
  • Posts: 34
    • View Profile
Re: Question abt using one area for multiple ad's
« Reply #5 on: October 23, 2013, 02:25:43 pm »
follow up to the previous question abt multible ads in one space


I'm trying to do multible count downs in the overall header, side by each.  I'd like to get at least 3 in that space.

I've got one countdown set up at the top under the search box, http://www.friendsofcci.com/forum/index.php

i'd love to fit two others in aligned 'center' and 'left'


I tried using the code change for the vertical ad but that didn't look so good  ;)


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Question abt using one area for multiple ad's
« Reply #6 on: October 27, 2013, 10:10:44 pm »
So you want multiple ads such as the following

Ad column 1   ad column 2
ad here         ad here 4
ad here 2      ad here 5
ad here 3      ad here 6
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 Adapa

  • Member
  • *
  • Posts: 34
    • View Profile
Re: Question abt using one area for multiple ad's
« Reply #7 on: October 29, 2013, 03:13:52 pm »
what i'd like is to be able to split the over all header space into 3 columns,

ad column 1                ad column 2                          ad column 3
Ad 1                               ad 2                                  ad 3


Is there a way to have more then 3 columns in the 'overall header' area? If so I'd like to fit in 4 columns.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Question abt using one area for multiple ad's
« Reply #8 on: October 29, 2013, 03:20:53 pm »
You would need to change this in index.template.php
ShowAdLocation(1);
To
ShowAdLocation(1,0,false,3);
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 Adapa

  • Member
  • *
  • Posts: 34
    • View Profile
Re: Question abt using one area for multiple ad's
« Reply #9 on: October 31, 2013, 01:10:19 pm »
i did as you suggested & got the attached

i created 3 ads for each count down & aligned them, left, ct, & right in the 'overall header' ad position.

^^^
Never mind i figured that out, turns out i needed to create one ad with all three of those snipits

see second attachment labeled 3
« Last Edit: October 31, 2013, 02:49:17 pm by Adapa »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Question abt using one area for multiple ad's
« Reply #10 on: November 01, 2013, 12:33:22 am »
Everything good now or need help?
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 Adapa

  • Member
  • *
  • Posts: 34
    • View Profile
Re: Question abt using one area for multiple ad's
« Reply #11 on: November 02, 2013, 09:43:47 am »
the adseller feature in the overall header area seems to be working but there is a large space below the overall header area...

I've tried two different styles of countdown thingys & shown what happens when the overall header area is disabled

see attached jpegs

this is the count down clock thingy i'm using, http://www.timeanddate.com/clocks/freecountdown.html

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Question abt using one area for multiple ad's
« Reply #12 on: November 02, 2013, 12:28:14 pm »
Attach your index.template.php
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 Adapa

  • Member
  • *
  • Posts: 34
    • View Profile
Re: Question abt using one area for multiple ad's
« Reply #13 on: November 02, 2013, 02:11:59 pm »
 :)

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Question abt using one area for multiple ad's
« Reply #14 on: November 02, 2013, 02:45:19 pm »
Updated moved one br tag
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
3 Replies
6484 Views
Last post July 26, 2007, 06:30:05 am
by SMFHacks
2 Replies
4488 Views
Last post June 21, 2009, 10:39:39 am
by Paddleducks Forum - Damien
7 Replies
5747 Views
Last post February 28, 2012, 02:01:25 pm
by SMFHacks
3 Replies
4662 Views
Last post October 22, 2012, 10:38:52 pm
by SMFHacks
3 Replies
4699 Views
Last post November 29, 2013, 10:00:55 am
by SMFHacks

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