Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4261
Latest: live627
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43353
Total Topics: 7534
Most Online Today: 146
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 134
Total: 134

Author Topic: How to put Ad Seller Pro in SSL mode  (Read 13028 times)

0 Members and 1 Guest are viewing this topic.

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
How to put Ad Seller Pro in SSL mode
« on: January 26, 2013, 04:12:05 am »
I've got an ad running on the front page of my Joomla site using SSI.php

All is well until the user switches to https to fill in a secure form. Then the secure icon shows as broken and the Javascript console reports "The page at https://www.amoc.org displayed insecure content from http://www.amoc.org/forum/index.php?action=adpro;sa=v&id=2&l=1000&m=0&t=1359194613.".

How can I make Adseller Pro switch to https or run Adseller Pro in https all the time?
« Last Edit: January 26, 2013, 09:19:04 am by amwebby »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16481
    • View Profile
Re: How to put Ad Seller Pro in SSL mode
« Reply #1 on: January 26, 2013, 08:16:22 am »
I don't have anything built in to change the urls to https the system uses the default url that the forum uses for all the content.
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 amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: How to put Ad Seller Pro in SSL mode
« Reply #2 on: January 26, 2013, 08:19:15 am »
Hmm, I'm sure I have the forum set to use https. I'll have to check.

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: How to put Ad Seller Pro in SSL mode
« Reply #3 on: January 26, 2013, 09:18:29 am »
Curiouser and couriouser... The forum wasn't set to use https (I'm sure it was..).

However, when I did set it to https everything works fine, until the Joomla site that wraps the forum goes into https. Then the ads don't appear, only the "Advertise Here" link below them.

Can't work that one out, unless the variable I've added to Google Adsense code to switch to https if the site url is secure is somehow getting confused by two secure urls?
« Last Edit: January 26, 2013, 09:21:49 am by amwebby »

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: How to put Ad Seller Pro in SSL mode
« Reply #4 on: February 01, 2013, 09:32:20 am »
My workaround to this is similar to the one I use for Adsense where I've used javascript to not show the ad if the site is in https mode.

I applied the same thinking to php and this is what I came up with:
Code: [Select]
<?php
if  ($_SERVER["SERVER_PORT"] == 443
{ echo 
'';} 
else 
{
// Begin Ad Seller Pro Location - Web site bottom
global $sourcedir;
include_once (
$sourcedir '/adseller.php');
$adSellerAdData =  ShowAdLocation(1000);
// Check if any ads where found
if ($adSellerAdData != false)
{
// Display the advertising code
echo $adSellerAdData;
}
// End Ad Seller Pro Location - Web site bottom
}
?>


Now the ad shows in regular mode and when the site switches to secure mode for transactions the ads disappear and hence the insecure content warnings.

I had to adopt this approach as putting my forum in secure mode all the time meant that Chrome simply blocked Adsense content as insecure and other browsers showed an insecure content warning all the time.
« Last Edit: February 01, 2013, 09:36:17 am by amwebby »

 

Related Topics

  Subject / Started by Replies Last post
6 Replies
8366 Views
Last post January 22, 2010, 04:26:17 pm
by SMFHacks
Ad Seller Pro

Started by bulldog71169 « 1 2 » Support

16 Replies
9500 Views
Last post December 30, 2010, 05:18:11 pm
by bulldog71169
1 Replies
12815 Views
Last post October 14, 2014, 09:35:43 am
by Labradoodle-360
7 Replies
14165 Views
Last post March 05, 2020, 11:19:05 am
by Plus
4 Replies
26069 Views
Last post September 15, 2023, 08:42:24 am
by Ghost

+- Recent Topics

Recent Items On Main Index by SMFHacks
July 22, 2024, 07:53:34 pm

SMF Gallery Pro 10.0 - Released! by SMFHacks
July 21, 2024, 11:18:35 am

Opportunity to use more hooks by SMFHacks
July 21, 2024, 11:08:45 am

Installation error: code not found by SMFHacks
July 20, 2024, 10:30:33 am

Installation warning: file not found by SMFHacks
July 20, 2024, 10:30:19 am

Setting a photo as invisible by SMFHacks
July 16, 2024, 11:05:06 pm

2.1.4 - Using drag and drop. by SMFHacks
July 16, 2024, 10:35:13 pm

Rate own images by SMFHacks
July 16, 2024, 10:25:55 pm

Site upgrade to 2.1 by SMFHacks
July 12, 2024, 07:47:03 am

Issues with Pretty URLs 4.1 by Randem
June 27, 2024, 07:32:22 pm

Powered by EzPortal