Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2014-12-16 03:35:47

DuttyRock
Member
Registered: 2011-11-05
Posts: 740

Mobile home page

I have a floater ads from juicyads that i want to show on "home" page only. How can i make this happen?

Offline

#2 2014-12-16 09:41:34

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Mobile home page

In mobile/templates/your-template/header.tpl.php and the end of the file:

<?php if (isset($this->canonical) && $this->canonical == BASE_URL.'/recent/'): echo 'your-banner-here'; endif; ?>

Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2014-12-17 03:22:43

DuttyRock
Member
Registered: 2011-11-05
Posts: 740

Re: Mobile home page

Keep getting white screen. The floater code is in script format <script>

Offline

#4 2014-12-17 18:10:48

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Mobile home page

Enable debug in Admin and post the error here.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#5 2015-01-16 20:37:48

DuttyRock
Member
Registered: 2011-11-05
Posts: 740

Re: Mobile home page

Here is the debug error

Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /XXXXXXXXX/XXXXX/public_html/mobile/templates/default/header.tpl.php on line 137 

Offline

#6 2015-01-17 18:18:27

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Mobile home page

Hmmm..please paste line 137 of the header.tpl.php file here.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#7 2015-01-18 02:46:10

DuttyRock
Member
Registered: 2011-11-05
Posts: 740

Re: Mobile home page

<?php if (isset($this->canonical) && $this->canonical == BASE_URL.'/recent/'): echo '<script type="text/javascript">var reporoOptions = {activationCode: 'sf9f-adf9-sdf6-52b1', targetBanner: '_blank', adhesionForceAppear: false, adhesionCookieExpire: 0.125}; reporoZone=20582;</script>

Last edited by DuttyRock (2015-01-18 02:47:14)

Offline

#8 2015-01-19 06:40:16

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Mobile home page

The line is not complete. Also you are using ' and you are already using ' from echo. Replace all ' from your javascript code with "


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB