namespace GBAtemp\ListUsers\BBCode;
class Custom
{
public static function renderListUsers(
array $tagChildren,
$tagOption,
$tagName,
array $options,
\XF\BbCode\Renderer\AbstractRenderer $renderer
) {
// Parse group IDs from the BBCode parameters
$groupIDs = explode(",", $tagOption);
// Initialize the Finder for XF:User entity
$finder = \XF::finder('XF:User');
// Construct the condition to find users with the specified group IDs
$inSet = $finder->expression("FIND_IN_SET(?, secondary_group_ids)", $groupIDs);
// Set the condition for the finder to retrieve users with the specified group IDs
$finder->where($inSet);
// Fetch users matching the condition
$users = $finder->fetch();
// Initialize an array to store user details
$userDetails = [];
// Loop through each user
foreach ($users as $user) {
// Start building user details
$userDetail = '
'; // Open a div for user details
// Get the avatar and username link
$avatarAndUsername = self::getUserAvatarAndUsername($user);
// Append the avatar and username link to the user details
$userDetail .= $avatarAndUsername;
$userDetail .= '
'; // Close the div for user details
// Add user details to the array
$userDetails[] = $userDetail;
}
// Concatenate user details with commas
$userListHTML = '
' . implode('', $userDetails) . '
';
// Return the HTML
return $userListHTML;
}
protected static function getUserAvatarAndUsername($user)
{
$templater = \XF::app()->templater();
// Render the avatar and username link using XenForo's templating system
$avatarAndUsernameHtml = $templater->fn('avatar', ['user' => $user, 'size' => 's']);
$avatarAndUsernameHtml .= '' . htmlspecialchars($user->username) . '';
// Return the HTML for the avatar and username link
return $avatarAndUsernameHtml;
}
}
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.
Limited edition Gold EDGE Kit give-away!
Win 1 of 20 limited edition golden carts
* COMPETITION IS NOW CLOSED! *
Competition time! And the EDGE Team have supplied us with 20 limited edition gold EDGE flash kits to give away to GBAtempers! Kits include a limited edition gold painted EDGE cart, standard micro SD USB reader and limited edition packaging and banding. Only 60 limited edition gold kits were produced worldwide, and we have 20 to give away to some lucky people!
Fancy getting your hands on one? All you need to do is design a skin for use with the EDGE flash cart and submit it to us! We will pick the 20 best skins once the competition ends on November 14th 2008 and announce the winners by the 15th! Prizes will be shipped worldwide for free.
A skin creation utility is available that will make creating skins a breeze. You can download the Skin Editor via the link below. You don't even need an EDGE cart to test the skins - you can completely test all functionality in the program! And if you win, you get to use your awesome new skin!
Competition Rules:
One Entry per person, forum account required, open to all member groups.
You must post your entry in this competition thread and clearly indicate that it is your entry.
Entry previews should be in standard web graphic form (JPG, GIF, PNG etc.). No Flash/Shockwave please.
Entries should not require the installation of additional software.
Entries must not include any illegal, pornographic or offensive material. Entries that are unsuitable will be removed.
The competition ends November 14th 2008 at midnight(GMT).
Prizes:
There will be 20 individual winners.
20x limited edition gold EDGE Flash kits (includes gold cart, micro SD USB reader and packaging).
Prizes will be shipped free to most countries.
Judging:
Judging will be conducted by the Staff.
The winning entries will be announced some time after the competition closes on November 14th 2008, no set date as all the staff need to cast their votes internally and it's difficult when we're all from different time zones.
Staff's decision is final.
ENTRY INFORMATION:
Please upload your skin image preview to an online host and post it as a reply in this thread using the URL tags.
Please upload your skin in RAR or ZIP format and post to an online host and link to it in your skin submission along with the image preview. Do not include additional files in the archive such as executables (readme.txt files are OK though)
The competition is open for 2 weeks from the date of this post, so get busy. Please don't hesitate to enter, skins are judged based on their uniqueness and creativity, not photoshopping skills.
QUOTE(shaunj66 @ Nov 2 2008, 01:10 PM) A skin creation utility is available that will make creating skins a breeze. You can download the Skin Editor via the link below. You don't even need an EDGE cart to test the skins - you can completely test all functionality in the program! And if you win, you get to use your awesome new skin!
since this is a one entry per person, can i make any revision to my entry (if needed) before 14th ?
okay here goes
competition entry :
skin title : my DS-Lite (ehm.. or maybe i should say "Seth DS-Lite")
i started this skin to make my own personal DS just for me, hence the name.
i like refreshing image, that is wahy i use fresh green grass (my pc wallpaper actually) as the main background. also added a bit of light gare effect on upper left corner to make it a bit nicer
well actually this is also based on a skin for nds emulator that i made previously, where i add that light effect to imitate a ds screen displaying a flash kit OS (loll funny thing is, i eventually use it on a real DS).
btw, tyo is my other nickname, some calls me seth and some calls tyo
I suck at design, but maybe if I have free time I will try to come up with something.
But I still don't see why should I care what color my flashcard is(except if I have a golden DS
As each year passes, retro games become harder and harder to play, as the physical media begins to fall apart and becomes more difficult and expensive to obtain. The...
While rumors had been floating about rampantly as to the future plans of Nintendo, the President of the company, Shuntaro Furukawa, made a brief statement confirming...
Nintendo has officially announced that a successor to the beloved Switch console is on the horizon. As we eagerly anticipate what innovations this new device will...
DOOM is well-known for being ported to basically every device with some kind of input, and that list now includes the old retro game console in Persona 5 Royal...
With the vast success of Super Mario Maker and its Switch sequel Super Mario Maker 2, Nintendo fans have long been calling for "Maker" titles for other iconic genres...
Retro handheld manufacturer Anbernic has revealed its first clamshell device: the Anbernic RG35XXSP. As the suffix indicates, this handheld's design is inspired by...
After several months of work, the Harbour Masters 64 team have released their first public build of 2Ship2Harkinian, a feature-rich Majora's Mask PC port. This comes...
After rumour got out about an upcoming NES Edition release for the famed Nintendo World Championships, Nintendo has officially unveiled the new game, titled "Nintendo...
The number of layoffs and cuts in the videogame industry sadly continue to grow, with the latest huge layoffs coming from Microsoft, due to what MIcrosoft calls a...
Ubisoft has today officially revealed the next installment in the Assassin's Creed franchise: Assassin's Creed Shadows. This entry is set in late Sengoku-era Japan...
Nintendo has officially announced that a successor to the beloved Switch console is on the horizon. As we eagerly anticipate what innovations this new device will...
While rumors had been floating about rampantly as to the future plans of Nintendo, the President of the company, Shuntaro Furukawa, made a brief statement confirming...
As each year passes, retro games become harder and harder to play, as the physical media begins to fall apart and becomes more difficult and expensive to obtain. The...
After several months of work, the Harbour Masters 64 team have released their first public build of 2Ship2Harkinian, a feature-rich Majora's Mask PC port. This comes...
Ubisoft has today officially revealed the next installment in the Assassin's Creed franchise: Assassin's Creed Shadows. This entry is set in late Sengoku-era Japan...
After a little more than three years of exclusivity with the Epic Games Store, Square Enix has decided to bring their beloved Kingdom Hearts franchise to Steam. The...
After rumour got out about an upcoming NES Edition release for the famed Nintendo World Championships, Nintendo has officially unveiled the new game, titled "Nintendo...
DOOM is well-known for being ported to basically every device with some kind of input, and that list now includes the old retro game console in Persona 5 Royal...
The number of layoffs and cuts in the videogame industry sadly continue to grow, with the latest huge layoffs coming from Microsoft, due to what MIcrosoft calls a...
Sony is once more attempting to reintroduce players to their older library of games by re-releasing classic PlayStation 2 titles onto the PlayStation Store. During...
Caller -"Everytime I start a Pc game on my S24, playing on a external monitor, someone calls or texts me, n it kicks me out of the game." Customer Support - Click (hangs up)
I found it funny cause many many years ago, had a roommate in college that did this same dumbass branding of the school logo, but it didn't look anything like it after it healed. Just looked like a birthmark.