Member Profiles

classic Classic list List threaded Threaded
104 messages Options
123456
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Pedro
Please, see now.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Harvey


Male and Female should be spelled out where you fill them in

Next to SEX: at the top Male should be capitalized, not "male" but "Male" or "Female"



Could we remove "My Nabble Applications" ?  Do I have to have that there?  Just let me know why it is there.



I'd like a little more padding around the update button. Maybe line it up with location or the box above it.

Sorry to be difficult.
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Pedro
Please, take a look now.
In order to remove "My Nabble Applications" you should edit authenticated_self_profile_header macro.
I can certainly keep doing these changes for you, but if you copy the code to your app and try to do it your self, it will be faster.
Feel free, to tell me what you think.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Harvey

I was asking you to make changes to avoid creating an override.  If I can edit the macro directly without an override that is great

(via mobile)

On Aug 8, 2013 8:35 PM, "Pedro &lt;Nabble&gt; [via Nabble Support]" <[hidden email]> wrote:
Please, take a look now.
In order to remove "My Nabble Applications" you should edit authenticated_self_profile_header macro.
I can certainly keep doing these changes for you, but if you copy the code to your app and try to do it your self, it will be faster.
Feel free, to tell me what you think.


If you reply to this email, your message will be added to the discussion below:
http://support.nabble.com/Member-Profiles-tp7583880p7585889.html
To unsubscribe from Member Profiles, click here.
NAML
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Pedro
The only override is at profile_header macro. The rest of the code are extra macros. You can paste it in your app as I did, creating two new files:
1 - extra_fields:
<translation><from>Registered</from><to>Joined</to></translation>

<macro name="extra_fields" requires="user,servlet">
    
    <style type="text/css">
        #extra_fields_form{
        color: purple;
        background-color: #EEEEEE }
        #extra_fields_form div, #extra_fields_form label{
        float: left;
        clear: both;
        border-radius: 10px;
        }
         #extra_fields_form div{
        margin-left: 10px;
        margin-top: 5px;
        }
        #extra_fields_form .sub_but{
        padding: 3px;
        margin: 3px 10px;
        }
        .clear{
        clear:both;
        }
        #extra_button{
        cursor: pointer;
        font-style:italic;
        }
    </style>
    
    <script type="text/javascript">
        $( document ).ready(function() {
        $("#extra_button").click(function () {
        $("#extra_fields_form").show("slow");
        });
        });
    </script>
    
    <n.set_local_user.this_user />
    <!-- Extra info -->    
    <n.if.is_submitted_form>        
        <then>
            <n.this_user.set_property name="sex" value="[n.get_parameter name='sex' /]" />
            <n.this_user.set_property name="location" value="[n.get_parameter name='location' /]" />
            <n.this_user.set_property name="age" value="[n.get_parameter name='age' /]" />
        </then>        
    </n.if.is_submitted_form>
    
     <n.this_user.list_extra_fields/>
</macro>

<macro name='list_extra_fields' requires='user'>
    <n.if.this_user.has_property name="sex">
        <then>
            <strong>Sex: </strong><n.this_user.get_property name="sex"/><br/>
        </then>
    </n.if.this_user.has_property>
    <n.if.this_user.has_property name="age">         
        <then>
            <strong>Age: </strong><n.this_user.get_property name="age"/><br/>
        </then>        
    </n.if.this_user.has_property>
    <n.if.this_user.has_property name="location">        
        <then>
            <strong>Location: </strong><n.this_user.get_property name="location"/>
        </then>        
    </n.if.this_user.has_property>

</macro>

<macro name="extra_fields_form">
    <br/>
    <span id="extra_button">Edit your profile</span>
    <hr/>
        <form style="display: none" id="extra_fields_form" method="post" action="">     
 
        <div>
            <label>Sex:</label>
            <div>
                <input type="radio" class='Male' name="sex" value="Male" />Male<br />
                <input type="radio" class='Female' name="sex" value="Female" />Female
            </div>
        </div>
        <br class='clear'/>
        <div>
            <label>Age:</label><div><input size='2' class='age' maxlength='2' type="text" name="age" pattern='[0-9]*' /></div>
        </div>
        <br class='clear'/>
        <div>
            <label>Location:</label><div><textarea class='location' maxlength='30'  name="location" ></textarea></div>
        </div>
        <br class='clear'/>
            <br/>
        <input class="sub_but"  type="submit" value="Update" />
        <br class='clear'/>
    </form>    

    <n.load_fields/>
</macro>

<macro name="load_fields">
    <n.if.this_user.has_property name="sex">
        <then>
            <script type='text/javascript'>
                $(document).ready(function(){
                var sexClassName = '<n.this_user.get_property name="sex"/>';
                var sexClass = $("."+sexClassName);
                sexClass[0].checked=true;
                })                
            </script>
        </then>
        </n.if.this_user.has_property>
     <n.if.this_user.has_property name="age">         
        <then>
            <script type='text/javascript'>
                $(document).ready(function(){
                var age = '<n.this_user.get_property name="age"/>';
                $(".age").val(age);               
                })                
            </script>            
        </then>        
    </n.if.this_user.has_property>
         <n.if.this_user.has_property name="location">        
        <then>
            <script type='text/javascript'>
                $(document).ready(function(){
                var location = '<n.this_user.get_property name="location"/>';
                $(".location").val(location);               
                })                
            </script>            
        </then>        
    </n.if.this_user.has_property>
</macro>
2 - profile_header (override) :
<override_macro name="profile_header" requires="user">
<n.set_local_user.this_user />
<n.block.>
    <div class="second-font shaded-bg-color rounded" style="font-size:170%;padding:.2em .5em;margin-left:.1em">
        <n.local_user.name/>
    </div>
    <table>
        <tr valign="top">
            <td><n.local_user.avatar size="big"/></td>
            <td style="width:100%;padding-left:.5em">
                <n.if.both condition1="[n.visitor.is_site_admin/]" condition2="[n.local_user.is_authenticated/]">
                    <then>
                        <strong>Email</strong>: <n.local_user.user_email/>
                    </then>
                </n.if.both>

                <n.if.local_user.is_banned>
                    <then>
                        <n.local_user.banned_label/>
                    </then>
                    <else>
                        <n.local_user.registration_label/>                       
                       <!-- <n.local_user.list_current_groups/> -->
                        
                        <n.local_user.extra_fields/>                      
                        
                        <n.if.not.local_user.is_deactivated>
                            <then.local_user.send_email_to_user_link/>
                        </n.if.not.local_user.is_deactivated>                        
                    </else>
                </n.if.local_user.is_banned>       
                <!-- If this is the profile of the visitor -->
                <n.if.visitor.equals.local_user>
                    <then>
                        <!-- if the user is authenticated -->
                        <n.if.local_user.is_authenticated>
                            <then>                                                           

                                <n.local_user.authenticated_self_profile_header/>
                                <n.local_user.extra_fields_form/>                               
                                
                            </then>
                            <else>
                                <div style="margin-top:.5em">
                                    <t><n.register_link.>Register now</n.register_link.> if you want to edit your profile, receive posts via email,control your starred items or have access to your global profile.</t>
                                </div>
                            </else>
                        </n.if.local_user.is_authenticated>
                    </then>
                    <else>
                        <n.if.visitor.can_manage_banned_users>
                            <then>
                                <div style="margin-top:.5em">
                                    <img src="/images/icon_blocked.png" class="image16" style="margin:0 1px"/>
                                    <n.if.local_user.is_banned>
                                        <then><a href="[n.local_user.unban_path/]"><t>Unban this user</t></a></then>
                                        <else><a href="[n.local_user.ban_path/]"><t>Ban this user</t></a></else>
                                    </n.if.local_user.is_banned>
                                </div>
                            </then>
                        </n.if.visitor.can_manage_banned_users>
                    </else>
                </n.if.visitor.equals.local_user>
            </td>
        </tr>
    </table>

</n.block.>

</override_macro>
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Harvey
In reply to this post by Harvey
Wow I had no idea it would take that much coding to do this.

Why does the CSS have to be in the macro?

I wonder how much all this custom stuff does to slow my forum down or make it less reliable.

I don't really know how to ad macros or where to put them. The last time I tried I brought the site down.

I'm still trying to figure out how to rename all the advertising macros I have.

HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Pedro
Harvey44 wrote
Why does the CSS have to be in the macro?
I doesn't have to be there, but I put every thing related to the extra fields at the same place to make it more clear.
Harvey44 wrote
I wonder how much all this custom stuff does to slow my forum down or make it less reliable.
I don't think it gonna make your site slower. We can try it and see what happens.
I can add it there for you.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Harvey
Do you guys think this feature has any benefit for other users? If so would you implement it differently?
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Pedro
I think there are other two forums that use this feature.
We don't have many users that had asked for it, so it's hard to say if it would be good for them.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Harvey
Lets try it as you have it.

Would it be easy to remove if I think that is best after a trial?
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Pedro
Can I add it in your forum?
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Harvey
Please.

Let me know when it is in, so I can look.


On Tue, Aug 27, 2013 at 6:13 PM, Pedro <Nabble> [via Nabble Support] <[hidden email]> wrote:
Can I add it in your forum?


If you reply to this email, your message will be added to the discussion below:
http://support.nabble.com/Member-Profiles-tp7583880p7586187.html
To unsubscribe from Member Profiles, click here.
NAML



--
"Like" us on Facebook: www.facebook.com/NYSkiBlog
Follow us on Twitter: http://twitter.com/nyskiblog
----------
Harvey Road: NYSkiBlog.com
NY Ski Forum: forum.NYSkiBlog.com
NY Ski Magazine: mag.NYSkiBlog.com
NY Ski Directory: directory.NYSkiBlog.com
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Pedro
Done.  Please, take a look.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Harvey

The edit your profile drop down won't dropdown on my droid.  Will try from my desktop in the morning.

Thanks.

(via mobile)

On Aug 27, 2013 11:06 PM, "Pedro &lt;Nabble&gt; [via Nabble Support]" <[hidden email]> wrote:
Done.  Please, take a look.


If you reply to this email, your message will be added to the discussion below:
http://support.nabble.com/Member-Profiles-tp7583880p7586193.html
To unsubscribe from Member Profiles, click here.
NAML
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Harvey
This is how it looks:



It doesn't seem to drop down on my phone.

Also I'd like to style it to match the colors and look of the rest of the forum.

Within profiile_header what are the parameters for:

background color
font color
line spacing
making the button round

Thanks!
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Harvey
Could we make it so that it just pulls styles from the CSS style sheet?

Then if I change my colors on the rest of the site I won't have to figure this out again.

Also I just realized that people ages change and they are unlikely to update the profile.  Anyway to enter date of birth and have it calculate age?  If that is too complicated I have another idea. Let me know.
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Harvey
Also I'd like to devise a solution if someone leaves a field blank.

Ideally we wouldn't display the field, or alternatively we could put in:

--

HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Pedro
In reply to this post by Harvey
The drop down is for web browsers, at your mobile it will be opened.
I will see what if can make it follow the site configuration.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Pedro
In reply to this post by Harvey
Harvey44 wrote
Could we make it so that it just pulls styles from the CSS style sheet?
Then if I change my colors on the rest of the site I won't have to figure this out again.
Now your background color is equal to your Shaded Background. If you don't like it, see your "Change appearance" and tell me which background color it should be like.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Member Profiles

Harvey
This post was updated on .
In reply to this post by Pedro
That does look more integrated. Did you set it inline or is it pulling from the CSS?

Pedro <Nabble> wrote
The drop down is for web browsers, at your mobile it will be opened.
It's not opening or opened on my droid. It says Edit your profile, but won't open.

Any feedback on the other issues:

Date of Birth
Button

Just wondering what is possible.

HTTPS Please!
123456