Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


Change/Add profile picture -no option for members

OnlyAnExcuseOnlyAnExcuse ✭✭
edited March 2012 in Questions

My Vanilla install allows me (keyholder) to change my picture. However it doesn't allow members to do this.

Is there a permission which gives the users an option to change their picture?

Members signing up via Twitter adopt the avatar from there and can't change their picture either. There isn't an option on their profile.

Best Answer

«1

Answers

  • Thanks 422 - but which one do I check? is it Profile > Edit?

  • 422422 Developer MVP

    actually I apologise this should be set by default.

    422 Real Estate Australia , now open Check it out

  • I thought so - did a forum import (BBPress) and all permissions were wiped so had to redo them.

    Maybe that caused it? I'll try hunt for a fix.

  • 422422 Developer MVP

    Your uploads folder is chmod 777 isnt it? Must be if you can change your avatar

    422 Real Estate Australia , now open Check it out

  • yep, no issues with the uploads folder it's 777.

  • jspautschjspautsch Themester ✭✭

    Can regular users edit anything else in their profile? There should be an Edit my Account link, Preferences, etc.

  • Yes, all options are there except Add/Change picture.

    Here's a screenshot with my profile (keyholder) and one of my test account (as regular member)

  • 422422 Developer MVP

    Has that MEMBER authenticated their account by clicking in email ? to Activate ??

    422 Real Estate Australia , now open Check it out

  • 422422 Developer MVP

    Also, perhaps disable ALL plugins and test until you find out the issue. I am betting its whosonline issue ( clash )

    422 Real Estate Australia , now open Check it out

  • Everyone's had to reset password to get access to the forum. That account in particular followed that route as it was transferred over.

    I have the Gravatar plugin active and that profile does have one assigned. It appears when posting, but not in profile.

    Another member has no gravatar on hers and she can't add an avatar either, neither can a profile I set up using Twitter to register.

    I disabled Who's Online and Gravatar but the issue remained (on my test account). I'll try the others.

    Funnily enough, the 'erralogin' account has a dashboard link, is it supposed to? it doesn't have a mod/admin/keyholder status.

    One thread here said to delete 'userpics' folder from the uploads directory. i did, problem remained...

  • 422422 Developer MVP

    Does user have confirm email ticked , under users in dashboard.

    Just a stab in the dark now

    422 Real Estate Australia , now open Check it out

  • I don't see 'confirm email' in the users area. The table of users says "Username Email Roles First Visit Last Visit Last IP Options"

    That said I do have the option to change users' pics for them.

  • 422422 Developer MVP

    422 Real Estate Australia , now open Check it out

  • Roles column just has the Member or other there. Blurred out IP and emails.

  • 422422 Developer MVP

    Me thinks you have a db column missing or malfunctioned during transport of users to new forum.

    @x00 is probably best suited to answer this

    422 Real Estate Australia , now open Check it out

  • Magic. Hopefully he'll know a wee bit more but much thanks to you. I'll set up another vanilla forum and have a look at the database and see if I can notice any differences.

    422
  • 422422 Developer MVP
    edited March 2012

    If its any benefit.

    We upload ZIP to our filemanager in cPanel. ( Once only Job )

    Then go in via cPanel > Filemanager > Unzip the forumzip eg vanilla_2.0.1.82.zip

    Then setup dB

    Then via ftp, change name of unzipped Forum Folder, to whatever. Do config stuff, and voila.

    I can roll off hundreds of forums an hour if I want. Makes life much easier for doing dev work

    422 Real Estate Australia , now open Check it out

  • Cheers - shouldn't take too long to set one up. I do that way too as it's far quicker to unzip on server than load folder of hundreds of files up.

  • OnlyAnExcuseOnlyAnExcuse ✭✭
    edited March 2012

    In fact sorry, edited again. Was talking mince. Looking to see what's what here.

  • 422422 Developer MVP
    edited March 2012

    I reckon your on the right track.

    422 Real Estate Australia , now open Check it out

  • OnlyAnExcuseOnlyAnExcuse ✭✭
    edited March 2012

    Right, I can see that when I moved the users in, all the roles were reset. i had to edit these to make them 'normal' again and grant them all permissions.

    What if I take the 'standard' roles from the 'new' dB I made from the fresh install, and overwrote the ones on the site with them (the ones which were wiped)?

    There's a clear difference in them in the database as shown in SS below.

    Only thing holding me back is the 'fresh' install doesn't have a keyholder role? I assume that was a role from conversion where I had to name my admin account.

    I could do this by SQL. Just have to brush up on it. lol - or export it and choose the options to write, if I remember right.

  • 422422 Developer MVP

    My sql skills are very limited. Send x00 a message, or Todd , Tim or Lincoln.

    422 Real Estate Australia , now open Check it out

  • Will do. Used SQL to replace roles with default ones. All members now don't have a role, there was a way to fix that and had used it before - still can't find it in the forums but will. Still, if I make a user a 'member' they still can't add/change photo...

    @x00 can you shed any light on this?

  • 422422 Developer MVP

    You have got curl enabled ?

    422 Real Estate Australia , now open Check it out

  • Used method in this link: http://vanillaforums.org/discussion/18042

    To assign all users as 'members' but still not able to add a picture.

    I'll check now, i'm pretty certain it is.

  • 422422 Developer MVP
    edited March 2012

    userpics is writeable ?

    in db for GDN_User what is in photo column for your users ? just null ?

    SHould be set at: Photo varchar(255)

    422 Real Estate Australia , now open Check it out

  • OnlyAnExcuseOnlyAnExcuse ✭✭
    edited March 2012

    yes - all of them are 'null' except mines, which has the file of my avatar

    is that what i'd replace 'null' with, 'Photo varchar(255)'? or just 'varchar(255)'

  • OnlyAnExcuseOnlyAnExcuse ✭✭
    edited March 2012

    My SQL is rustier than the Titanic's hull, would this query do the job?

    UPDATE GDN_User SET Photo = REPLACE(Photo, 'NULL', 'varchar(255)')

    Edit - it doesn't work. i've tried putting Photo varchar(255) in to the Photo field of that profile in the database (replacing NULL) and it shows an image (well, an image which can't be displayed in Internet Explorer, with red cross) but still no option to alter.

    It seems to think that's an image path, as I checked the image source.

  • UnderDogUnderDog Moderator

    Look at the contents of the "photo" field in the "GDN_User" table of a user that has a working foto.

    Compare those contents to the field of a user that has the non-working foto

    You will probably see that the contents of the non-working foto is exactly the text 'varchar(255)' and that it should be something else, for example 'onlyanexcuse.jpg'

    Figure out exactly what you want to do and it will be easily fixable, but from what I can see in this thread I cannot help you yet.

    By the way : varchar(255) is a fieldtype and the length of that fieldtype, it's not something you want to put in a database field ('Photo'), because that does not make sense.

«1
Sign In or Register to comment.