The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
2 vars in postbits, wont work.
Ok, i have this script.
Code:
#BEGIN HACK# $fids = "forumid=5 OR forumid=8"; // User id en Team id in de respectievelijke vars $usrid en $tmid zetten. $sql1 = "SELECT * FROM user WHERE userid=$bbuserinfo[userid] ORDER BY userid DESC"; $result1 = mysql_query($sql1); while($usr= mysql_fetch_array($result1)){ $usrid = $usr[userid]; $tmid = $usr[teamid]; } $sql2 = "SELECT * FROM thread WHERE postuserid=$usrid AND ($fids) ORDER BY threadid DESC"; $result2 = mysql_query($sql2); $usr[pubstro] = mysql_num_rows($result2); // Als er geen team is word if ($tmid != "0"){ $sql3 = "SELECT * FROM groepen WHERE id='$tmid' ORDER BY id ASC"; $result3 = mysql_query($sql3); while ($object3 = mysql_fetch_array($result3)){ $teamtitel = $object3[titel]; } $usr[team]= "<a href=\"groepen.php?s=$session[sessionhash]&oneteam=1&teamname=$teamtitel\">$teamtitel</a>"; }else{ $usr[team]="none"; } # END HACK# i placed Total: $usr[pubstro] <BR> Team: $usr[team] in postbits. But. It doesnt work. Can annyone explane to me how i should do it?. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|