Welcome to the PHPVibe Boards Here you can discuss with other clients and interested. For direct contact with our representatives please use our Messenger.
Follow us on Facebook for the latest news, updates and direct communication.

Author Topic: hi does anybody know how to add adsense on articales and pages  (Read 1441 times)

0 Members and 1 Guest are viewing this topic.

giovanni

  • Client
  • Advanced level
  • Posts: 151
  • Country: us
  • Rate: +0/-0
  • PHPVibe User
    • View Profile
hi does anybody know how to add ad sense on articles and pages, what is the sense of a blog with out java script

yafe3

  • Client
  • Advanced level
  • Posts: 292
  • Country: us
  • Rate: +4/-3
  • PHPVibe User
    • View Profile
    • allmofid
The only thing  i can think  about  is you past  the adsense  code manually  on the page

giovanni

  • Client
  • Advanced level
  • Posts: 151
  • Country: us
  • Rate: +0/-0
  • PHPVibe User
    • View Profile
I did and it gets caught up in <p>&nbsp;</p> in source code

giovanni

  • Client
  • Advanced level
  • Posts: 151
  • Country: us
  • Rate: +0/-0
  • PHPVibe User
    • View Profile
its Frustrating because I want to monetize my articles and pages, I can paste paypal botton, social likes, but not ad sense, 

yafe3

  • Client
  • Advanced level
  • Posts: 292
  • Country: us
  • Rate: +4/-3
  • PHPVibe User
    • View Profile
    • allmofid
Yes i know i want  to monetize  some places  but i cant do anything ,we get to wait for Mario to show up  again  i think  he is working  hard to fix some issues, like deleting  a video it doesn't  get delet from the server  this is a very important  thing to fix ,its been 2 weeks now he didn't  show up, i guess  he will  show  up  soon ,im having  some patients, because  he is the only one can make phpvibe  better ,and we want him to do that so ... i hope he will help you when he get back

@Mario

  • from Media Vibe
  • Expert level
  • Posts: 5757
  • Country: ro
  • Rate: +951/-45
  • Here to help
    • View Profile
    • Video sharing CMS
You can just create the spot, get the php function generated for that code, and place it in the template file (or com/ file)
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog and tutorials forums.

Please use the search before opening a new topic!

giovanni

  • Client
  • Advanced level
  • Posts: 151
  • Country: us
  • Rate: +0/-0
  • PHPVibe User
    • View Profile
How do I create a spot in articles and pages Mario this will help everyone who wants to monetize their pages and articles to earn revenue. I get 3000  hits per page or article within 3 hours so I need it desperately

@Mario

  • from Media Vibe
  • Expert level
  • Posts: 5757
  • Country: ro
  • Rate: +951/-45
  • Here to help
    • View Profile
    • Video sharing CMS
You can find post.php and page.php in the tpl/main/

and they output content like

Code: [Select]
echo $txt;

changed like
Code: [Select]
echo _ad('0','before-blog-post');
echo $txt;



or directly into

Code: [Select]
$txt .= _ad('0','before-blog-post');
$txt .= _html($_page->content);

 




This is a very simple thing. You can also pre/post wrap it with divs/paragraphs, etc.
Don't forget to actually place the ad spots in a custom place and choose his code for the template file (attached).
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog and tutorials forums.

Please use the search before opening a new topic!

giovanni

  • Client
  • Advanced level
  • Posts: 151
  • Country: us
  • Rate: +0/-0
  • PHPVibe User
    • View Profile
thanks Mario will do it problem solved

spirog

  • Client
  • Advanced level
  • Posts: 246
  • Country: us
  • Rate: +0/-0
  • PHPVibe is Awesome
    • View Profile
You can find post.php and page.php in the tpl/main/

and they output content like

Code: [Select]
echo $txt;

changed like
Code: [Select]
echo _ad('0','before-blog-post');
echo $txt;



or directly into

Code: [Select]
$txt .= _ad('0','before-blog-post');
$txt .= _html($_page->content);

 


This is a very simple thing. You can also pre/post wrap it with divs/paragraphs, etc.
Don't forget to actually place the ad spots in a custom place and choose his code for the template file (attached).

Can you create this as a patch for vibe5 so we not have to edit all patches everytime you update vibe 5 please please

thanks @Mario
In order to get what we've never had,
we must do what we've never done.

@Mario

  • from Media Vibe
  • Expert level
  • Posts: 5757
  • Country: ro
  • Rate: +951/-45
  • Here to help
    • View Profile
    • Video sharing CMS
Will add it.
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog and tutorials forums.

Please use the search before opening a new topic!

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
538 Views
Last post 3 years ago
by @Mario
3 Replies
446 Views
Last post 3 years ago
by Alexander
1 Replies
980 Views
Last post 3 years ago
by Alexander
5 Replies
437 Views
Last post 2 years ago
by Ariana
4 Replies
412 Views
Last post 2 years ago
by ASDF
1 Replies
432 Views
Last post 2 years ago
by @Mario
12 Replies
970 Views
Last post 2 years ago
by demonguru18
3 Replies
474 Views
Last post 2 years ago
by @Mario
4 Replies
571 Views
Last post 2 years ago
by ASDF
2 Replies
435 Views
Last post a year ago
by Why So Serious
17 Replies
1535 Views
Last post 2 years ago
by Alexander
4 Replies
775 Views
Last post a year ago
by Sauca Adrian
3 Replies
460 Views
Last post 2 years ago
by Alexander
3 Replies
469 Views
Last post a year ago
by Alexander
1 Replies
1689 Views
Last post a year ago
by Alexander

Welcome to the PHPVibe (premium video CMS) community!