forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: mahdi1234 on August 31, 2008, 08:09:47 pm

Title: "Last comments on my photos" view
Post by: mahdi1234 on August 31, 2008, 08:09:47 pm
Hi,

Similar to "Last uploaded file" and "Last comment", I'd like to add into user profile also option for "Last comments on my photos".

Would you have suggestion how to achieve this?

thanks,
mahdi
Title: Re: "Last comments on my photos" view
Post by: mahdi1234 on September 05, 2008, 12:10:42 pm
Hi,

could someone start me on this? If I understand correctly I would need to edit profile.php.

What's the right method to add new query there? Also I'm not familiar with SQL at all and would appreciate any pointers in this.

thanks a lot
Title: Re: "Last comments on my photos" view
Post by: Joachim Müller on September 05, 2008, 07:35:14 pm
It's possible if you code it. If nobody answered, nobody knows the solution out of the back of his head. You can't expect others to do your work, as it would require quite some effort to accomplish what you're asking for.
Title: Re: "Last comments on my photos" view
Post by: mahdi1234 on September 05, 2008, 07:50:24 pm
It's possible if you code it. If nobody answered, nobody knows the solution out of the back of his head. You can't expect others to do your work, as it would require quite some effort to accomplish what you're asking for.

Sure I understand; what I'm more asking is if someone familiar with current profile page could point me into logic where to start, I'm clueless in this.
Title: Re: "Last comments on my photos" view
Post by: Joachim Müller on September 06, 2008, 12:57:23 pm
The profile page is not the important place to look at, as you only need to add a link to it - that's trivial. The tricky thing isn't even the necessary edit of index.php, where you need to set up a new type of meta album to the case selector. The really complicated stuff is creating the corresponding function in include/functions.inc.php, where the actual logic of the whole thing needs to reside, with a proper sql query that needs to return the proper data. Coming up with that is not trivial, as it needs to take into account the permissions as well as the actual location within the category/album structure. That's rather complicated.
This being said: I mentioned above the three files that need editing. However, if you haven't been able to figure this out on your own, you probably don't have the needed skills to come up with a solution for your issue.
As I said above, I'm not going to code this for you, so basically you're on your own unless someone else is going to come up with a solution. You might as well consider hiring a coder if you don't have the needed skills.
Title: Re: "Last comments on my photos" view
Post by: mahdi1234 on September 18, 2008, 03:11:28 pm
Solved in http://forum.coppermine-gallery.net/index.php/topic,55227.0.html
Title: Re: "Last comments on my photos" view
Post by: Joachim Müller on September 18, 2008, 06:37:03 pm
Thanks for returning to this thread and resolving it.