coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: flowmo on August 09, 2007, 12:27:29 AM

Title: Last uploads in phpbb profile
Post by: flowmo on August 09, 2007, 12:27:29 AM
http://forum.emobucket.com/member4.html

I finally got user uploads and comments working using cpmfetch on phpbb...

if you are having trouble doing this, shoot me an email and I'll walk you through doing it
Title: Re: Last uploads in phpbb profile
Post by: flowmo on August 09, 2007, 08:30:10 AM
I used this method to get the username to pull from phpbb:

You HAVE to be using the extreme styles mod for phpbb , and I also include
  include "../cpmfetch/cpmfetch.php";
in line 24 of usercp_viewprofile.php so i only have to include it once


<!-- PHP -->
$usernamed = $this->vars['USERNAME'];
$options = array(
"imageStyle" => "gensmall2" );
  $objCpm = new cpm("../cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMediaFrom("owner=$usernamed",1,4,$options);
  $objCpm->cpm_close();
<!-- ENDPHP -->


that code should work for you if you using extreme styles, if u haven't installed it it's very easy to install
Title: Re: Last uploads in phpbb profile
Post by: PirateZipp on September 05, 2007, 11:08:21 PM
Nice... doo you know how to use this in SMF?