Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Last uploads in phpbb profile  (Read 4494 times)

0 Members and 1 Guest are viewing this topic.

flowmo

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Last uploads in phpbb profile
« 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
« Last Edit: August 09, 2007, 07:09:12 am by GauGau »
Logged

flowmo

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Last uploads in phpbb profile
« Reply #1 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
Code: [Select]
  include "../cpmfetch/cpmfetch.php";in line 24 of usercp_viewprofile.php so i only have to include it once

Code: [Select]
<!-- 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
Logged

PirateZipp

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 34
  • Hotimage.dk
    • HotImage
Re: Last uploads in phpbb profile
« Reply #2 on: September 05, 2007, 11:08:21 pm »

Nice... doo you know how to use this in SMF?
Logged
.
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 15 queries.