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

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

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • 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: 16436
    • 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: 16436
    • 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: 16436
    • 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: 16436
    • 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: 16436
    • 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: 16436
    • 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
6713 Views
Last post June 25, 2008, 07:54:57 pm
by SMFHacks
0 Replies
3630 Views
Last post July 06, 2008, 01:49:41 am
by vkot
0 Replies
3002 Views
Last post December 05, 2008, 10:45:45 am
by connor
1 Replies
3664 Views
Last post June 13, 2013, 11:00:52 pm
by SMFHacks
1 Replies
2651 Views
Last post February 24, 2015, 08:08:36 pm
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