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;
}
}
Friendly reminder: The politics section is a place where a lot of differing opinions are raised. You may not like what you read here but it is someone's opinion. As long as the debate is respectful you are free to debate freely. Also, the views and opinions expressed by forum members may not necessarily reflect those of GBAtemp. Messages that the staff consider offensive or inflammatory may be removed in line with existing forum terms and conditions.
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.
The U.S. is more united than any other wealthy democracy. Is there a way to cut through the media lies and manipulation?
Don't let a minority try and tell you we aren't united.
All we have to do is find things we agree on and build from there.
I think we can all agree that lobbyists are scum. That is our starting point.
Now we can move on to another easy one. Citizens United needs to be reversed. Corporations have too much power in the United States, especially since complete industries are merging into fewer and fewer companies. Look at the number of airlines there are, food distributers, insurance, tech and auto companies.
With so few companies, the government has taken advantage and started having these corporations spy on us and censor what we say and what we can see. The less companies we have competing for our business, the less corporate boards the government needs to control. Look at how many "former" FBI and CIA agents work in Big Tech and in the legacy media.
The right keeps spewing stupid conspiracy bullshit, hatespeech, racial slurs, and Nazi rhetoric. The rest of us normal folks don't want anything to do with that crap, so of course we don't want to be associated with you guys.
The right keeps spewing stupid conspiracy bullshit, hatespeech, racial slurs, and Nazi rhetoric. The rest of us normal folks don't want anything to do with that crap, so of course we don't want to be associated with you guys.
not only are all of those things true of the left, and only the left, but the fact you were conned into believing that shows the failure in our country .
The right keeps spewing stupid conspiracy bullshit, hatespeech, racial slurs, and Nazi rhetoric. The rest of us normal folks don't want anything to do with that crap, so of course we don't want to be associated with you guys.
not only are all of those things true of the left, and only the left, but the fact you were conned into believing that shows the failure in our country .
I see it in my own Facebook feed, for fuck's sake... what do you mean conned? You need to wake the hell up and look around without the Trump glasses on.
I see it in my own Facebook feed, for fuck's sake... what do you mean conned? You need to wake the hell up and look around without the Trump glasses on.
Post automatically merged:
"So much for the tolerant left!" they say, as if we're supposed to just swallow their fascist bullshit unquestioned.
Name calling? Since when is the truth a bad thing? And I hate big corporations. I fight for those of us on the bottom getting fucked by those on the top. I will always fight for humanity over profits. Pull your head outta your ass.
Name calling? Since when is the truth a bad thing? And I hate big corporations. I fight for those of us on the bottom getting fucked by those on the top. I will always fight for humanity over profits. Pull your head outta your ass.
not only are all of those things true of the left, and only the left, but the fact you were conned into believing that shows the failure in our country .
You know there are pedophiles and sexual deviants in both parties right? And it's a common ploy among pedophiles to distract from their crimes by exposing other pedophiles.
You gotta wonder just what all those republicans are up to, when they create this mass hysteria. It's got to be really bad for them to go to all this effort.
Name calling? Since when is the truth a bad thing? And I hate big corporations. I fight for those of us on the bottom getting fucked by those on the top. I will always fight for humanity over profits. Pull your head outta your ass.
If you hate big corporations, that means you agree with me. What's with your hateful racist, fascist rhetoric?
This is a quote from you, right?
The right keeps spewing stupid conspiracy bullshit, hatespeech, racial slurs, and Nazi rhetoric. The rest of us normal folks don't want anything to do with that crap, so of course we don't want to be associated with you guys.
I'm trying to save you from getting involved with the MAGA cult, so you must be pro lobbyist and pro big corporation.
Hey look, the guy who thinks everybody who disagrees with him is a Nazi. Nice of you to drop by. I take it since you think I'm a racist, transphobic fascist, that I can put you down as pro lobbyist and pro corporation also?
I'd hate for all of you leftists to be forced to agree with the literal reincarnation of Hitler.
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.