When i change the order to collect information and i edit the profile it's work but when i see the gamercards nothing change.

It's seems on Wii than games like Mario Kart and Super Smash Bros Brawl have a 12 digits code, they are use to play on Internet, so maybe a new feature for the module ?

Comments

pobster’s picture

That's odd, maybe I haven't committed something correctly - thanks I'll look at it tonight after I finish work.

Pobster

pobster’s picture

Oh ah, do you have page caching enabled? Maybe... Maybe try flushing your cache? I guess it's possible that the user view is a cached page (i.e. it seems to work fine for me!)

Pobster

MasterChief’s picture

When i am on the page to edit profile it's work well!

I just flush all caches but nothing change on profile page, i am using APK with panels for profiles, but i don't think it's change something.

MasterChief’s picture

pobster’s picture

Aha! That's the key, you're using Panels which takes the information from theme_gamertags_render_all not from gamertags_user 'view' op. I haven't addressed Panels yet... That was on my TODO list but I forgot to put it in the release notes ;o)

No worries, I'm on the case.

Pobster

MasterChief’s picture

Great so i will wait :)

Thanks for your fast answers.

pobster’s picture

Version: 6.x-2.70 » 6.x-2.71
Status: Active » Fixed

Well I was going to leave it till the weekend but seeing as you complemented me on my fastness - I've done it tonight! ;o)

Just a note, I've renamed 'gamertags_render_all' to 'gamertags_all' simply because now you're required to render the elements yourself if you're overriding the template file. It just made a little more sense grammatically!

Thanks,

Pobster

MasterChief’s picture

Great i will test this.

I think we are making the fastest answers on the site lol xD

pobster’s picture

Apologies, I completely glossed over your idea for including game IDs! Hmmm... I'm not sure?... There could thousands one day in the future! Maybe I'll consider adding a plugin which allows you to add your own game IDs, so there'd be an admin page and an automatically created template file or something? Dunno, for a later date maybe ;o)

Thanks,

Pobster

MasterChief’s picture

Hi pobster,

the check feature make a problem with PSN because if you don't activate your portable id on sony website (thanks Sony ...), you can't enter the gamertag even if it exists !!!

So we have 2 options :

#1 => A help description on the field to explain to the user than he must activate the Portable ID with a link to make this.

#2 => No check for PSN

For the Wii part, it's so bad they don't use a system as Xbox Live, a friend code by game it's not very friendly to use xD

pobster’s picture

Ah okay, another reason for me to despise Sony... Hmmm... Maybe I'll just output a warning rather than an actual error then. Thanks for the tip! I'm not entirely sure how to check for Xbox ones either, I'm currently only checking when you 'debunk M$' as both MS and Steam both return 'okay' statuses (http 200) when you search for an invalid gamertag :o( Not sure how to progress with this...

Pobster

pobster’s picture

Try using this for the time being;

if (!empty($psn_gamertag) && ($url = gamertags_return_url('playstation', $psn_gamertag, $edit['psn_region'])) && drupal_http_request($url)->code != 200) {
    drupal_set_message(t("Warning, either your Playstation gamertag doesn't exist (please check your spelling) or you haven't activated your profile."), 'error');
  }

Pobster

pobster’s picture

Version: 6.x-2.71 » 6.x-2.73

I put out a new release just now, it allows you to turn on/ off validation checking and also does the above thing with changing the form_set_error with a drupal_set_message - allowing a user to save a user ID when it doesn't actually exist/ isn't yet activated.

I'm a bit stumped with what to do now... I don't think it's possible to validate any of the others?...

Pobster

MasterChief’s picture

Hi pobster,

i just try the new release, now i can enter the gamertag when the Portable Id is not activated on PSN but it's just appears in this case in Panels "Playstation Network gamertag"

i think it will be better to see the gamertag enter by the user it will be more usefull.

Another idea, is it possible to personnalize the message, because with the message you haven't activate profile, i think the user don't understand and i would like too to translate this message.

pobster’s picture

Whilst that'd be the ideal solution, there's absolutely no way I can tell whether the Gamertag doesn't exist or just isn't activated.

If you want to find a code example which does this, I'll happily implement it?

Thanks,

Pobster

MasterChief’s picture

Hi pobster,

in effect i made a search to see the differents PS3 gamercards available and if you don't activate Portable Id On Sony Europe or US you can't use them.

So we can't have a solution to know if the gamertag doesn't exist or just not activated. (Thanks Sony...)

So the best solution for me it's :

Option1 => a description on the fields saying that the user need to activate his Portable Id with a link on Europe Sony Website and US Sony Website.

Option2 => A possibility to send the user on a custom web page with the procedure.

With this 2 options we can apply the check of PSN gamertag because if all users have activated their Portable Id and the result of checking is Gamertag doesn't exist, it's the good result !!!!

Give me your point of view on this.

Thanks,

MasterChief

pobster’s picture

Can you give me an example of a link to go to? Only I had a quick look previously and I couldn't see anything relating to activating your user profile online? I'll happily make the change if you've found somewhere to do this!

Thanks,

Pobster

MasterChief’s picture

Hi pobster,

sorry for the delay, i don't find a tutorial step by step to create PSN Portable ID, i found just videos on Youtube to do this.

So maybe the possibility to send the user on a custom link will be the better in this case, i will make one guide for this in the future.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

MasterChief’s picture

Status: Closed (fixed) » Active

Hi pobster, i discovered two problems :

the first is when no gamertags are entered, i have this error message :

warning: uasort() [function.uasort]: The argument should be an array in C:\wamp\www\mysite\sites\all\modules\gamertags\gamertags.module on line 435.

I don't want to have a message in this case.

The second problem is in views, the option "Show gamertag as text only
Only show the user input text for their gamertag ID, not their actual gamercard." stay unchecked even if i check it update and save, i am using views 3 dev release.

pobster’s picture

warning: uasort() [function.uasort]: The argument should be an array in C:\wamp\www\mysite\sites\all\modules\gamertags\gamertags.module on line 435.

Good spot! Fixed! ;o)

And apologies but I think the checkbox issue is with Views 3 not with Gamertags, I've just tested it on my local install and it appears to be fine? I'll certainly look into it at some point but I can't guarantee it'll be very soon as I'm at Drupalcon at the moment.

Thanks,

Pobster

pobster’s picture

Version: 6.x-2.73 » 6.x-2.74
Status: Active » Fixed

Obviously by my reply above, I mean I've tested it with Views 2 and it works ;o)

Thanks,

Pobster

MasterChief’s picture

Version: 6.x-2.74 » 6.x-2.73
Status: Fixed » Active

Thanks to you Pobster,

you have always very fast, i hope you will have fun at the DrupalCon, thanks again for your answer :)

pobster’s picture

Status: Active » Fixed

Pushed back to fixed - assume that assignment was an accident! ;o)

Thanks,

Pobster

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.