• Welcome to WooUSEFUL by PHPVIBE . Please log in.

[ Video Sharing CMS v4 ] Advertisement Request

Started by LookStock,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

LookStockTopic starter

Hi,

where can i add Adsense Codes.

can you tell me which files to edit manually ?

See the Photos.
  •  

Marius

This are the files to edit:

1. tpl/main/layouts/related.php
2. tpl/main/video.php
3. tpl/main/sidebar.php

If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

LookStockTopic starter

  •  

Marius

You need to add it before any code in the related.php, you've added it in the loop.
Put it just on top.
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

LookStockTopic starter

  •  

Marius

i see, remove it from there, and add it to video.php:


<div class="related video-related">
<p>ADD CODE HERE</p>
<ul>
<?php
layout('layouts/related');
?>
         
</ul>



You may want to wrapp it in a div, or a paragraph.
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

LookStockTopic starter

Done , but it's still too small , you can check it now
  •  

Marius


You need a bit more than just paste the code.

<div style="width:100%; display:block; padding:5px"><a title="ADS" href="#" style="display:block;"><img border="0" src="http://tube.pooze.me/uploads/banner300x250.gif" width="300" height="250">[/url]
<br style="clear:both;" />
</ div>



The forum stripps our the closing div, so i've added an extra space, remove it.
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

LookStockTopic starter

The space is great now , but the problem in the size , it's still take the same size of related thumb video size, not the normal size.

  •  

Marius

replace
width="300" height="250"



with


style="width:300px;height:250px;"
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

LookStockTopic starter

thank you very much , it's working now

i want ask about the last thing please
how can i let the ad in the sane line of video player i want to make it up a little bit .
  •  

Marius

If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

xda

  •  

Marius

If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

xda

  •  

Marius

Me neither at this point, but will get to that soon. Been working with mediaelement.
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

Similar topics (7)