REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 24 Vote(s) - 4.17 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My Awards 1.3
#41
Quote: $query = $db->query("
SELECT u.*, a.*
FROM ".TABLE_PREFIX."myawards a
LEFT JOIN ".TABLE_PREFIX."myawards_users u ON (u.awid=a.awid)
ORDER BY awname ASC
");

while($results = $db->fetch_array($query))
{
$bgcolor = alt_trow();

$user = get_user(intval($results['awuid']));
$profilelink = build_profile_link($user['username'],$user['uid']);

$awbody .="<tr>
<td class=\"{$bgcolor}\" align=\"center\"><img src=\"uploads/awards/".$results['awimg']."\" alt=\"".$results['awname']."\" width=\"32px\" /></td>
<td class=\"{$bgcolor}\" align=\"center\"><img src=\"uploads/awards/".$results['awimg']."\" alt=\"".$results['awname']."\" /></td>
<td class=\"{$bgcolor}\"><strong><a href=\"myawards.php?awid={$results['awid']}\">{$results['awname']}</a></strong><br />{$results['awdescr']}</td>
<td class=\"{$bgcolor}\" align=\"center\">{$profilelink}</td>

That $profile link puts one next next to award

eg.

I want to turn this;

Admin Award - Phil
Admin Award - dreamweaver

into this;

Admin Award - Phil, dreamweaver

I'm not too bothered about it showing as guest when no-one has award. The last section is 'Users Who Have Already Recieved Awards', so I'm looking to try and get it to show a bit like who's online list
#42
Well there supposed to be demo in this forum right?!

Anyway my few points(for Postbits)

1. a gap between awards would look better
2. I don't know if there is, but a link to "awards" page on the awards images would be needed.(I made the awards work on my forum myself without any plugin, but I got stuck when I came to parse html!)
3. Please show some live demo(not only pics)

Thanks.
#43
oh its cooll plugin Smile

thanx a llot labroccaSmile
#44
Finally!(Well not that it took a long time just been waiting for it Big Grin).

Great work once again Labrocca.
#45
Live demo. well i am running it. But i screwed with it and sort of have it duplicated. I want to create a specific idea so take that aside yes i have a working demo. Click my sig. 2 easy.
Its for flame wars on my forum.
Just so you know.
Sorry here is a better link. http://www.ftw.net.au/showthread.php?tid...12#pid4212 look at contracts bit. He has 4 wins and 4 trophies although i need to make new trohies of course.
FTW Forum <-- Home of the DAMNED!
I have a weird thing that happens to my sigs. Its call moderation lol
#46
Yeah I will have live demo here soon enough.

Quote:'Users Who Have Already Recieved Awards',

You can use the query from the ALL function.

Quote:1. a gap between awards would look better

I still have to experiment with layout a bit. It really can depend too on the images you use. Shouldn't be hard to use a non-breaking-space between images or possible a simple hspace tag too.

Quote:2. I don't know if there is, but a link to "awards" page on the awards images would be needed.

I don't agree. That's a lot of extra links on the page for nothing. From profile of any user you can go to their awards details page.
#47
(Oct 11, 2008, 07:16 PM)labrocca Wrote: EDIT: Also want to comment on the MYPS integration..you can expect this plugin to have a lot more features as it grows.

Brilliant Smile
#48
(Oct 12, 2008, 02:59 AM)labrocca Wrote: Yeah I will have live demo here soon enough.

Quote:'Users Who Have Already Recieved Awards',

You can use the query from the ALL function.

Still the same. It's like {$profilelink} just puts one name to each award. I'll try and figure it out
#49
Thank you labrocca teşşekürler
#50
Great work on this can't wait to try it!


Possibly Related Threads...
Thread Author Replies Views Last Post
  My Awards issue... Galaxy 3 4,750 Sep 09, 2010, 06:44 PM
Last Post: Kaleb
  My Awards In Vertical Postbit 3KB 11 8,109 Jul 08, 2010, 04:53 PM
Last Post: labrocca
  Awards Systen - Recoking? iymovies 2 3,397 Dec 12, 2009, 06:01 PM
Last Post: labrocca
  Awards Xenocide 4 4,204 Nov 12, 2009, 01:08 PM
Last Post: MattR
  My Awards Badge! upthevale 17 15,891 Oct 23, 2009, 01:41 AM
Last Post: mynameis940

Forum Jump:


Users browsing this thread: 2 Guest(s)