coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: lurkalot on July 20, 2008, 05:55:58 PM

Title: [Solved]: Number of comments, and image title?
Post by: lurkalot on July 20, 2008, 05:55:58 PM
Hi all,

I'm running SMF 1.1.5 / Tinyportal 0.9.8, bridged with Coppermine 1.4.18, and currently using coppermineFetch to pull images on to my front page (Latest gallery images).  I have searched but not found the answer.

Can someone tell me what code I need to show the number of comments, and the image title under each thumb? please.  So far I have it showing who uploaded the pic, and the number of views.  Code I'm using as follows, in a center block for tinyportal.


echo "<center>";
chdir("../gallery/cpmfetch/");
include "cpmfetch.php";                   
$objCpm = new cpm();
$options = array("imageheight"=>"75","subtitle" => "<center> {{pHits}} Views <center> <FONT color=#ff0000 size=2>Image By</FONT></STRONG> <br> {{pOwner_name}}</center>");
$objCpm->cpm_viewLastAddedMedia(2,4,$options,$filter);
$objCpm->cpm_close();
chdir("../../");
echo '<a href="http://cameracraniums.com/gallery?action=gallery">View more latest images</a>';
echo "</center>";


Link to my site,  http://cameracraniums.com/
Title: Re: Number of comments, and image title?
Post by: lurkalot on July 20, 2008, 06:59:03 PM
OK, I found the answer to adding the title, so it's just the number of comments I need help with, thanks. ;)
Title: Re: [Solved]: Number of comments, and image title?
Post by: lurkalot on July 23, 2008, 08:42:14 AM
:(  I notice my thread has been marked as solved, but I still have a question outstanding. 

Title: Re: [Solved]: Number of comments, and image title?
Post by: Joachim Müller on July 23, 2008, 09:04:22 AM
You said that you have found an answer, that's why this thread was marked as "solved". I guess you shouldn't have posted two separate questions in one thread if this bothers you, as we have a strict "one question per thread" policy that you agreed to respect when signing up. Additionally, you failed to post your solution for the benefit of others, although this is the point of a support board. Behaving like this makes it less likely that supporters will be willing to look into your issues.
Title: Re: [Solved]: Number of comments, and image title?
Post by: lurkalot on July 23, 2008, 10:14:19 AM
Please except my apologies,

I simply forgot about the one question per thread rule, and tried to edit my post and remove one of the questions shortly after I found the solution, but couldn't :(

Here's the updated code I'm now using.  It is now displaying the "image title", "The number of views", and the "owners name"    Added to a center phpbox in Tinyportal,


echo "<center>";
chdir("../gallery/cpmfetch/");
include "cpmfetch.php";                   
$objCpm = new cpm();
$options = array("imageheight"=>"80","subtitle" => "<center>{{pTitle}} <br> {{pHits}} Views <center> <FONT color=#ff0000 size=2>Image By</FONT></STRONG> <br> {{pOwner_name}}</center>");
$objCpm->cpm_viewLastAddedMedia(2,4,$options,$filter);
$objCpm->cpm_close();
chdir("../../");
echo '<a href="http://cameracraniums.com/gallery?action=gallery">View more latest images</a>';
echo "</center>";


And the link to my site, http://cameracraniums.com/