Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Plugin request  (Read 3302 times)

0 Members and 1 Guest are viewing this topic.

chasfh

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Plugin request
« on: September 05, 2011, 08:35:45 pm »

Not sure if I'm in the right place, but I need a plugin to allow users to set and display an avatar on gallery comments. It needs to automatically include the uploaded avatar picture..
I already have the bbcodes plugin, which you can use to insert an image in a comment, but it would really help if the image was automatically inserted for the user.

Any chance anyone can help with this please?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Plugin request
« Reply #1 on: September 05, 2011, 08:40:13 pm »

Do you want to pay for this plugin? If so, we can move it to the freelancer board.
Logged

chasfh

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Plugin request
« Reply #2 on: September 06, 2011, 02:16:20 am »

I'd actually be more interested if someone could point me in the right direction for doing it myself. I have installed the forum plugin, and that uses avatars for the posts, which are also recorded on the database.
The question I have, is where do I start? I'm fairly comfortable with php and a little javascript, but I can't work out exactly which files I need to edit, and how to get that avatar to show next to the comments. It seems like it should be easy.
Are there any good tutorials on editing the files and the structure of the gallery files?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Plugin request
« Reply #3 on: September 06, 2011, 10:09:09 am »

It's not recommended to edit core files. Instead you should use the plugin or theme engine to add the avatar image.

The easiest way is probably the following. Copy the whole function theme_html_comments from the sample theme to your theme's theme.php file and add it to the content of $profile_lnk.
Logged

chasfh

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Plugin request
« Reply #4 on: September 06, 2011, 03:08:53 pm »

Okay, thanks, a good place to start.
Can't seem to get the page to grab the avatar that's stored in the table though. Probably me being a muppet, as it will load if I reference it directly, but not if I use the user id to get the right one for each user...

I'm sure I'll figure it out though, thanks for the pointers!
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.