Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Only shows one?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Grant" data-source="post: 42313" data-attributes="member: 391"><p>I've ran into a problem, I've just began to edit that uberCMS edit from PeJump2. (I liked it.. #palmface#) Anyway's, I've started to try and do a "My Page" which shows your common statistics like badges, friends and so on. However, I can't get all the users badges to show.</p><p></p><p>Just wondering if any of you could help me..</p><p></p><p>Heres my code for Home.php</p><p>[PHP]$getBadge = dbquery("SELECT * FROM user_badges WHERE user_id = '" . USER_ID . "'");</p><p></p><p>if(mysql_num_rows($getBadge) == 0)</p><p>{</p><p> $badge = '<center><p>This user has not achieved any achievements!</p></center>';</p><p>}</p><p></p><p>while($getBadges = mysql_fetch_array($getBadge))</p><p>{ </p><p> $badge = '<img src="c_images/album1584/'. $getBadges['badge_id'] .'.gif" />';</p><p>}</p><p></p><p>$compHome->SetParam('badge', $badge);[/PHP]</p><p></p><p>There is more, but it's just the badge bit I need help with.</p><p></p><p>And here is my Home.tpl</p><p>[PHP]%badge%[/PHP]</p><p></p><p>-----</p><p></p><p>At the moment, it all works except the problem is it only shows one badge. Can any of you help me make it show all the users badges?</p></blockquote><p></p>
[QUOTE="Grant, post: 42313, member: 391"] I've ran into a problem, I've just began to edit that uberCMS edit from PeJump2. (I liked it.. #palmface#) Anyway's, I've started to try and do a "My Page" which shows your common statistics like badges, friends and so on. However, I can't get all the users badges to show. Just wondering if any of you could help me.. Heres my code for Home.php [PHP]$getBadge = dbquery("SELECT * FROM user_badges WHERE user_id = '" . USER_ID . "'"); if(mysql_num_rows($getBadge) == 0) { $badge = '<center><p>This user has not achieved any achievements!</p></center>'; } while($getBadges = mysql_fetch_array($getBadge)) { $badge = '<img src="c_images/album1584/'. $getBadges['badge_id'] .'.gif" />'; } $compHome->SetParam('badge', $badge);[/PHP] There is more, but it's just the badge bit I need help with. And here is my Home.tpl [PHP]%badge%[/PHP] ----- At the moment, it all works except the problem is it only shows one badge. Can any of you help me make it show all the users badges? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Only shows one?
Top