Gamer Profiles - PixelExit.com

Gamer Profiles - PixelExit.com 1.0.3

No permission to download
It is explained in the overview

Configure:
Set what icons to display and set permissions to view.
  1. ACP -> Users -> User Group Permissions
  2. ACP -> Options -> [PE] Gamer Profiles
  3. ACP -> Style Properties -> [PE] Gamer Profiles -> Settings
 
It is explained in the overview

Configure:
Set what icons to display and set permissions to view.
  1. ACP -> Users -> User Group Permissions
  2. ACP -> Options -> [PE] Gamer Profiles
  3. ACP -> Style Properties -> [PE] Gamer Profiles -> Settings

Thanks for this. Quick question - How can I do the tooltip and icon on the Contact Details page for the Social Media? Also, I have a custom field I'd like to work with this plugin, how can I do so?
 
@Steve F do you know if it's possible to use existing custom fields or at least transfer the data from them to yours? I already have PSN, XBox and Steam custom fields that users have filled in. I did try editing the field_id in the database on my test site but it didn't seem to work.

Also, would it be possible to keep the custom fields added by this add-on if it's ever uninstalled? The data could still be useful and they could always be removed manually from custom fields in the ACP if needed.
 
Thanks for this. Quick question - How can I do the tooltip and icon on the Contact Details page for the Social Media? Also, I have a custom field I'd like to work with this plugin, how can I do so?

I'll look into the Contact details page a bit for a future update, it is not really a simple edit. As for your custom field you would need to look at the "pe_gamer_profiles" template and see how the current ones are implemented.

Any way to get battle.net added in there? Or is there I quick way I can add it in?

Are profiles private or available on battle.net? Not familiar with it so not sure how hard it would be.

hello i cant seem to get the twitch logo to show in the message layout?

If you haven't figured this out, please read the resource overview again, it is all explained there. If your settings are correct it should show, if they don't show then it is possible a template mod is not applied in your style.

@Steve F do you know if it's possible to use existing custom fields or at least transfer the data from them to yours? I already have PSN, XBox and Steam custom fields that users have filled in. I did try editing the field_id in the database on my test site but it didn't seem to work.

Also, would it be possible to keep the custom fields added by this add-on if it's ever uninstalled? The data could still be useful and they could always be removed manually from custom fields in the ACP if needed.

I'm sure there is a query that could be run to copy the names over to the correct fields. Are these existing fields from a add-on?

Keeping the fields is possible, you would just need to remove the uninstall code from library/PixelExit/GamerProfiles/Install.php

Find this
PHP:
     public static function uninstall()
    {  
        $dw = XenForo_DataWriter::create('XenForo_DataWriter_UserField');
        $dw->setExistingData('steamUserProfile');
        $dw->delete();
      
        $dw = XenForo_DataWriter::create('XenForo_DataWriter_UserField');
        $dw->setExistingData('originUserProfile');
        $dw->delete();
      
        $dw = XenForo_DataWriter::create('XenForo_DataWriter_UserField');
        $dw->setExistingData('psnUserProfile');
        $dw->delete();
      
        $dw = XenForo_DataWriter::create('XenForo_DataWriter_UserField');
        $dw->setExistingData('xboxliveUserProfile');
        $dw->delete();
      
        $dw = XenForo_DataWriter::create('XenForo_DataWriter_UserField');
        $dw->setExistingData('twitchUserProfile');
        $dw->delete();
      
        $dw = XenForo_DataWriter::create('XenForo_DataWriter_UserField');
        $dw->setExistingData('youtubeUserProfile');
        $dw->delete();
      
        $dw = XenForo_DataWriter::create('XenForo_DataWriter_UserField');
        $dw->setExistingData('minecraftUserProfile');
        $dw->delete();
      
        $dw = XenForo_DataWriter::create('XenForo_DataWriter_UserField');
        $dw->setExistingData('legendsUserProfile');
        $dw->delete();
    }

Change it to this:
Code:
     public static function uninstall()
    {  

    }

Haven't tested the above, but it should work.
 
I'm sure there is a query that could be run to copy the names over to the correct fields. Are these existing fields from a add-on?
No, they are ones I created ages ago so that members could display their PSN/XBox/Steam IDs.
 
I must say, I really like this add-on and I'll be looking to implement it on my live site in the next few days. :) Currently I'm testing it on my dev site.

I hope you don't mind a few questions and comments:

Firstly, and in relation to this:
Any way to make this so that the social icons (Twitter, Facebook etc) will respect privacy settings if members have it set that their identities are only shown to "People You Follow Only"?
I think the privacy settings do need considering. I know there's a user group permission to set who can view the profiles in the postbit. However, on my site I want these to be visible to guests. The issue is that everyone on my site has their profiles set to members only. So basically members will either have to choose to share their PSN/XBox/Steam etc with everyone or not fill these in. If it's at all possible, having a tick box next to each one for users to check to show on the postbit if they wish but if they don't, they are still available on their profile to those who can see this.

Secondly, I notice that the Origin link when clicking on the Origin icon is origin://addfriend which I don't think is right?!

Thirdly, for Battlefield 4 there's a really nice site that allows for BF4 gamer cards to be displayed. http://bf4stats.com/graphics/player. Would it be possible add a separate option for BF4 and link it to a gamer card on this site? If so, as there are a lot of graphics (and ones that can be created by users themselves) would it be possible to specify in the ACP which BF4 gamer card to use?

Fourthly, I can get the gamer cards to appear on mobile by pressing and holding on the icon and then dismissing the "open in new tab" link. Is there any possibility that on tablets a simple tap can just display the gamer card rather than open the link to the site?

BTW I'm more than happy to pay/donate for the development of this add-on. As someone who runs a gaming community, something like this is very useful and I wouldn't expect get extras for nothing. :)
 
I think the privacy settings do need considering. I know there's a user group permission to set who can view the profiles in the postbit. However, on my site I want these to be visible to guests. The issue is that everyone on my site has their profiles set to members only. So basically members will either have to choose to share their PSN/XBox/Steam etc with everyone or not fill these in. If it's at all possible, having a tick box next to each one for users to check to show on the postbit if they wish but if they don't, they are still available on their profile to those who can see this.

Yes that is something I want to "fix" in the add-on. I submitted a bug report here for Identities shown in the message user info not following privacy settings. Not sure it is considered a bug, the params for that are not available to that template so it requires programming which is not my strong point but I'm sure I can figure it out eventually here. Was hoping that a fix could be in the core with the available params to see who can view the identities.

Secondly, I notice that the Origin link when clicking on the Origin icon is origin://addfriend which I don't think is right?!

Origin does not have a public facing profile, only through the Origin client, that I can tell. I added that instead of just linking it to a users forum profile page. If it is something that you do not find useful or intrusive I can add an option in the ACP. To allow users to decide I would need make this follow the Identities privacy settings or something along those lines.

Thirdly, for Battlefield 4 there's a really nice site that allows for BF4 gamer cards to be displayed. http://bf4stats.com/graphics/player. Would it be possible add a separate option for BF4 and link it to a gamer card on this site? If so, as there are a lot of graphics (and ones that can be created by users themselves) would it be possible to specify in the ACP which BF4 gamer card to use?

Going to have to look into this a bit more. Seems possible to do it as I have done the others, and a ACP option to display exactly what gamer card graphic should be doable as well.

The only thing is you first have to register your gamertag with them to have a card displayed. But I will look into it more but I do like this card below.

exile231.png


Fourthly, I can get the gamer cards to appear on mobile by pressing and holding on the icon and then dismissing the "open in new tab" link. Is there any possibility that on tablets a simple tap can just display the gamer card rather than open the link to the site?

Yea trying to get this compatible with mobile has been a pain for me. Getting the popup to come is fine but getting it to dismiss is where my problems is, still looking for a way to get this implemented on at least tablets.


So my top priorities for the add-on
  • Identities privacy throughout the add-on
  • Come up with some sort of caching for the gamer cards so they are not loaded on every page load.
I have some of the smaller things fixed (Resource tab issue, empty space in message user info when no icons are displayed) and cleaned up the templates a good bit. Testing it out now and hope to release it sometime this week.

The other bigger issues described above will obviously come eventually but can't give a time.
 
@Steve F something else I've just noticed is the order that the icons appear in. I changed the display order in the custom fields so that PSN was 1, XBox was 2 and Steam was 3. However, Steam still appears first in the icons. On my site, the most important one is PSN as we are a PlayStation gaming community. Would it be possible for the icon order to respect the order set in the custom fields?
 
The ordering isn't retained in the template, it controls the ACP user field ordering and only the Identities section in the users profile.

I'll look at a possible option otherwise you can edit the template and move PSN to the top. Hopefully as time goes on and I learn more about PHP programming this will be a more robust add-on but currently it was solely meant for displaying a simple icon.
 
Small fix - Facebook icon wasn't using Tooltip:

Find the template pe_gamer_profiles -> Find;
Code:
    <!-- Facebook Profile -->

and replace the entire Facebook code with;

Code:
    <!-- Facebook Profile -->
    <xen:if is="{$user.customFields.facebook} AND @facebookUserProfile">
        <div class="iconContainer">
            <a href="https://www.facebook.com/{$user.customFields.facebook}" class="gamerIcon facebookIcon Tooltip" data-offsetX="-4" title="Facebook: {$user.customFields.facebook}"></a>
        </div>
    </xen:if>
 
I checked a couple things and can't get any type of warning. Has anyone else had this issue?
No one else has complained no, my co-admin just told me that he's complained about similar things on other forums as well so i'm going to assume that it's something on his end triggering this.
 
Believe it is a false positive. I ordered some new IPs about a week ago and moved the card domain to one of those. It's possible the IP itself was flagged before. Malware Bytes unfortunately gives no reason as to why the site was blocked. I've tried contacting them to resolve this.
 
Back
Top Bottom