Advertisement:

Author Topic: [Updated Plugin] Upload Profile Picture  (Read 147139 times)

mkmobi

  • Full Member
  • ***
  • Posts: 119
Re: [New Plugin] Upload Profile Picture
« Reply #15 on: February 20, 2012, 03:41:42 pm »
Please help me this plugin is not working in my account
i m using Osclass 2.3.5 (bcute)

Jesse

  • Hero Member
  • *****
  • Posts: 631
  • Out of my mind, back in 5 minutes
Re: [New Plugin] Upload Profile Picture
« Reply #16 on: February 20, 2012, 04:30:03 pm »
mkmobi,

What's not working for you? Is anything working? What code are you using? Where have you placed the code?

mkmobi

  • Full Member
  • ***
  • Posts: 119
Re: [New Plugin] Upload Profile Picture
« Reply #17 on: February 25, 2012, 12:40:33 pm »
Hi Jesse,

I've done my modification so that I can change in admin site the picture for the users I want a picture shown...


I'll write it here if someone needs to do it.  (Surely not the best way to do it.. but it works)

1step:  install the orginal plugin (from Jesse)
2step:  rename (or delete)  the  'no_picture.jpg' in the plugin directory
3step:  in the plugin directory edit the file index.php and search line 61,
              replace           $user_id =.....         with              $user_id =   osc_user_id ();
4step:  delete line         73                    if( osc_is_web_user_logged_in() ) {     
            and delete line   89                    } //if logged-in
5step:  edit     item.php (in folder of your theme)   
             and write       <?php profile_picture_show(); ?>     (Like asked in the original plugin)
6step:  in the folded   ?example.com?/oc-admin/themes/modern/users   
            edit the file     frm.php
            and place after the  text     </form>      this text:         <?php profile_picture_upload(); ?>


EVERYTIME BACKUP YOUR ORIGINAL FILES BEFORE CHANGING THEM

(THIS IS NOT THE BEST WAY TO DO IT, IF YOU DON'T NEED IT, THAN LET THE PLUGIN FROM JESSE IN ORIGINAL - IS BETTER FOR FUTURE UPDATES)


kind regards



I want to add this plugin in my osclass 2.3.5(Bcute) theme

but its not working

Plzzzz help me

seven

  • Jr. Member
  • **
  • Posts: 73
Re: [New Plugin] Upload Profile Picture
« Reply #18 on: February 25, 2012, 12:51:26 pm »
Hi mkmobi,

for install the original plugin you simple need to DOWNLOAD it and use the Help in plugin to configure.
Use plugin for Jesse without modification
« Last Edit: February 25, 2012, 01:25:28 pm by seven »

mkmobi

  • Full Member
  • ***
  • Posts: 119
Re: [New Plugin] Upload Profile Picture
« Reply #19 on: February 25, 2012, 12:57:57 pm »
Hi all,

Here's a simple plugin that will upload a picture and display it on the profile page, or where ever you'd like.

1) Download and install the plugin

2) Place this code on the theme page, user-profile.php - this will allow users to upload their profile picture
Code: [Select]
<?php profile_picture_upload(); ?>
3) Place this code on pages you wish to display the profile picture, including user-public-profile.php and item.php
Code: [Select]
<?php profile_picture_show(); ?>
That's it.

This is a no-frills plugin, meaning it doesn't do anything but upload and display. The uploaded files are NOT re-sized, but are limited to file size (set at 500kb initially, you can change that).

You'll probably want to edit the file index.php within the plugin folder. There are several fields you can edit, including the display width of the picture.




Its not working in bcute-os-2.3.5
help me

seven

  • Jr. Member
  • **
  • Posts: 73
Re: [New Plugin] Upload Profile Picture
« Reply #20 on: February 25, 2012, 01:26:56 pm »
when wou install the plugin, does it show that the plugin is right installed or it shows there was a problem with install?

Jesse

  • Hero Member
  • *****
  • Posts: 631
  • Out of my mind, back in 5 minutes
Re: [New Plugin] Upload Profile Picture
« Reply #21 on: February 25, 2012, 06:02:22 pm »
mkmobi,

This plugin was designed using OSClass 2.3.5 and also using the Bcute theme.... so I KNOW it works. You keep saying it's not working... what do you mean? What's not working exactly??? Is anything showing up? Did you install the plugin first? Did it show the plugin installed successfully? Did you place the the required code functions in the proper places as directed?

morvy

  • Full Member
  • ***
  • Posts: 103
  • always dissatisfied
Re: [New Plugin] Upload Profile Picture
« Reply #22 on: February 27, 2012, 05:46:08 pm »
working perfectly for me.. without any issues, I've just modified it to save pictures in oc-content/uploads/avatars/ and translated for my site

seven

  • Jr. Member
  • **
  • Posts: 73
Re: [New Plugin] Upload Profile Picture
« Reply #23 on: February 27, 2012, 06:19:12 pm »
Hi, I've just tested on my local test page with original 2.3.5 / bcute Theme and with original Plugin from Jesse.
It's doing what it should do..

Luca

  • Hero Member
  • *****
  • Posts: 584
  • CentOs 6.4 - Virtualmin - OSC 3.0 - Custom Theme
Re: [New Plugin] Upload Profile Picture
« Reply #24 on: March 31, 2012, 05:24:04 pm »
@Jesse

Nice plugin, thank you.

I've found a bug:

index.php on line 118:

Code: [Select]
echo '<meta http-equiv="refresh" content="0; ,URL='.$url.'">';
not redirecting properly (there is that extra comma)

Should be

Code: [Select]
echo '<meta http-equiv="refresh" content="0; url='.$url.'">';
Thanks,

luca

Whitelotus

  • Jr. Member
  • **
  • Posts: 71
Re: [New Plugin] Upload Profile Picture
« Reply #25 on: April 02, 2012, 07:08:14 am »
This is an awesome plugin. If you want the profile picture to show on the contact form of the publisher, add this code <?php profile_picture_show(); ?> on line 208 of the item.php file.

When done, the image appears right above the publishers name.

ferdgua

  • Full Member
  • ***
  • Posts: 158
Re: [New Plugin] Upload Profile Picture
« Reply #26 on: April 02, 2012, 07:41:36 pm »
But can this plugin work on bcute 2.2.3 ?
On my web site it doesn't send the pic
 has Someone this plugin active for seeing the dir and name of image ?
« Last Edit: April 03, 2012, 03:16:14 pm by ferdgua »

chofi

  • Full Member
  • ***
  • Posts: 211
Re: [New Plugin] Upload Profile Picture
« Reply #27 on: April 15, 2012, 04:37:15 am »
hi all

As I can add profile picture thumbnail supertoolbar?

Chofi

Whitelotus

  • Jr. Member
  • **
  • Posts: 71
Re: [New Plugin] Upload Profile Picture
« Reply #28 on: April 25, 2012, 01:47:04 pm »
When would there be an update to this plugin? I would like to see size reduction or size specification for the profile picture. Some profile pictures do alter the orientation of the webpages. From the dashboard down to the item display. Looking forward to this.

Jesse

  • Hero Member
  • *****
  • Posts: 631
  • Out of my mind, back in 5 minutes
Re: [New Plugin] Upload Profile Picture
« Reply #29 on: April 26, 2012, 11:14:13 pm »
Whitelotus,

I've not been able to do any OSClass related work lately, and it may be some time before I can get "back" to work. Users are welcome to make any changes to the plugins they wish and post them here for all to use.

Although, hopefully this specific feature will be incorporated into OSClass in the future, so no plugin will be required.