We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Member Form Customiser 1.1.0 - Remove fields for specific member groups

Development and Programming

Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Hey guys,

I have just uploaded LG Member Form Customiser 1.1.0 which includes a great new feature. Now it is possible to remove fields on a per group basis.

So you might have a group for gold members and a group for silver members.

Gold members might be allowed to add a website, bio and phone number to their profiles but silver members can only add a short bio. Previously every member would see every field. LG Member Form Customiser now solves this issue!

Check out LG Member Form Customiser on my site.

Updates since version 1.0.4:

  • Tweaked update checking
  • Added ability to hide different fields for different member groups
  • New extension settings form
  • Removed local jquery script now uses google’s ajax api jquery library hosting
       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.
Removed local jquery script now uses google’s ajax api jquery library hosting

Leevi - if others were to incorporate the same thing in to Extensions (say I’m also calling jQuery from Google in my extension) is it smart enough to not request the same script twice? If it’s easier to just use Google’s ajax API to call scripts for extensions, I’d rather just do that - I assume it would me for fewer settings in the CP for the end user.

I’m going to crack this open to see what you’ve done. As I’ve done many, many times in the past 😊

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Hey Ryan,

Multiple calls o the same script return a 304 not modified which means the browser won’t download them again.

You can see my firebug output attached for the following code:

<html>
<head>








    $(document).ready(function() {
        console.log($('#red'));
    });

</head>
<body>
    <div id='red'>Red</div>
</body>
</html>

So in short… if everyone uses the same jquery call things should be sped up quite dramatically

       
aircrash's avatar
aircrash
293 posts
17 years ago
aircrash's avatar aircrash

Hi Leevi,

I just tried to upgrade to the new version, and when I upload the new file I get this at the top of every page in the CP:

Notice: Undefined index: 1 in /path/to/system/extensions/ext.lg_mf_customiser.php on line 135

and when I go to the settings page, all of my settings from the previous version are gone. If I revert back to 1.0.4, everything is fine, and all of the settings come back..

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Oops… guess I forgot to mention n my docs about upgrading.

You will need to unistall the existing extension and reinstall the new version. Make sure you take a note of your settings as these will be deleted.

Cheers

       
melissajc's avatar
melissajc
86 posts
17 years ago
melissajc's avatar melissajc

This is perfect!!! Thank you so much! This does exactly what I need.

I did run into one issue though. I installed the extension and all seemed to go fine with that. But, if I logout and try to log back in, I get a blank page instead of seeing the CP home page. However, I am definitely logged into EE. If I use a bookmarked link to the admin area or the templates section, I can see the EE control panel. So it is just the initial login that seems to hate me :cheese:

Any ideas?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Your server might not support the php fopen function which means the extension cannot check for an update. I’m trying to figure out the best way to handle this as there obviously shouldn’t be a blank page.

If you can find the url to your extension settings you will need to turn off this feature. If not just remove the extension from the db and you should be good to re-install.

Cheers

       
melissajc's avatar
melissajc
86 posts
17 years ago
melissajc's avatar melissajc

Thanks Leevi. I was able to get to the extensions and disable it. It appears that only the CP Home Page is unavailable but every other page works when the extension is installed.

I’m checking with my client to find out about fopen. I disabled the “check for update” to NO in the extension settings but the same issue appears.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Hmm thats interesting… I’ll try and check it out today… I’m guessing this error appeared when you installed LG Member Form Customiser. Did you enable anything else at the same time?

       
melissajc's avatar
melissajc
86 posts
17 years ago
melissajc's avatar melissajc

yes that is when it appeared and I have not installed anything else. Thanks Leevi. I appreciate your assistance with this.

My client came back with: “allow_url_fopen” is “on” - not sure if that is the same as fopen function

       
aircrash's avatar
aircrash
293 posts
17 years ago
aircrash's avatar aircrash

Hi Leevi, I re-installed, and everything seems to be working fine, but now I’m getting this at the top of my CP homepage:

Array
(
    [0] => LG Member Form Customiser Checking $SESS
    [1] => LG Member Form Customiser Checking $SESS: FAIL
    [2] => LG Member Form Customiser Checking cache
    [3] => LG Member Form Customiser Checking cache: FAIL
    [4] => LG Member Form Customiser Checking Site
    [5] => LG Member Form Customiser Checking Site: FAIL
)
       
wecreateyou's avatar
wecreateyou
86 posts
17 years ago
wecreateyou's avatar wecreateyou
I did run into one issue though. I installed the extension and all seemed to go fine with that. But, if I logout and try to log back in, I get a blank page instead of seeing the CP home page. However, I am definitely logged into EE. If I use a bookmarked link to the admin area or the templates section, I can see the EE control panel. So it is just the initial login that seems to hate me

This is what happens to me when I try to use LG SAEF File Upload Thought it might help to know this so I put it here. Sorry if it doesn’t.

       
Gabriel's avatar
Gabriel
130 posts
16 years ago
Gabriel's avatar Gabriel

LG Member Form Customiser v1.1.0

Bugs:

ext.lg_mf_customiser.php - Line 349 - Sentence “LG Member Form customiser can call home and check for recent updates if you allow it.” could it be in the language.

lang.lg_mf_customiser.php - “group_rules_instructions” variable is twice (line 30 and 36). - line 30 - word “rules” is wrote as “rles”

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Thanks for the report Gabriel.. I’ll fix it for the next release.

       
kpow's avatar
kpow
22 posts
16 years ago
kpow's avatar kpow
Hi Leevi, I re-installed, and everything seems to be working fine, but now I’m getting this at the top of my CP homepage:
Array
(
    [0] => LG Member Form Customiser Checking $SESS
    [1] => LG Member Form Customiser Checking $SESS: FAIL
    [2] => LG Member Form Customiser Checking cache
    [3] => LG Member Form Customiser Checking cache: FAIL
    [4] => LG Member Form Customiser Checking Site
    [5] => LG Member Form Customiser Checking Site: FAIL
)

I got the same error as he described. anyone has found a fix for such? thanks in advance,

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.