Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12149
Latest: MarcoLehrer
New This Month: 19
New This Week: 0
New Today: 0
Stats
Total Posts: 38969
Total Topics: 6858
Most Online Today: 49
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 45
Total: 45

Author Topic: placing ads in an include  (Read 750 times)

0 Members and 1 Guest are viewing this topic.

Offline drewactual

  • Newbie
  • *
  • Posts: 24
    • View Profile
placing ads in an include
« on: October 02, 2017, 05:23:00 pm »
lacking the inherit intelligence to search, I thought to ask in an original thread. 

I own a pro copy of ad seller, copyright removed.  I also run a heavily trafficked site with a substantially customized theme. 

down the right side i run ad's, and to my own store.  I use a free standing php file and use and 'include' to render it, called from index.template...

my question is fairly simple-

can i post script in the include file to manage the ads?  if so, will the call to SSI in the index.template negate the requirement to call it again?

explained differently- i want to use the ad seller pro script outside of the index.template file, and on a file that uses php include within the index.template to call it... will it work?

I'm heavily trafficked and i have neither a non-production site to work with, nor the luxury of breaking the site this time of year even for a few moments. 

thanks in advance! 

for a better idea, the site is cfb51.com 

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14511
    • View Profile
Re: placing ads in an include
« Reply #1 on: October 02, 2017, 05:36:47 pm »
Depending on your version of AdSeller Pro you may also have an iframe intergration option.

Under Admin -> AdSeller Pro -> Locations
Click on the "get code" link

On that page will first have the PHP code which you can use if you include SSI.php in your php script.
Or you can just copy the iframe html code and user it on any site.
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 drewactual

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: placing ads in an include
« Reply #2 on: October 02, 2017, 05:41:01 pm »
disregard...

i realized the only thing i would break is the ad code and not the page, so i did it...

it works just fine.

thanks all the same!

Offline drewactual

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: placing ads in an include
« Reply #3 on: October 02, 2017, 05:43:49 pm »
you posted while i was typing...

used a free standing php file where i hard coded the ads for the right side...
created a custom ad and pasted the code in that had coded and included php file at the bottom of it
added an ad, and approved it- boom...

now i can allow access for people to manage that area and not have to ftp or cpanel to change it myself... furthermore, i can use a random script to rotate the ads. 

me digs... many thanks!!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14511
    • View Profile
Re: placing ads in an include
« Reply #4 on: October 02, 2017, 06:42:46 pm »
Glad you have found a solution that works well!
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 drewactual

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: placing ads in an include
« Reply #5 on: October 03, 2017, 10:17:31 am »
using the custom ads stacked atop each other in the 'include' file works so long as i call it from inside SMF... I have SMF as a backbone of the site and two instances of WP operating on the site as well.  calling the file into wordpress breaks the SSL (removes the lock) due to a pixel sized image put into the script by AdSellerPro...

how do i fix this?

otherwise, this is a tremendously advantageous means to manage ad space. 

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14511
    • View Profile
Re: placing ads in an include
« Reply #6 on: October 03, 2017, 10:24:50 am »
You would have to make sure your SMF forum is on SSL then that will work on the wordpress.
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 drewactual

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: placing ads in an include
« Reply #7 on: October 03, 2017, 10:28:34 am »
it is- but i cheated for simplicity's sake (and because being linked from sites i have no control over) to use the permanent redirect in htaccess...

i'll study up on how to change the URL of the forum in settings w/o scattering it.  that ONE line is the only thing not HTTPS throughout the entire site.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14511
    • View Profile
Re: placing ads in an include
« Reply #8 on: October 03, 2017, 12:17:14 pm »
Check under Admin -> Ad Seller Pro settings and make sure all adseller pro urls start with https:// as well.
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
0 Replies
2213 Views
Last post July 06, 2007, 10:01:02 am
by Osmonicar
2 Replies
1857 Views
Last post May 06, 2012, 12:30:36 pm
by ApplianceJunk
22 Replies
5547 Views
Last post January 31, 2013, 12:19:24 pm
by amwebby
7 Replies
3354 Views
Last post October 12, 2014, 05:09:29 am
by DenDen60
2 Replies
1367 Views
Last post February 13, 2017, 02:04:07 pm
by DenDen60

+- Recent Topics

Paypal has stopped interacting with my site since 06/29/18 by diegolyanky
July 19, 2018, 08:52:08 am

Pretty Urls SEO Pro Released by SMFHacks
July 15, 2018, 04:14:19 pm

Display next image with scrolling down instead on clicking next page by SMFHacks
July 15, 2018, 02:34:53 pm

Store translated into spanish by SMFHacks
July 14, 2018, 09:41:52 pm

prettyurls - TroubleShooting.wiki by SMFHacks
July 13, 2018, 04:24:23 pm

prettyurls - DatabaseChanges.wiki by SMFHacks
July 13, 2018, 04:23:01 pm

prettyurls - Filters.wiki by SMFHacks
July 13, 2018, 04:22:02 pm

SQL Query Slow (Suggestions) by SMFHacks
July 09, 2018, 01:08:59 pm

How can I hide Board Categories From Showing on Homepage Just Like SMF hacks by mattizzy
June 28, 2018, 11:22:06 am

Pretty URL Topic Number by mattizzy
June 28, 2018, 11:04:20 am

Powered by EzPortal