Quote:
Originally Posted by Tru2Chevy
Hey Xoxideforums....
I was just wondering if you would post up the code that you ended up using on TGO to put a link to the member's garage in the postbit? I saw you asking about it in the other vBGarage thread, but never saw what you ended up coming up with.
Also, what changes did you make to get your list of garages to appear in the order that they had been modified?
Thanks!
- Justin
|
I still haven't taken time to actually write up some PHP that checks to see if that user actually haves a garage setup. So right now every member has this image link to an imaginary or real garage.
Code:
<a href="vbgarage.php?do=view&id=$post[userid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/garage.gif" border="0" alt="vBGarage Page" /></a>
Here's how to get them to list in order
Code:
if (!isset($pagenumber) or ($pagenumber < 1) or ($pagenumber > $numberpages))
$pagenumber = 1;
$pos = ($pagenumber - 1) * $perpage;
$result_list = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "vbgarage_users ORDER BY lastactivity DESC LIMIT $pos,$perpage");