Last Vault
Started on the old forum in January 2009 · view the original in the archive · old links redirect here
Just use the same script and modd it.. it really cant be that hard extract it and paste the code in main page
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:
$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&sid=$sid&tid=$lpt[0]&go=last\">$tlnm</a>";
$vulnk = "<a
href=\"index.php?action=viewuser&sid=$sid&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&who=$sql[0]&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]=='M')
{
$usex = "Male";
}else if($sql[3]=='F'){
$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\">";
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...
Thank.. If dont mind, can u fix this code:CODE $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&sid=$sid&who=$tluid">$tlnick</a>"; echo "Last Fileshare: $tpclnk By: $vulnk";