coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: madd74 on September 21, 2006, 02:08:09 AM

Title: Coppermine profile to phpbbs 2.0.21
Post by: madd74 on September 21, 2006, 02:08:09 AM
First off, I wanted to state, after starting using the Coppermine service, the customer support in the forums has been WONDERFUL.  Every question thus far has been answered (including the one that told me could not be done), and I appriciate that VERY much.  Thank you all who have helped with replies and the like!!

Right now when you click on "My Profile" it goes to the actual profile for the user, as opposed to the profile that allows you to edit the profile.  IE, the following happens:

"http://madd74.com/photo/profile.php?op=edit_profile" is what I see when I hover over the link in the status bar;
"http://madd74.com/forum/profile.php?mode=viewprofile&u=2" is what I get directed to;
"http://madd74.com/forum/profile.php?mode=editprofile" would be where I actually want it to go to.

My only concern, is that in doing this, when someone clicks on a user that it would attempt the same thing.  IE:

"http://madd74.com/photo/profile.php?uid=2" is what shows in the status bar when I go to the name after "Album Name" of a picture, and that I would want to go to "http://madd74.com/forum/profile.php?mode=viewprofile&u=2".  Any information I am thankful for!
Title: Re: Coppermine profile to phpbbs 2.0.21
Post by: Nibbler on September 21, 2006, 12:08:32 PM
Add this into your bridge file


        function edit_profile($uid)
        {
                $this->redirect('/profile.php?mode=editprofile');
        }
Title: Re: Coppermine profile to phpbbs 2.0.21
Post by: madd74 on September 28, 2006, 03:04:42 AM
my word now I have that song stuck in my head :D  (points to your signature)

um, when you say add to my brige file, do you mean /bridge/phpbb2018.inc.php  ?  if so, is there anywhere specific in the file I should add it?  thanks!
Title: Re: Coppermine profile to phpbbs 2.0.21
Post by: Nibbler on September 28, 2006, 03:49:08 AM
Yes, you can put it in any valid location inside the class, probably under here would be sensible


function view_users() {}
function view_profile() {}