Last Vault

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Last Vault

    Hye.. I need script last created blog.. last poll,last vault,last fileshare, show at mainpage.. I'm using lavalair xhtml script. I already hav last post scricpt by wappy, n i try to modified it to show last vault, but it giv an error at mainpage.. Share ur knowledge plz... Thanks.

    #2
    Just use the same script and modd it.. it really cant be that hard extract it and paste the code in main page

    Comment


      #3
      most of the stuff are in site stats just go check it and add it to ur main page ive done it except for vault

      hope this will help u

      Random Gallery Items:

      Male

      by:

      Female

      by:

      Last Post:
      BY:
      Random Member:
      Newest Member:


      Code:
      $lpt = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_topics ORDER BY
      lastpost DESC LIMIT 0,1"));
      $nops = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts"));
      if($nops[0]==0)
      {
      $pinfo = mysql_fetch_array(mysql_query("SELECT authorid FROM ibwf_topics"));
      $tluid = $pinfo[0];
      }else{
      $pinfo = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_posts ORDER BY dtpost
      DESC LIMIT 0, 1"));
      $tluid = $pinfo[0];
      }
      $tlnm = htmlspecialchars($lpt[1]);
      $tlnick = getnick_uid($tluid);
      $tpclnk = "<a
      href=\"index.php?action=viewtpc&amp;sid=$sid&amp;tid=$lpt[0]&amp;go=last\">$tlnm</a>";
      $vulnk = "<a
      href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$tluid\">[size="1"]$tlnick[/size]</a>";
      echo "<img src=\"images/latest.gif\" alt=\"*\"/>[size="1"]Last Post: $tpclnk[/size]
      ";
      echo " BY:[size="1"] $vulnk[/size]
      ";
      $sql = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_users ORDER BY RAND()  LIMIT 1"));
      echo "<div class=\"sec\">\n";
      echo "[b]Random Member:[/b]";
      echo "</div>\n";
      echo "
      ";
      echo "<a href=\"index.php?action=viewuser&amp;who=$sql[0]&amp;sid=$sid\">[size="1"]$sql[1][/size]</a>
      ";
      $sql = mysql_fetch_array(mysql_query("SELECT id,name,plusses,sex,birthday,location  FROM ibwf_users ORDER BY regdate DESC LIMIT 0,1"));
      $uage = getage($sql[4]);
        if($nopl[3]==&#39;M&#39;)
        {
          $usex = "Male";
        }else if($sql[3]==&#39;F&#39;){
          $usex = "Female";
        }else{
          $usex = "Shemale";
        }
        $sql[5] = htmlspecialchars($sql[5]);
        
        echo "<div class=\"sec\">\n";
      echo "[b]Newest Member:[/b]";
      echo "</div>\n";
      echo "
      ";
      echo "[size="1"]";
      echo "<a href=\"index.php?action=viewuser&who=$sql[0]&sid=$sid\">$sql[1]</a> ($uage/$usex/$sql[5])
      $sql[2] Plusses
      
      ";
      echo "[/size]";
        echo "<div class=\"sec\">";

      Comment


        #4
        Nope that wont work unless you edit it correctly which means you have to check how it calculated and 1st create 1 for vaulst like post after that you can simply copy and paste...

        Comment


          #5
          Thank.. If dont mind, can u fix this code:<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'> $lpt = mysql_fetch_array(mysql_query("SELECT filename FROM ibwf_uploads ORDER BY date DESC LIMIT 0,1"));
          $pinfo = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_uploads ORDER BY date DESC LIMIT 0, 1"));
          $tluid = $pinfo[0]
          $tlnm = htmlspecialchars($lpt[0]);
          $tlnick = getnick_uid($tluid);
          $tpclnk = "<a href=\"../uploaded/files/$lpt[0]\">$tlnm</a>";
          $vulnk = "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp; who=$tluid\">$tlnick</a>";
          echo "Last Fileshare: $tpclnk By: $vulnk";</div>

          Comment

          Working...
          X