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 2013-09-02 14:27:41

fitboy
Member
Registered: 2013-01-14
Posts: 123

modifying links to work with mobile popup

Hi,

we would like to add mobile pop-ups in the template, the broker says we would need to change links and add a section (onclick="exoMobilePop();)

Could you tell me where in the mobile templates I can find the space to add this to trigger the pop-up when clicking on a video in the start page?

Thanks!!

Offline

#2 2013-09-03 06:40:19

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

Re: modifying links to work with mobile popup

You can use javascript to add popups on any link click.The code would be something like this:

$("a").click(function() {
popup_function_here();
});

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

Offline

#3 2014-01-21 06:27:26

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

Re: modifying links to work with mobile popup

Can you explain that a little more, im trying to get mobile pop-ups to work an the crap not working.

Offline

#4 2014-01-22 07:27:53

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

Re: modifying links to work with mobile popup

You add the below code in header.tpl.php:

<script type="text/javascript">
$(document).ready(function() {
$("a").click(function() {
you_need_popup_code_here();
});
});
</script>

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

Offline

#5 2014-01-24 16:19:33

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

Re: modifying links to work with mobile popup

I tried this but none worked.

<script type="text/javascript">
$(document).ready(function() {
$("a").click(function() {
<script src="http://mobile.plugrush.com/freeazztube.com/4f0e/4f0e.js" type="text/javascript"></script>t();
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$("a").click(function() {
http://mobile.plugrush.com/freeazztube.com/4f0e/direct();
});
});
</script>

Offline

#6 2014-01-25 01:21:17

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: modifying links to work with mobile popup

try plugrush popunder, no need to add this smile


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#7 2014-01-25 06:39:51

Nuevolab
Member
Registered: 2012-08-01
Posts: 189

Re: modifying links to work with mobile popup

DuttyRock wrote:

I tried this but none worked.

This is complete missunderstanding. Invalid javascript code.
You can't just copy&paste url or javacript src inside other javascript.
Try to learn how to popup window using javascript. There are thousands articles about it on internet.
Basic usage is

window.open( "http://www.google.com/" )

or with window size:

window.open('http://www.google.com/','name','height=200,width=150');

there can be many parameters for window.open function.

Also as this is popup, you may need to set cookie, not to open popup on every click.

Offline

#8 2014-01-26 17:53:19

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

Re: modifying links to work with mobile popup

How can i clear cookies for mobile each time a mobile visitor close the window/ or exit the mobile site?

Offline

Board footer

Powered by FluxBB