Sponsored Content
The Lounge What is on Your Mind? Prototyping New Responsive Mobile for UNIX.COM - Phase II Post 303006904 by Neo on Thursday 9th of November 2017 03:02:15 AM
Old 11-09-2017
For mobile "who is online" and for the member's profile, I added code for usergroup default avatars for those who do not have avatars:

Code:
    
          $avatarurl = fetch_avatar_url($userinfo['userid']);
           if (!$avatarurl) {
             if($userinfo['usergroupid'] == '10')  // Mods
                   $icon_url = 'https://www.unix.com/customavatars/avatar302016126_2.png';
               else if($userinfo['usergroupid'] == '5')  //Mods
                   $icon_url = 'https://www.unix.com/customavatars/avatar302016126_2.png';
               else if($userinfo['usergroupid'] == '13') // Banned
                   $icon_url = 'https://www.unix.com/customavatars/avatar34166_2.gif';
               else if($userinfo['usergroupid'] == '11') // Undergrounders
                 $icon_url = 'https://www.unix.com/customavatars/avatar44786_2.gif';
               else if($userinfo['usergroupid'] == '9') // Readonly
                 $icon_url = 'https://www.unix.com/customavatars/read_only_1.png';
               else if($userinfo['usergroupid'] == '17') //Vips
                 $icon_url = 'https://www.unix.com/customavatars/vip.png';
              else  // default
               $icon_url = 'https://www.unix.com/customavatars/avatar46598_1.gif';
              $neo_avatar = $icon_url;
            } else    {
           $neo_avatar = $vbulletin->options['bburl'] . '/' . $avatarurl[0];
           }

 

8 More Discussions You Might Find Interesting

1. What is on Your Mind?

Mobile App for UNIX.com?

Do we have a mobile app for unix.com? (1 Reply)
Discussion started by: ahamed101
1 Replies

2. Shell Programming and Scripting

Sending message to a mobile number through UNIX

Is it possible to add Pager Notification to mailx command?? Or by any other mean. just want to specify that by Pager i mean a message to the mobile number. Suppose i have following condition If ];then send a message to 9999999999 else no message to be sent fi Is it possible? I... (5 Replies)
Discussion started by: Sharma331
5 Replies

3. What is on Your Mind?

Mobile Friendly Version of UNIX.COM

Hello, I have noticed some problems with Google complaining our site is not "https://search.google.com/www.usearch-console/mobile-friendly" using only Tapatalk. So, after a lot of work, I have re-enabled our legacy mobile style and make some improvements and Google has declared us "mobile... (2 Replies)
Discussion started by: Neo
2 Replies

4. What is on Your Mind?

Prototyping New Responsive Mobile UNIX.COM

I'm working on updates to the mobile phone view, and it's going to look much better I think. Here are some current prototypes: Prototype Mobile Home Page: https://www.unix.com/members/1-albums214-picture690.jpg Prototype Mobile Search Page: ... (43 Replies)
Discussion started by: Neo
43 Replies

5. What is on Your Mind?

Prototyping New Responsive Mobile for UNIX.COM - Phase III

From Prototyping New Responsive Mobile for UNIX.COM - Phase II, we move to Phase III. Basically, the core prototype for every day browsing the forums, replying, posting and editing on mobile is nearly finished with the exception of a few formatting issues with regard to rare system messages or... (4 Replies)
Discussion started by: Neo
4 Replies

6. What is on Your Mind?

New UNIX.COM Mobile Site Icons

Having given up for the time being with a very difficult game engine project to virtualizing cyberspace, am working on the forums again. Just updated a few icons on the mobile site. Explanations in the picture captions: https://www.unix.com/members/1-albums214-picture855.jpeg ... (1 Reply)
Discussion started by: Neo
1 Replies

7. What is on Your Mind?

Check Out UNIX.COM on Mobile - It's Looking Good

If you have not visited the site on mobile lately, you are missing out on a great looking mobile web site. If you don't have a mobile, you can always navigate to the sliding member panel and click on "Mobile View".... It's really looking killer'...... I'm starting to think that soon the... (6 Replies)
Discussion started by: Neo
6 Replies

8. What is on Your Mind?

New Responsive 404 Page for UNIX.com

Just created (actually, only modified... it was created by ShoutOut) a new responsive 404 "not found" page with the help of ShoutOut free templates. https://www.unix.com/status/404.html Same for 401 and 403 errors. Picture sans animation: ... (2 Replies)
Discussion started by: Neo
2 Replies
USER(8) 						    BSD System Manager's Manual 						   USER(8)

NAME
user -- manage user login information on the system SYNOPSIS
user add -D [options] user add [options] user user del -D [options] user del [options] user user info [options] user user mod [options] user DESCRIPTION
The user utility acts as a frontend to the useradd(8), usermod(8), userinfo(8), and userdel(8) commands. The utilities by default are built with EXTENSIONS. This allows for further functionality. For a full explanation of the options available, please see the relevant manual page. EXIT STATUS
The user utility exits 0 on success, and >0 if an error occurs. FILES
/etc/skel/.[A-z]* Skeleton files for new user /etc/usermgmt.conf Configuration file for user, group(8) and the backend commands mentioned above. SEE ALSO
chpass(1), group(5), passwd(5), usermgmt.conf(5), useradd(8), userdel(8), userinfo(8), usermod(8) HISTORY
The user utility first appeared in NetBSD 1.5. It is based on the addnerd package by the same author. AUTHORS
The user utility was written by Alistair G. Crooks <agc@NetBSD.org>. BSD
November 16, 2005 BSD
All times are GMT -4. The time now is 09:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy