Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8097067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:38:34+00:00 2026-06-05T21:38:34+00:00

The CSS that I’m attempted to attach to ‘echo $tube->error;’ is not showing.. It

  • 0

The CSS that I’m attempted to attach to ‘echo $tube->error;’ is not showing.. It just shows as default black text as if it had no css… How would I fix this?

Thanks (:

Below is what I need to fix..

The html/php part:

<div id="error">
        <pre>
        <?php } else {

        echo $tube->error;

        }
    }
        ?>
    </pre>
</div>

The html/php part in context:

<?php

if(isset($_POST['url']))
{
  include('curl.php');
  include('youtube.php');

  $tube = new youtube();

  $links = $tube->get($_POST['url']);

  if($links) { ?>

  <div id="result"> 
  <b>Download Links  ( Same IP Downloading only )</b> :
        <?php
        $format = '<p><a href="%3$s">Download</a> video.%s - %s<br/>Right-click download link and choose etc...</p>';
        while($link = array_shift($links))
{
    echo vsprintf($format,$link);
}
        ?>
  </div>
  <div id="error">
        <pre>
        <?php } else {

        echo $tube->error;

        }
    }
        ?>
    </pre>
</div>

The CSS:

#error {
    width:404px;
    margin-left: auto;
    margin-right: auto;
    font-size:12;
    font-family: 'Dosis', sans-serif;
    color:white;
    padding-top:20px;   
}

The part of youtube.php(additional info.. not sure if you guys need this):

function get($url)
{
    $this->conn = new Curl('youtube');

    $html = $this->conn->get($url);

    if(strstr($html,'verify-age-thumb'))
    {
        $this->error = "Adult Video Detected";
        return false;
    }

    if(strstr($html,'das_captcha'))
    {
        $this->error = "Captcah Found please run on diffrent server";
        return false;
    }

    if(!preg_match('/stream_map=(.[^&]*?)&/i',$html,$match))
    {
        $this->error = "Error Locating Downlod URL's";
        return false;
    }

Thanks again for any help!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T21:38:36+00:00Added an answer on June 5, 2026 at 9:38 pm

    Try this code:

    <?php
    if (isset($_POST['url'])) {
        include('curl.php');
        include('youtube.php');
    
        $tube = new youtube();
    
        $links = $tube->get($_POST['url']);
    
        if ($links) {
    ?>
    <div id="result"> 
    <b>Download Links  ( Same IP Downloading only )</b> :
    <?php
        $format = '<p><a href="%3$s">Download</a> video.%s - %s<br/>Right-click download link and choose etc...</p>';
        while($link = array_shift($links)) {
            echo vsprintf($format,$link);
        }
    ?>
    </div>
    <?php } else { ?>
    <div id="error">
        <pre>
        <?php echo $tube->error; ?>
        </pre>
    </div>
    <?php } } ?>
    

    Don’t forget to include the CSS… and please, please write more readable in the future.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just a question about css for mobile devices, i have an image that is
Why I am not able to apply an css that is for IE browser
I have some CSS that doesn't behave correctly with IE8. It works fine with
I have the following CSS that hides the mouse cursor for anything on the
I've inherited some CSS that has the charset set at the top of the
I have the following html/css that is causing problems in Firefox 1.5 and 2,
I am constucting a site using CSS that needs to be skinnable / brandable.
I've created a site with CSS that requires the :focus pseudo class. I change
Is there anything in HTML/CSS that tells the browser to ignore whitespace completely? So
I want to generate a Css that will be the same for all my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.