Update to Posts - Member Info Icon and Badge


 
Thread Tools Search this Thread
The Lounge What is on Your Mind? Update to Posts - Member Info Icon and Badge
# 1  
Old 07-22-2018
Wrench Update to Posts - Member Info Icon and Badge

Hey,

Upgrade (step 1) the posts, by putting a "user info" icon in the top right and making it so it toggles the user info.

The user info icon has a badge which shows the number of posts. I will have to dig around in the code more to get the total posts thanks and other badges working; but this is the general idea:

Image

There is too much padding or margin (empty) between the top of the post and the user avatar and icon area; but since I am planning to redo all this code, table-to-divs, I will fix this when I do the rewrite.
This User Gave Thanks to Neo For This Post:
# 2  
Old 07-22-2018
Update:

Additional Changes to:


  • Mod Comments CSS (Colors, Layout, etc)
  • Padding and Margins in User Info Area
# 3  
Old 07-22-2018
OK.. I updated this to show the number of post and number of times thanked next to the "toggle-able" User Info Icon:

Image
# 4  
Old 07-22-2018
Hmmm. I do not have the CSS skills yet to insure proper alignment unless I put the icon on the right and the badges on the left, because of the number of digits in the badges, so I will go with this for now:

Image
# 5  
Old 07-22-2018
Looking really nice and succinct!
Would be nice to change the shape of the cursor when hovering over...
Thanks
This User Gave Thanks to vgersh99 For This Post:
# 6  
Old 07-22-2018
Quote:
Originally Posted by vgersh99
Looking really nice and succinct!
Would be nice to change the shape of the cursor when hovering over...
Thanks
OK. Done.

Code:
jQuery(".neo-postbit-user-info-area").hover(function(){
      jQuery(this).css({"cursor":"pointer"});
   });

jQuery(".neo-postbit-user-info-area").click(function(){
        jQuery(this).find(".neo-postbit-user-info").toggle();
        jQuery(this).find(".neo-postbit-user-info-icon").toggle();
  });

This User Gave Thanks to Neo For This Post:
# 7  
Old 07-22-2018
Quote:
Originally Posted by Neo
OK. Done.

Code:
jQuery(".neo-postbit-user-info-area").hover(function(){
      jQuery(this).css({"cursor":"pointer"});
   });

jQuery(".neo-postbit-user-info-area").click(function(){
        jQuery(this).find(".neo-postbit-user-info").toggle();
        jQuery(this).find(".neo-postbit-user-info-icon").toggle();
  });

I think the request was to change the shape of the cursor when hovering over the Thanks button at the bottom left corner of a post; not just when hovering over the user-info-area at the top right corner of a post.

Also, on a related note, it used to be that the text associated with a URL was always underlined (giving a clear indication that you could click on that area and to go a web page associated with the underlined topic). Now, that text is only underlined if a user hovers over the text associated with a URL (leaving us with no indication that a URL link is present unless someone happens to move the cursor over the associated text).

Cheers,
Don
This User Gave Thanks to Don Cragun For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Web Development

Color a Badge Based on the Weeks the Member is Active in the Latest Sequence

Hi Ravinder, Could you (and anyone else who wants to help out) check this PHP code and confirm it does what I expect it to do, which is to color a badge based on the weeks a member is active in the latest sequence? I did a cut-paste-change from my "days in sequence" PHP prototype script and it... (6 Replies)
Discussion started by: Neo
6 Replies

2. Web Development

Update to Member List - New Click Options

FYI, Have updated our memberlist : https://www.unix.com/members/list/?order=DESC&sort=lastvisit&pp=30 $cat memberlist.php ... 375 // added next line by neo 15 Nov 2018 376 $condition .= ' AND credits > 0'; ... The reason for this change is insure the... (3 Replies)
Discussion started by: Neo
3 Replies

3. What is on Your Mind?

Update to Navbar - Member Info and Avatars

Hey, I moved the user information in the top right on the navbar to side panel and replace it with a clickable avatar image. If you have an avatar, you will see your avatar and if you don't you will see some default one (will change it to something better later). If you have any notification... (53 Replies)
Discussion started by: Neo
53 Replies

4. Red Hat

Gpk-update-icon consume more CPU

Dear all, I have installed OEL Oracle Linux 6.4 on my server , when I type " Top " command to see the CPU utilization , the output shows a root user executed "gpk-update-icon" which consume upto 98% , So needs your feedback with solution. If I kill this process it will effect ?? ... (1 Reply)
Discussion started by: mody82
1 Replies

5. Forum Support Area for Unregistered Users & Account Problems

Update my info

I hadn't logged on here in several months. I want to update my info, such as the email address that I can be contacted at, but I don't see any links to do that. (1 Reply)
Discussion started by: cleopard
1 Replies
Login or Register to Ask a Question