Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For example, if I set under "User platforms" for users to be able to have Facebook, Google+ and LinkedIn then each and every user must enter all of those in order to save their settings. If they don't they get the form errors.
It is unrealistic to expect every user to have all of the types of social accounts that an admin. makes available to them.
In the case above here are the errors I got when I only had a FaceBook account to enter:
LinkedIn URL invalid.
Google+ URL invalid.
Comment | File | Size | Author |
---|---|---|---|
#14 | Screen Shot 2012-05-09 at 1.54.22 PM.png | 51.35 KB | bjlewis2 |
#14 | Screen Shot 2012-05-09 at 1.55.43 PM.png | 42.12 KB | bjlewis2 |
#7 | socialmedia.platforms.inc_.patch | 7.93 KB | pverrier |
#6 | socialmedia.platforms.inc3_.patch | 7.76 KB | Reg |
#2 | socialmedia.platforms.inc2_.patch | 7.86 KB | Reg |
Comments
Comment #1
Reg CreditAttribution: Reg commentedHere is a quick patch to get around this. I must admit in this case this one was a "quick and dirty" and only meant as a short term solution for whomever needs something now. Please don't take it as any sort of a "solid" fix, I didn't look closely enough at the code for that.
Comment #2
Reg CreditAttribution: Reg commentedThe one above produced some token errors. This one has those fixed (at least the ones I found.)
What I'm not sure how to do with a quick look is how to make the widgets that have blank data not show up so that you only see the widgets for which each user actually has a social account. If someone could add a patch for that it would terrific.
Comment #5
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedpatch doesn't apply cleanly.
git apply s*patch
error: www/cms/sites/all/modules/socialmedia/socialmedia.platforms.inc: No such file or directory
i think it should be
a/socialmedia/socialmedia.platforms.inc
b/socialmedia/socialmedia.platforms.inc
Comment #6
Reg CreditAttribution: Reg commentedI manually edited the patch to the paths you suggested. It also might meant to be something like:
a/sites/all/socialmedia/socialmedia.platforms.inc
b/sites/all//socialmedia/socialmedia.platforms.inc
or
a/socialmedia.platforms.inc
b/socialmedia.platforms.inc .
I have a more complicated than usual site structure with a multi-site installation and a lot of customization so I can't really reliably test a typical installation. Please try it now and if it doesn't work feel free to adjust the paths and then upload what works. Unless line three has some sort of hidden checksum built into it (which I doubt) it's only lines 1, 3 & 4 you need to change.
Comment #7
pverrier CreditAttribution: pverrier commentedHere's the patch for the current beta9 version of socialmedia.platforms.inc ; I've also modified the quantifiers for the regex making 'www.' optional (* used instead of ?).
Comment #8
MrPaulDriver CreditAttribution: MrPaulDriver commentedThis problem persists in Beta 11.
Is there any sign of a proper fix for this yet?
Comment #9
dddave CreditAttribution: dddave commentedTest if the patch applies and works and report back. That might speed things up...
Comment #10
MrPaulDriver CreditAttribution: MrPaulDriver commentedsorry, but I'm not up to speed on patching, Hopefully someone else can test.
Comment #11
dddave CreditAttribution: dddave commentedVery good tutorial about applying patches: http://drupal.org/node/620014
Comment #12
MrPaulDriver CreditAttribution: MrPaulDriver commentedThanks dddave, I'll give it a go.
Do you mean the same patch at #7?
Comment #13
dddave CreditAttribution: dddave commentedyup.
Comment #14
bjlewis2 CreditAttribution: bjlewis2 commentedWorks like a charm for allowing users to only enter the profiles they want.
However, any profiles not filled out still show, but just link to their profile on the site. Here are some pictures explaining what I mean:
The only profiles I filled in are Twitter and Facebook. I left everything else empty
All of the icons show. The empty ones link to my site profile page.
Can we update this so that only the filled in profiles are displayed?
Comment #15
Reg CreditAttribution: Reg commentedAgreed, it's a problem. When I submitted the original patch I mentioned that (comment). I was hoping someone who knew the module better would have a fix for that one.
Comment #16
dddave CreditAttribution: dddave commentedComment #17
chrowe CreditAttribution: chrowe commentedpatch in #7 worked for me
Comment #18
CPJS CreditAttribution: CPJS commentedProblem still there, in beta 11.
Comment #19
mrweiner CreditAttribution: mrweiner commentedAgreed, still present in beta 11. Changing priority to major, as I feel this compromises the main functionality of this portion of the module. I was going to leave it as normal, until I realized that this bug has been a posted issue since the beginning of the year. Hopefully this gets the maintainers of the module to realize the problem is a very important issue, instead of users attempting (and doing a great job so far, don't get me wrong) to incompletely patch up the problem.
Maintainers, thank you very much for the module, but please fix this.
Comment #20
Reg CreditAttribution: Reg commentedAgreed, at this point it's either apply user patches or simply not use it. In my case I am just not upgrading when the new betas come out so I don't have to redo the patches.
Comment #21
brentratliff CreditAttribution: brentratliff commentedI'm going to have to disable this module or come up with a patch if it's mandatory to fill in all profiles and/or they all display regardless of whether or not they are active. I agree this is a major release blocker that goes to the very core of the module. Is there any chance of getting the patch in #7 committed to dev while working on the widget display as a separate issue? I'm willing to take stab at the display issue after I get a chance to read the code.
Comment #22
mrweiner CreditAttribution: mrweiner commentedThis module was one of many that I tried when first trying to find a module to add social networks. Honestly, it was probably the worst, for this issue alone. I don't really remember what this module did that seemed so special, but I have since moved to using the Follow module instead. I haven't looked back for a second. If the maintainers don't care about this module, then why should we?
Comment #23
brentratliff CreditAttribution: brentratliff commentedI'm also now using the Follow module successfully. I will say as a module maintainer though, that I understand priorities of developers change and they probably have other pressing issues to take care of first. I know my modules could use some love.
Comment #24
mrweiner CreditAttribution: mrweiner commentedIt's not so much that there may be other problems that the developer needs to take care of. That, I completely understand. It's more of the fact that it has been an issue for 7 months, and a major issue for a month, and there's been no response from the maintainer. Especially since this module is "sponsored and developed" by a company, I at least expect a response saying that priorities have changed and that this module unfortunately won't receive the required updates until something changes. I don't know, maybe it's just me. Either way, it's probably unproductive to continue discussion about my beliefs on maintainer commitment. I just hope that something can be done about this issue for those who want to continue using it. :)
Comment #25
Reg CreditAttribution: Reg commentedPersonally I considered this critical when I raised this issue. I disable the user part of the module because for any number of users greater than one it's pretty much unusable.
Comment #26
TomDude48 CreditAttribution: TomDude48 commentedThe requirement has been removed in the latest push.