The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello everyone. I have created a very crude plugin (first ever attempt), which essentially displays a result for each member shown on the Member List.
Here is the custom plugin: Code:
$pilotid = $userinfo['userid'];
$pilotid = "VAA".$pilotid;
$getlatestpirep = $db->query_read("SELECT * FROM pirep WHERE pilot_id = '$pilotid' ORDER BY date DESC LIMIT 1");
while ($row = $db->fetch_array($getlatestpirep)) {
$latest_pirep = "<a href=\"../livedispatch/pirep_details.php?pirep_id=".$row['pirep_id']."\">".$row['flight_number']."</a>";
}
If you go HERE, you will see that all members AFTER my name, have the same result for that field column. In that case, since I am the ONLY member with a flight submitted, my name should be the only one displaying the latest flight. Can someone see what I could be doing wrong? Here is how the plugin is setup: Hook Location: memberlist_bit Thanks for any help... UPDATE! Nevermind, I got it working.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|