Hi all,
Is there anyone here who has some experience with PhpBB3 and CpmFetch?
I've been searching and reading high and low I can't seem to work out the answer to this small problem...
I'm adding CPMFetch to the User Profile page in PhpBB3 (in memberlist_view.html) so that it will display the latest images they've uploaded to the Coppermine gallery.
I've gotten as far as showing the last uploaded images for the currently logged-in user, but NOT for the user who's profile it is we're viewing...
This is the code that will show the currently logged-in user's images (ie: the user who's looking at the profile):
<!-- Show Gallery in Profile -->
<div class="panel bg2">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="column1">
<h3>GALLERY OF {USERNAME}</h3>
<dl class="details">
<dt>Latest Images</dt>
<dd>
<!-- PHP -->
$profile_name = $user->data['username'];
$options = array(
"imageStyle" => "style2" );
$objCpm = new cpm("../gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMediaFrom("owner=$profile_name",1,4,$options);
$objCpm->cpm_close();
<!-- ENDPHP -->
</dd>
</dl>
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
What do I need to change in the following code to get the username of the currently viewed profile?
$profile_name = $user->data['username'];
This line (below) gives the correct profile name, but I don't know how to pass it to the PHP...
<h3>GALLERY OF {USERNAME}</h3>
Thanks in advance for any help anyone can give!
Cheers!
Nic