pH7Software / pH7-Social-Dating-CMS

😻 pH7Builder (formerly pH7CMS) is a Professional & Open Source Social Dating CMS written in PHP 8 🚀 This Social Dating Script aims to be low resource-intensive, powerful and secure. pH7Builder includes over 40 modules. It is the first Professional, Free & Open Source Social Dating Site Builder Software and the first choice for enterprise level Da
https://pH7Builder.com
MIT License
956 stars 573 forks source link

User Status Circle (on top of their avatar); CSS Improvement #350

Open pH-7 opened 5 years ago

pH-7 commented 5 years ago

The left green top user status circle isn't displayed well on the profile photos (in the search results). Should be improved.

See below on the screenshot:

online-bull-status-not-best-set-css
polynamaude commented 5 years ago

Hi P-H ! Sorry to look a bit dumb but where's the problem or the improvement needed ? Only thing I see is the right one that is being displayed only in half because of space limitation, but that's normal !

Are you talking about the bottom ones that are displayed out of grid ?

pH-7 commented 5 years ago

Sorry @polynamaude, maybe I wasn't clear. It was like a personal note to not forget to fix it (useless someone else will do it by opening a PR...). I meant the left green top user status circle. The circle that shows if someone is online/busy/offline, etc. I think, it should be more on the left side. At the moment (as you can see), it's almost on the face of the avatar.

polynamaude commented 5 years ago

Oh, I get what you mean. I think it's a matter of personal preference but even as it is now, I don't find it bad. I'll take a look at the template, maybe I can do this quick-fix. And it would give me a chance to get a deep look into how you made the templates for pH7CMS.

And because we're talking about PR, I'm going to have some free time in the next month to finish up the IP black list that gets fed from honeypot and possibly do one that does the same for disposable domain name (blacklisted domain name used to spam). Is there anywhere some code already done for validating a domain name when the user register ?

pH-7 commented 5 years ago

Haha, yes you right @polynamaude :) It's a matter of personal preference ;) but still think, it would look better :)

FYI, it's here https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/4a25d4ed1273e47a3235e47f59d869343591fc19/templates/themes/base/css/common.css#L255-L256

However, be careful because it will move also the status circle displays on the profile page (where you have the large-size avatar). And finally, also presents on the privacy setting form (https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/8a5eceaf111daac5b3537e79b953d37b0fc8d96c/_protected/app/system/modules/user/forms/PrivacyForm.php#L43), but less important..

pH-7 commented 5 years ago

That's great news concerning your "banned IP" PR!! 🎉

pH-7 commented 5 years ago

Is there anywhere some code already done for validating a domain name when the user register ?

Hum, if it's what you mean, there is a URL validate method here: https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/723b19e68c199adde75f4c87f2b626c6a973a687/_protected/framework/Security/Validate/Validate.class.php#L339-L361 (not sure if it's what you are looking for, though).

Enjoy your weekend! 🎉