Page 1 of 2 12 LastLast
Results 1 to 10 of 58

Thread: Google Sitemap v2.7

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default

    Can't the db login stuff be eliminated by using the config include?

    require 'include/config.php';

    and instead of this echo "<url><loc>http://www.site.com/video/".$info[0]."/".$SefUrl."/</loc></url>";

    put echo "<url><loc>{$base_url}/video/".$info[0]."/".$SefUrl."/</loc></url>";

    or will that bork the whole thing....Imma go try it.
    If it's not fun, stop doing it!

  2. #2

    Default

    I made it as a stand alone script. But both ways are fine

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

    Default

    Yeah, the inlude works but I think the DB stuff needs to be this:

    $sql = "Select video_id, video_title, video_description, video_add_date, video_flv_name, video_length from videos where video_approve=1 and video_active=1";
    If it's not fun, stop doing it!

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

    Default

    I'm trying to automate this as much as I can so that I can just upload it to all my vshare sites without having to configure each one each time...the only thing I can't get to work is the {$base_url} part. Comes out looking weird

    Code:
    http:///6/using_satchel_and_claymore_in_ctf/http:///etc
    Last edited by grynmoors; 05-16-2009 at 12:37 PM.
    If it's not fun, stop doing it!

  5. #5

    Default

    Quote Originally Posted by grynmoors View Post
    I'm trying to automate this as much as I can so that I can just upload it to all my vshare sites without having to configure each one each time...the only thing I can't get to work is the {$base_url} part. Comes out looking weird

    Code:
    http:///6/using_satchel_and_claymore_in_ctf/http:///etc

    Keep in mind its still xml format even though it has php extension

    Code:
    $config['baseurl']

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

    Default

    Right, I was thinking "smarty" code. I submitted it to Google and we'll see what happens. I can't post my completed code to the forums for some reason, it keeps getting cut off.
    If it's not fun, stop doing it!

  7. #7

    Default

    I get the following error? any sollutions yet?


    The following tags were not closed: urlset. Error processing resource 'http://www.ikhebdexfactor.nl/sitemap.php'.

  8. #8

    Default

    Quote Originally Posted by ikhebdexfactor View Post
    I get the following error? any sollutions yet?


    The following tags were not closed: urlset. Error processing resource 'http://www.ikhebdexfactor.nl/sitemap.php'.
    Error: Table 'ikhebdex_vshare.video' doesn't exist

    Table doesn't exist

    The script works. Use my version for google

  9. #9
    Join Date
    Sep 2009
    Posts
    1

  10. #10

    Default

    I am currently getting the following message after creating the sitemap.php file and placing it within my public_html folder (with the index.php).

    This XML file does not appear to have any style information associated with it. The document tree is shown below.

    This message is then followed by the code within the file. Is this normal? If so, no problems here, but it seems a bit fishy.

    Thanks for the sitemap anywho, and the answers of course.

    --
    Cheers,

Page 1 of 2 12 LastLast

Similar Threads

  1. [addon] Google Sitemap Generator
    By RAMMSTEIN in forum Template Modifications
    Replies: 5
    Last Post: 11-07-2008, 04:25 AM
  2. Google Video Sitemap
    By CliftonH in forum Web Site Promotion
    Replies: 6
    Last Post: 08-10-2008, 10:20 PM
  3. Sitemap
    By autodafe in forum Feature Requests
    Replies: 23
    Last Post: 02-29-2008, 12:08 AM
  4. New Google video sitemap !!!
    By chadon in forum Feature Requests
    Replies: 2
    Last Post: 12-21-2007, 06:48 PM
  5. Sitemap Generator for vShare
    By autodafe in forum General Discussions
    Replies: 14
    Last Post: 10-24-2007, 03:50 PM

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
  •