"Last comments on my photos" view "Last comments on my photos" view
 

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

Main Menu

"Last comments on my photos" view

Started by mahdi1234, August 31, 2008, 08:09:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mahdi1234

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

mahdi1234

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

Joachim Müller

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.

mahdi1234

Quote from: 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.

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.

Joachim Müller

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.


Joachim Müller

Thanks for returning to this thread and resolving it.