Results 1 to 5 of 5

Static Pages with vSeo url

This is a discussion on Static Pages with vSeo url within the Template Modifications forums, part of the vBulletin SEO Discussion category; Hello! I want create other pages .php with recent posts in .html format I try this code: <?php echo " ...

  1. #1
    Senior Member
    Real Name
    Jarod
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    183
    Liked
    1 times

    Question Static Pages with vSeo url

    Hello!

    I want create other pages .php with recent posts in .html format
    I try this code:

    <?php
    echo " <table width=\"100&#37;\" border=\"1\"> <tr>
    <td height=\"15\" class=\"tabella\"><span class=testotitolo>Ultime dal Nostro Forum</span></td>
    <td height=\"15\" class=\"tabella\"><span class=testotitolo>Autore</span></td>
    <td height=\"15\" class=\"tabella\"><span class=testotitolo>Risposte</span></td>
    <td height=\"15\" class=\"tabella\"><span class=testotitolo>Visite</span></td>
    </tr> "
    ;


    include_once (
    'forums/includes/functions_vbseo.php');
    vbseo_get_options();
    vbseo_prepare_seo_replace();
    get_forum_info();

    mysql_pconnect("host", "user","pass") or die("Ci Scusiamo Per l'incoveniente tornero on-line tra 10 minuti");
    mysql_select_db("tuodatabse") or die("Impossibile selezionare il database");

    $query = "SELECT * FROM VB_thread WHERE forumid=1 ORDER BY threadid DESC LIMIT 20";
    $risultati= mysql_query($query);

    $conta=0;
    while(
    $tmp = mysql_fetch_assoc($risultati))
    {
    $threadrow = $tmp;
    $conta++;
    $target1=$tmp["title"];
    $replycount=$tmp["replycount"];
    $postusername=$tmp["postusername"];
    $postuserid=$tmp["postuserid"];
    $lastposter=$tmp["lastposter"];
    $views=$tmp["views"];
    $valutazione=$tmp["votetotal"];

    if(
    $start>=0){
    $threadurl = vbseo_thread_url_row($threadrow, $start);
    }else{
    $threadurl = vbseo_thread_url_row($threadrow);
    }

    $getprofile = mysql_query("SELECT * FROM VB_user WHERE userid =".$postuserid);
    $conta=0;

    while(
    $tmp = mysql_fetch_assoc($getprofile))
    {
    $profilerow = $tmp;
    $conta++;
    }


    $profileurl = "members/".$profilerow['username'].".html";
    $profileurl = strtolower($profileurl);
    echo
    "<tr><td align=\"left\"><a href=\"http://www.sito.it/forums/$threadurl\">$target1</a> </td><td> <b>$postusername</b> </td><td > <b>$replycount</b> </td><td > <b>$views</b></td><tr>";
    }


    echo
    " </table><br>";
    The result must be as this! Link

    But on my site it's don't work : Link

    Please, Where is the error?

    Sorry for my bad english

    Thanks friends

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello,

    is this forum id correct ?
    PHP Code:
    $query "SELECT * FROM VB_thread WHERE forumid=1 ORDER BY threadid DESC LIMIT 20"
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Senior Member
    Real Name
    Jarod
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    183
    Liked
    1 times
    Hi Oleg!

    Pardon, I have change that string in:

    $query = "SELECT * FROM VB_thread WHERE forumid=12 ORDER BY threadid DESC LIMIT 20";
    12 = Software Freeware

    But...Nada

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    The problem doesn't seem to be related to vBSEO in this case - your sql query doesn't return any thread rows, you could try to execute this query in phpmyadmin or vB admincp to check it further.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #5
    Senior Member
    Real Name
    Jarod
    Join Date
    Oct 2006
    Location
    Italy
    Posts
    183
    Liked
    1 times
    Mmm okey Oleg, I try to execute query in phpmyadmin

    Very thanks for your kind ;-)

    Bye!

Similar Threads

  1. Sitemap alırken hata alıyorum :(
    By erhanerhan_5 in forum Türkçe
    Replies: 9
    Last Post: 11-15-2006, 09:44 AM
  2. i think something is wrong....
    By briansol in forum General Discussion
    Replies: 3
    Last Post: 08-20-2006, 07:10 PM
  3. Replies: 8
    Last Post: 08-15-2006, 05:10 AM
  4. Compression Error
    By Lazer in forum Troubleshooting
    Replies: 19
    Last Post: 03-03-2006, 02:23 PM

Posting Permissions

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