Last Vault

Started on the old forum in January 2009 · view the original in the archive · old links redirect here

4 replies · 481 views · started 17 years ago · 1 min read

3 participants
venom Newbie · 2 posts #1

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.

kaibaspoon Developer · 63 posts #2

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

Rider Developer · 128 posts #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:

$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\">";
kaibaspoon Developer · 63 posts #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...

venom Newbie · 2 posts #5

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";

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close