Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4206
Latest: jagwire
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 42721
Total Topics: 7443
Most Online Today: 130
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 54
Total: 54

Author Topic: No ads on left or right  (Read 907 times)

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16205
    • View Profile
Re: No ads on left or right
« Reply #15 on: November 07, 2021, 07:01:11 pm »
Code looks fine in index.template.php


Make sure your adseller pro url and directory are set correctly. the ending / matters and needs to be there. If on https your adseller pro url needs to be https as well.


Can you try a non banner ad?
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 coyote

  • Member
  • *
  • Posts: 46
    • View Profile
Re: No ads on left or right
« Reply #16 on: November 08, 2021, 10:27:55 am »
I have the directory(s) correct and I have https:// correct.

My test site works after I moved the upload folder into Sources directory.

I copied the entire fresh install site files over this morning and my main site still doesn't work right. The only file I didn't move over was settings.php

So I can't help but think this is somehow an issue with the site database.

If I uninstall Ad Seller Pro, the drop the db tables for it and reinstall, do you see any issues?

Thanks for all your help

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16205
    • View Profile
Re: No ads on left or right
« Reply #17 on: November 08, 2021, 11:52:26 am »
I don't see any issues. I would backup the tables first.
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 coyote

  • Member
  • *
  • Posts: 46
    • View Profile
Re: No ads on left or right
« Reply #18 on: November 08, 2021, 12:13:28 pm »
So I dropped all the tables and reinstalled the mod. Still nothing on the right side works. I'm at a loss what to try now. Before, when I had the ads on the right, you sent me a line of code to change to get multiple ads to show down the side. If I leave the ads at the top of the message list, can you tell me how to get it to display more than one ad at a time?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16205
    • View Profile
Re: No ads on left or right
« Reply #19 on: November 08, 2021, 12:29:25 pm »
To get stacked ads back change the line in index.template.php This is for the right side
Code: [Select]
$adSellerAdData =  ShowAdLocation(10);
To
Code: [Select]
$adSellerAdData =  ShowAdLocation(10,0,false,4,true);
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 coyote

  • Member
  • *
  • Posts: 46
    • View Profile
Re: No ads on left or right
« Reply #20 on: November 08, 2021, 12:38:08 pm »
That's for the right side correct? I have that but it's no good since I can't get the right side to work.

I wanted to stack the adds in a line, horizontally, across the top of the message index

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16205
    • View Profile
Re: No ads on left or right
« Reply #21 on: November 08, 2021, 12:41:55 pm »
Are you using the message index ad location? The top one?
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 coyote

  • Member
  • *
  • Posts: 46
    • View Profile
Re: No ads on left or right
« Reply #22 on: November 08, 2021, 12:44:28 pm »
I'm using location 8, Top Message Index

Right now it shows one ad that cycles. But I'd like to show 4 or 5 listed side by side across

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16205
    • View Profile
Re: No ads on left or right
« Reply #23 on: November 08, 2021, 12:48:19 pm »
This does four across.
Open MessageIndex.template.php

Change
Code: [Select]
$adSellerAdData =  ShowAdLocation(8);
To
Code: [Select]
$adSellerAdData =  ShowAdLocation(8,0,false,4);
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 coyote

  • Member
  • *
  • Posts: 46
    • View Profile
Re: No ads on left or right
« Reply #24 on: November 08, 2021, 12:53:49 pm »
It's stacking them vertically

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16205
    • View Profile
Re: No ads on left or right
« Reply #25 on: November 08, 2021, 01:15:12 pm »
Hmm try this
Find
Code: [Select]
$adSellerAdData =  ShowAdLocation(8);
if ($adSellerAdData != false)
{
 echo '
 <tr class="windowbg2">
 <td colspan="' , !empty($context['can_quick_mod']) ? '6' : '5' , '">';
 
 echo $adSellerAdData;
 
 echo '</td></tr>';
}


Change To
Code: [Select]
$adSellerAdData =  ShowAdLocation(8);
if ($adSellerAdData != false)
{
echo '
<tr class="windowbg2">
<td colspan="' , !empty($context['can_quick_mod']) ? '6' : '5' , '"><table><tr>';

echo '<td>' . $adSellerAdData . '</td>';
$adSellerAdData =  ShowAdLocation(8);
echo '<td>' . $adSellerAdData . '</td>';
$adSellerAdData =  ShowAdLocation(8);
echo '<td>' . $adSellerAdData . '</td>';
$adSellerAdData =  ShowAdLocation(8);
echo '<td>' . $adSellerAdData . '</td>';


echo '</tr></table></td></tr>';
}

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 coyote

  • Member
  • *
  • Posts: 46
    • View Profile
Re: No ads on left or right
« Reply #26 on: November 08, 2021, 01:39:59 pm »
I can't find that in my file. See attached

Offline coyote

  • Member
  • *
  • Posts: 46
    • View Profile
Re: No ads on left or right
« Reply #27 on: November 08, 2021, 01:47:45 pm »
Is     Ad Seller Pro    3.0.4  the most current version?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16205
    • View Profile
Re: No ads on left or right
« Reply #28 on: November 08, 2021, 01:48:57 pm »
yes adseller pro 3.0.4 is latest.

Attached updated.
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 coyote

  • Member
  • *
  • Posts: 46
    • View Profile
Re: No ads on left or right
« Reply #29 on: November 08, 2021, 02:08:01 pm »
It works but I'm getting the same ad more than once, sometimes 3 times. I have 6 active right now so I'm not sure why there is more than one of the same with only 4 showing

 

Related Topics

  Subject / Started by Replies Last post
Time left

Started by rgsknr Bugs

4 Replies
5784 Views
Last post June 25, 2008, 07:54:57 pm
by SMFHacks
0 Replies
2844 Views
Last post July 06, 2008, 01:49:41 am
by vkot
0 Replies
2463 Views
Last post December 05, 2008, 10:45:45 am
by connor
1 Replies
2845 Views
Last post June 13, 2013, 11:00:52 pm
by SMFHacks
1 Replies
1998 Views
Last post February 24, 2015, 08:08:36 pm
by SMFHacks

+- Recent Topics

Feature to upload a photo straight when composing a message by SMFHacks
February 04, 2023, 08:13:46 am

Pretty URL's Pro rewriting URLs by [chrisB]
February 01, 2023, 05:18:47 pm

Question before purchase by SMFHacks
February 01, 2023, 03:53:33 pm

Unlimited ending time by Saftek
January 29, 2023, 10:06:26 pm

Converting from Aeva Media by ivanr
January 28, 2023, 10:09:42 am

[Mod] Post Scheduler by bayonetbrant
January 23, 2023, 02:24:09 pm

"Notify all store admins of item purchase" Not Working in SMF 2.1.2 or 2.1.3 by Michael Vail
January 22, 2023, 10:50:23 pm

[Request] Future consideration by [chrisB]
January 18, 2023, 08:42:53 am

Pretty Urls extras by SMFHacks
January 16, 2023, 04:00:57 pm

I don't think its installed correctly by SMFHacks
January 10, 2023, 05:56:21 pm

Powered by EzPortal