vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Gender Bit: Show gender symbol next to username in postbits and many other places (https://vborg.vbsupport.ru/showthread.php?t=196749)

shlomot 11-27-2008 07:37 AM

Thanks a lot for keeping your promise:)

Will you be kind and add UPGRADE instructions to your MOD?

Also, version 1.0.2 worked flawlessly in vb3.8 beta 3. Would you like me to test the new version on beta 4 and post the results here?

Quote:

Originally Posted by ReCom (Post 1673853)
Version 1.1.0 is up.

Starting from this version Gender Bit has been broken up into two products: Gender Bit and Gender Bit Extension.

Gender Bit handles the core functions and gender symbols (original purpose).

Gender Bit Extension adds the support to display gender-aware default avatars and profile pictures. You do not have to install this product if you just want the gender symbols. Requires Gender Bit to be installed first.


ReCom 11-27-2008 08:40 AM

Quote:

Originally Posted by shlomot (Post 1673869)
Will you be kind and add UPGRADE instructions to your MOD?

The upgrade procedure is the same as most other mods you found here: upload the files, import the product xml (make sure the "override" checkbox is ticked) and check the new settings. Shouldn't be too hard.
Quote:

Originally Posted by shlomot (Post 1673869)
Also, version 1.0.2 worked flawlessly in vb3.8 beta 3. Would you like me to test the new version on beta 4 and post the results here?

Sure, thanks. I have not installed vB 3.8.x beta on my forum so I only tested it on vb 3.7.4. The new version has a lot more plugins than before maybe one or two plugins do not work in vb 3.8.x if the hook locations changed. Thanks again for your support.

p/s: hope the separation between gender symbols portion and default avatars/pics portion does not bother you much. as you would notice if you install both Gender Bit and the Extension products, the number of plugins doubles with both products are installed compared to Gender Bit only. By separating them, those who are not interested with the default avatars will not have to have the unutilized plugins, which do affect performance in the long run.

Tauhid 11-27-2008 09:49 PM

this is such a worthy mod, after switching from IPB to VB, the genders were all gone, so I had to install this mod. thank you OP.

shlomot 11-28-2008 03:35 AM

The new version 1.1 and the avatar/profile picture extension also work flawlessly in vb3.8 beta 3 & 4.

Also, this is one of the better planned and wisely implemented mods I have ever used. I'm thrilled to have ReCom decided to share is professional experties with the rest of us.

shlomot 11-28-2008 04:33 AM

I have found a few glitches in vb3.8 (never installed on vb3.7.x):
  1. In the "Friends" block on member profile - it shows members pictures instead of avatars, with the image width set to avatar max width.
  2. When viewing a member profile when the visitor belongs to a user group that has no permission to view member profile pictures, it displays default picture, instead of not displaying anything at all.

ReCom 11-28-2008 04:52 AM

Quote:

Originally Posted by shlomot (Post 1674389)
In the "Friends" block on member profile - it shows members pictures instead of avatars.

Weird because the plugin code outputs the "unknown_male.gif" or "unknown_female.gif':
PHP Code:

if (!empty($gender) AND $user['avatarurl'] == "$stylevar[imgdir_misc]/unknown.gif" AND ($this->registry->options['genderbit_loc_avatars'] & $this->registry->options['genderbit_loc']['profile']) != 0)
{
  
$user['avatarurl'] = $this->registry->options['genderbit_imgdir']."/unknown_$gender.gif";


Since gender-aware default profile pictures are "unknown_pic_male.gif" or "unknown_pic_female.gif' it's hard to imagine how the plugin picks the default profile pictures over the default avatars in vb 3.8.
Quote:

Originally Posted by shlomot (Post 1674389)
When viewing a member profile while NOT logged in, it shows default picture even when member has their own. Avatar display, on the other hand is OK.

It's because usergroup "Unregistered / Not Logged In" does not have permission to view profile pictures so vBulletin original code does not output the profile pictures (AdminCP > Usergroups > Usergroup Manager > Unregistered / Not Logged In > Edit > General Permissions > Can View Others' Profile Pictures). Gender Bit plugin detects it as "the user profile does not have a profile picture" and inject a default one. Seeking opinion here: will it make more sense if Gender Bit does not show the default profile picture to usergroups that do not have permission to view profile pictures (like before Gender Bit is installed)?

Thanks for testing Gender Bit on vBulletin 3.8 .. I don't think I will be installing 3.8 until at least RC version is out ..

shlomot 11-28-2008 05:54 AM

Another option for glitch #1 is that it does use the avatar picture but assigns wrong dimentions (even though wrong dimensions would distort the image and not cut it into half). Here is a sample URL in my ADULT site.

As to #2 - logic prevails:) Logically, the default picture should abide by the same rules of the game as a user-assigned one. I can dream, of course, about a third option where you give us the opportunity to display another picture variation when not allowed to view profile pictures. In my case I will put my site's logo with a diagonal message that encourages the visitor to register.

Quote:

Originally Posted by ReCom (Post 1674397)
Weird because the plugin code outputs the "unknown_male.gif" or "unknown_female.gif':
PHP Code:

if (!empty($gender) AND $user['avatarurl'] == "$stylevar[imgdir_misc]/unknown.gif" AND ($this->registry->options['genderbit_loc_avatars'] & $this->registry->options['genderbit_loc']['profile']) != 0)
{
  
$user['avatarurl'] = $this->registry->options['genderbit_imgdir']."/unknown_$gender.gif";


Since gender-aware default profile pictures are "unknown_pic_male.gif" or "unknown_pic_female.gif' it's hard to imagine how the plugin picks the default profile pictures over the default avatars in vb 3.8.

It's because usergroup "Unregistered / Not Logged In" does not have permission to view profile pictures so vBulletin original code does not output the profile pictures (AdminCP > Usergroups > Usergroup Manager > Unregistered / Not Logged In > Edit > General Permissions > Can View Others' Profile Pictures). Gender Bit plugin detects it as "the user profile does not have a profile picture" and inject a default one. Seeking opinion here: will it make more sense if Gender Bit does not show the default profile picture to usergroups that do not have permission to view profile pictures (like before Gender Bit is installed)?

Thanks for testing Gender Bit on vBulletin 3.8 .. I don't think I will be installing 3.8 until at least RC version is out ..


ReCom 11-28-2008 06:28 AM

Quote:

Originally Posted by shlomot (Post 1674409)
Another option for glitch #1 is that it does use the avatar picture but assigns wrong dimentions (even though wrong dimensions would distort the image and not cut it into half). Here is a sample URL in my ADULT site.

Well, because your default avatars are bigger than vbulletin buit-in dimension for each friend's avatar in the Friends box. Gender Bit don't and won't modify the built-in limit to avoid messing up the Friends box. I suggest you resize your default avatars to smaller dimension (vBulletin's default unknown.gif is 60x60 so better stick to that). p/s: you are bad for making me click that link :mad:
Quote:

Originally Posted by shlomot (Post 1674409)
As to #2 - logic prevails Logically, the default picture should abide by the same rules of the game as a user-assigned one.

Will add another setting in vBulletin Options in next version.
Quote:

Originally Posted by shlomot (Post 1674409)
I can dream, of course, about a third option where you give us the opportunity to display another picture variation when not allowed to view profile pictures. In my case I will put my site's logo with a diagonal message that encourages the visitor to register.

Maybe in next version Gender Bit will display unknown_pic_nopermission.gif to them ... or do you want unknown_pic_nopermission_male.gif and unknown_pic_nopermission_female.gif variations as well?

shlomot 11-29-2008 02:41 AM

Quote:

Originally Posted by ReCom (Post 1674422)
Well, because your default avatars are bigger than vbulletin buit-in dimension for each friend's avatar in the Friends box. Gender Bit don't and won't modify the built-in limit to avoid messing up the Friends box. I suggest you resize your default avatars to smaller dimension (vBulletin's default unknown.gif is 60x60 so better stick to that).

I see your point, but nonetheless, the friends block is displaying non-standard-size avatars just fine when they (the avatars) have been assigned manually.

Quote:

Originally Posted by ReCom (Post 1674422)
p/s: you are bad for making me click that link :mad:

So sorry. I would never try to trick you into that. This is why I stated that it is an adult site in bold and red text. Unfortunately, this is the only site yet where I have implemented your mod. But soon enough it will be implemented on the other PG forums.

Quote:

Originally Posted by ReCom (Post 1674422)
Will add another setting in vBulletin Options in next version. Maybe in next version Gender Bit will display unknown_pic_nopermission.gif to them ... or do you want unknown_pic_nopermission_male.gif and unknown_pic_nopermission_female.gif variations as well?

Thanks for your exceptional accommodation. It seems that a single unisex picture would be
enough yet gender-specific images will better follow your script's business logic; the user can always duplicate the same image across the genders.

cykelmyggen 11-29-2008 08:09 AM

I have a suspicion this doesn't work with the vBExperience mod. Havent been able to make it show anywhere in postbit or elsewhere...:( Checked all the image paths and settings with no luck so far.


All times are GMT. The time now is 09:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01136 seconds
  • Memory Usage 1,791KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete