• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Ads on page

Started by mihai,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mihaiTopic starter

Hi! I want to add ads on the bottom of each page:).What file should i edit?



Notice that i want for the ads to be in the page-content so i can have the article/page and after each article/page to be displayed the ads
  •  

Marius P.

com/
com_post.php for article
com_page.php for page :)
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!
  •  

mihaiTopic starter

  •  

mihaiTopic starter

Where should i put the ads?I have a blank page with this:

[code<?php $pid = token_id();

$_post = $db->get_row("select * from ".DB_PREFIX."posts where pid = '".$pid."'");

if($_post) {

// SEO Filters
function modify_title( $text ) {
global $_post;
 return get_option('seo-post-pre','')._cut(strip_tags(stripslashes($_post->title)), 260).get_option('seo-post-post','');
}
function modify_desc( $text ) {
global $_post;
    return _cut(strip_tags(stripslashes($_post->content)), 160);
}
function modify_content( $text ) {
global $_post;
$txt = '<h3 class="loop-heading"><span>'._html($_post->title).'</span></h3>';
if($_post->pic) {$txt .= '<div class="row-fluid"><img src="'.thumb_fix($_post->pic).'" /></div>';}
$txt .= '<div class="page-content">';
$txt .= _html($_post->content);
$txt .= '</div>';
return $txt;
}
add_filter( 'phpvibe_title', 'modify_title' );
add_filter( 'the_defaults', 'modify_content' );
add_filter( 'phpvibe_desc', 'modify_desc' );
//Time for design
 the_header();
include_once(TPL.'/default.php');
the_footer();
} else {
//Oups, not found
layout('404');
}
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Adds b -->
<ins class="adsbygoogle"
     style="display:inline-block;width:300px;height:250px"
     data-ad-client="ca-pub-8306066289539085"
     data-ad-slot="2395435651"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
?>]
  •  

Marius P.

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!
  •  

mihaiTopic starter

  •  

Similar topics (7)