Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Plugin request  (Read 3759 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: 15764
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: 15764
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.021 seconds with 20 queries.