Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Well the details you provide are sketchy, but I’d think the thing to do would be to use a custom template for your signup form so that the profile image field is getting the path to the image you uploaded (if you know what it is at that time) and saving it with the record when the signup form is submitted. This would require you temporarily change the profile image field to a hidden field so it won’t show up in the form.

    If you want to set the profile image after the record has been created, then you’ll have to plug your image URI into the profile image field value, accessing the database directly.

    These are just guesses how you might do it, I don’t know enough about your plan to be more specific.

    Thread Starter bmatth1

    (@bmatth1)

    I was thinking of hiding the image upload field, and the profile image display would pick up the default image (No-image.png). I would then go in and enter the link manually after the record is saved. Ideally, I would be able to reference this field in the admin section, without going into the database directly – however, this would be ok too.

    Plugin Author xnau webdesign

    (@xnau)

    You can’t do it in the admin because an image field is an upload field. It won’t let you just plug a value in. The rest of your plan would work, You don’t even need to include it in the signup form.

    Thread Starter bmatth1

    (@bmatth1)

    If I look into the database tables, which field is the image upload link? Is it the PHOTO field (text)?

    Plugin Author xnau webdesign

    (@xnau)

    In the main database table the column will be the name of your upload field, the record ID is the row. This table stores all the field values. Just put the absolute URI of your image in the correct column/id.

    Thread Starter bmatth1

    (@bmatth1)

    Would you be able to direct me to the line of code in the php file where the upload and assignment of the image link takes place? I am thinking the line of code could be changed to take the data from a field set up in the admin panel (URL link to the image).

    Plugin Author xnau webdesign

    (@xnau)

    There is a good possibility this won’t work, so I’m hesitant to send you down that road. I don’t generally provide support for modifying the plugin code.

    Thread Starter bmatth1

    (@bmatth1)

    ok – I am using phpadmin, and inserting the link and it works great! One more questions please – am I able to make the thumbnail larger and the original photo larger in the popup window that shows the image when you click on it?

    Thread Starter bmatth1

    (@bmatth1)

    Sorry – one more question. WHen someone clicks on the first name (linked to the profile), can that person be required to log in first before seeing the profile information?

    Plugin Author xnau webdesign

    (@xnau)

    Hi,

    Ok, the first question: the thumbnail size is controlled by the CSS, so you’ll need to take a look at that and create your own CSS rules to override the plugin CSS and get the size you want. The pop-up (lightbox) you get when clicked, just goes to the full-size image, so that all depends on the size of the image that is uploaded.

    So, second, I assume you know how to set up the link to the single record in the list display. The easiest way to make viewing the record require a login is to make the page with the single shortcode require a logged-in user to view. there are several ways to do this (using other plugins or WP templates), including showing a message to not-logged-in users that a login is required.

    If you want to do something like disable the link for not-logged-in users, that’s more difficult, and needs to be done with some PHP code in a custom template for the list shortcode.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Link for profile image’ is closed to new replies.