Results 1 to 5 of 5

Thread: Adsense Video Units

  1. #1
    Join Date
    Mar 2008
    Location
    State of Confusion
    Posts
    19

    Default Adsense Video Units

    How can I add my Adsense Video Units, since they are a code and not an upload I'm confused about this.
    I started to make an additional page and try to add them that they but that didn't make much sense,so I thought I'd better check here first.
    Saw a couple older posts about it ,but no replies. I may have missed something.
    Any help would be appreciated
    Thanks in Advance

  2. #2
    Join Date
    Mar 2008
    Location
    State of Confusion
    Posts
    19

    Default Re: Adsense Video Units

    Nobody?....There has to be a way to do this on how to add my Adsense Video Units
    Surely you code writers have come across this before.
    Thanks in Advance

  3. #3
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: Adsense Video Units

    I'll check into it and see what I come up with.
    If it's not fun, stop doing it!

  4. #4
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: Adsense Video Units

    I had no problem inserting the youtube code. What, exactly, was/is the errors you're getting?

    If you want to create a separate page (which is what I did) search the forums for "php include" and you'll find all kinds of goodies posted about creating pages.

    This code will require people to be logged in:

    Code:
    <?php
    session_start();
    require("include/config.php");
    require("include/function.php");
    STemplate::display('header.tpl');
    if (!isset($_SESSION['USERNAME'])) {
       Header("Location: {$config['baseurl']}/login.php");
       print "
    <span style=\"text-align:center\"><h1>PUT YOUR PAGE TITLE HERE</h1></span>
    ";
       print "<div style=\"border:1px solid #FF0000;background-color:#FF9999\"><span style=\"text-align:center\"><h3>You must be logged in to use this section of our site. <a href=\"../login.php\">Please Log in here</a>.</h3></div>
    
    ";
    STemplate::display('footer.tpl');
            exit(0);
    } 
    ?>
    
    INSERT YOUR YOUTUBE OR OTHER HTML CODE HERE TO YOUR HEART'S CONTENT. KNOCK YOURSELF OUT!!!
    
    <? STemplate::display('footer.tpl');?>
    save this as whatevernameyouwant.php and put it in the root directory and link to it from your header.tpl

    If you don't want to require login to view the page then use this code at the top which is found here viewtopic.php?f=8&t=1155

    Code:
    <?php
    session_start();
    include("include/config.php");
    include("include/function.php");
    STemplate::display('header.tpl');
    include("pages/links.html");
    STemplate::display('footer.tpl');
    ?>
    Here's some additional references viewtopic.php?f=8&t=1155 Again, just search the forums for "include php" and "add pages" "insert java" and stuff like that. For scripts, sometimes you have to add {literal} javacode here{/literal} depending on where, in the templates, you're sticking in the code, and there is also the buyscripts.in wiki here http://docs.buyscripts.in/Main_Page
    If it's not fun, stop doing it!

  5. #5
    Join Date
    May 2007
    Posts
    212

    Default Re: Adsense Video Units

    This is good info to have...thanks guys!

Similar Threads

  1. niche video script adsense problem
    By raulmitva in forum Installation Support
    Replies: 2
    Last Post: 03-09-2008, 06:58 PM
  2. Adsense Ready??
    By zifonex in forum Sales Questions
    Replies: 4
    Last Post: 02-29-2008, 06:59 PM
  3. Video Units Feature for Google Adsense
    By hilariouslaugh.com in forum Feature Requests
    Replies: 1
    Last Post: 01-27-2008, 10:01 PM
  4. Adsense Optimization
    By pipermac in forum General Discussions
    Replies: 0
    Last Post: 10-11-2007, 06:35 PM
  5. google adsense
    By pataylo in forum General Discussions
    Replies: 10
    Last Post: 07-04-2007, 04:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •