Dealing with close button on revmob ads

Hi all,

I am using full screen revmob ads in my app. I am using director and ads are shown between pages. Now what I have to do is to hide or disable the close button for a while and then re-enable it. I have searched a lot on the internet but could not find a solution. I really need to do this. Please Help ! [import]uid: 126619 topic_id: 31667 reply_id: 331667[/import]

Is this the fullscreen ads with the cross in the top right hand corner? [import]uid: 62706 topic_id: 31667 reply_id: 126480[/import]

Yes! You get it right. I have a feeling that you can help :slight_smile: [import]uid: 126619 topic_id: 31667 reply_id: 126481[/import]

lol, Maybe.

I will take a look into the revmob code and see if I can work out how to hide it for a few seconds or did you want it hidden permanently? [import]uid: 62706 topic_id: 31667 reply_id: 126484[/import]

No I don’t want to hide it permanently. I want to hide it for some time, say 500 milliseconds and then want to re-enable it. But better solution for me is to show the button in grey and disabled. When timer is over I want to re-enable it. [import]uid: 126619 topic_id: 31667 reply_id: 126486[/import]

I’ve edited revmob.lua but not been able to test it but it should work.

It is hosted on github below.

https://gist.github.com/3839248 [import]uid: 62706 topic_id: 31667 reply_id: 126490[/import]

Hi
I have tried this but unfortunately it is not working. I get the message in the terminal
[RevMob] nil
and no ads are shown. Any help please… [import]uid: 126619 topic_id: 31667 reply_id: 126501[/import]

Is this the fullscreen ads with the cross in the top right hand corner? [import]uid: 62706 topic_id: 31667 reply_id: 126480[/import]

Yes! You get it right. I have a feeling that you can help :slight_smile: [import]uid: 126619 topic_id: 31667 reply_id: 126481[/import]

lol, Maybe.

I will take a look into the revmob code and see if I can work out how to hide it for a few seconds or did you want it hidden permanently? [import]uid: 62706 topic_id: 31667 reply_id: 126484[/import]

No I don’t want to hide it permanently. I want to hide it for some time, say 500 milliseconds and then want to re-enable it. But better solution for me is to show the button in grey and disabled. When timer is over I want to re-enable it. [import]uid: 126619 topic_id: 31667 reply_id: 126486[/import]

I’ve edited revmob.lua but not been able to test it but it should work.

It is hosted on github below.

https://gist.github.com/3839248 [import]uid: 62706 topic_id: 31667 reply_id: 126490[/import]

Hi
I have tried this but unfortunately it is not working. I get the message in the terminal
[RevMob] nil
and no ads are shown. Any help please… [import]uid: 126619 topic_id: 31667 reply_id: 126501[/import]

I was able to make it work. Thanks for the help:) [import]uid: 126619 topic_id: 31667 reply_id: 126901[/import]

Hi CraftyDeano !
I need to add a custom image to revmob full screen ads which when taped takes the user to a specified page using director. Can you help me on this? As you already helped me and it really worked. [import]uid: 126619 topic_id: 31667 reply_id: 126903[/import]

No problem buddy,

I have had a look, this should work:

https://gist.github.com/3860896

You will need to amend lines 463 to 465 to represent your image that you want displayed.

Also line 475 to display the scene you would like to change to. [import]uid: 62706 topic_id: 31667 reply_id: 126907[/import]

Hi,
Thanks for the help. I have used the code but unable to get what I want. I have tried to use different strategies but no success. Actually the image is shown after the ad is closed. Then if I click on the image i get the error like "attempt to index field ,screenGroup (a nill value) ". I think this is because ad is already closed. So is there a way I can get the custom image on the ad and when clicked takes me to the page. I will be extremely thankful if you can help. Its my job and client want me to do this.

Thanks [import]uid: 126619 topic_id: 31667 reply_id: 126994[/import]

Hmm, I am not sure why it is not working, as it enters the display group after everything else so it should appear on top (along with the close button)

Maybe try this on line 488

instead of the part that says:
[lua]Fullscreen.screenGroup:insert(customImage)[/lua]

Change it to:
[lua]Fullscreen.screenGroup:insert(Fullscreen.customImage)[/lua]

If this doesn’t work, maybe email the revmob guys and see if they can help? [import]uid: 62706 topic_id: 31667 reply_id: 126998[/import]

or on line 463, remove the ‘local’ before customImage [import]uid: 62706 topic_id: 31667 reply_id: 126999[/import]

I was able to make it work. Thanks for the help:) [import]uid: 126619 topic_id: 31667 reply_id: 126901[/import]