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
SRP(1SSL)							      OpenSSL								 SRP(1SSL)

NAME
openssl-srp, srp - maintain SRP password file SYNOPSIS
openssl srp [-help] [-verbose] [-add] [-modify] [-delete] [-list] [-name section] [-config file] [-srpvfile file] [-gn identifier] [-userinfo text...] [-passin arg] [-passout arg] [user...] DESCRIPTION
The srp command is user to maintain an SRP (secure remote password) file. At most one of the -add, -modify, -delete, and -list options can be specified. These options take zero or more usernames as parameters and perform the appropriate operation on the SRP file. For -list, if no user is given then all users are displayed. The configuration file to use, and the section within the file, can be specified with the -config and -name flags, respectively. If the config file is not specified, the -srpvfile can be used to just specify the file to operate on. The -userinfo option specifies additional information to add when adding or modifying a user. The -gn flag specifies the g and N values, using one of the strengths defined in IETF RFC 5054. The -passin and -passout arguments are parsed as described in the openssl(1) command. OPTIONS
[-help] Display an option summary. [-verbose] Generate verbose output while processing. COPYRIGHT
Copyright 2017 The OpenSSL Project Authors. All Rights Reserved. Licensed under the OpenSSL license (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>. 1.1.1a 2018-12-18 SRP(1SSL)
All times are GMT -4. The time now is 08:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy