[ Video Sharing CMS v4 ] Close ads onclick

Started by AlexH,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AlexHTopic starter

At this time the advertisement displayed on the player does not close automatically click.
Is not something badly, because there are close button. But I want to close automatically when the user clicks on the ad.
Is there a solution?

thk you

PHPVibe A.

in tpl/main/js/phpvibe_app.js

under

//Kill ad
   $(".close-ad").click(function(){
 	$(this).closest(".adx").hide();
  });


try this:

   $(".adx").click(function(){
 	$(this).hide();
  });



AlexHTopic starter

One more question.
Where do I edit to display an advertisement only pictures?
I have a code that I want to add to display advertisements on the picture, just like the player. But I do not know where to edit. Thank you.

PHPVibe A.

Will look for you tomorrow, by default the floating ad is just for videos (does not have an placing).

AlexHTopic starter


AlexHTopic starter

Quote from: Alexander on
Will look for you tomorrow, by default the floating ad is just for videos (does not have an placing).


Hi,
When you have time can you answer my question. Thanks

Marius P.

Hi, tpl/main/video.php





<?php if ($video->media ==  3) { ?>
<?php echo $embedvideo; ?>
<?php } ?>



to
<?php if ($video->media ==  3) { ?>
<div class="block">
<-- place for ad ->
<?php echo $embedvideo; ?>
<-- place for ad ->
<>
<?php } ?>



and replace
<-- place for ad ->
with your actual advertising code.


Make sure you use a close div instead of <> this forum strips it out.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

AlexHTopic starter

Thank you. Now I will test.
I just sent you an e-mail. Maybe you have time to talk.

Similar topics (7)