![]() |
Show ads based on URL (HTTP vs HTTPS)
I would like to deliver less (or no) ads to people who use the SSL version of the site. How would I program that into my headers, so if a person requests/views the page with https://my.forum.com they don't see ads?
I know there's something with an IF statement, but I can't seem to get it right. Thanks! |
PHP Code:
|
Quote:
Quote:
PHP Code:
|
You cannot directly put that into a template - it is not a template conditional...
Code:
<if condition="empty($_SERVER['HTTPS']) === false"> |
Quote:
the basic structure I did was: <if statement> : codes for ads : <else /> rest of template (footer in this case) </if> (at end of footer template). |
Code:
<if condition="empty($_SERVER['HTTPS']) === true OR $_SERVER['HTTPS'] === 'off'"> |
Quote:
|
All times are GMT. The time now is 06:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|