forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: altagame on March 16, 2006, 01:38:12 am

Title: Bug with user viewing profile - PhpBB + Copper
Post by: altagame on March 16, 2006, 01:38:12 am
Hello everyone, just wondering if it is just me having this problem or if others are experiencing the same bug.

When a user is logged in, and clicks the "My Profile" link, it is bringing them directly to my member listing page not their profile. When I mouse over, this is the link it displays; (../gallery/profile.php?op=edit_profile) , however, after clicking, it takes them to this URL; (../boards/memberlist.php?mode=viewprofile)

Any idea on what is causing it to go the member listing on the BBS as opposed to the users profile page?

Thanks in advance.

Chris
Title: Re: Bug with user viewing profile - PhpBB + Copper
Post by: altagame on March 16, 2006, 01:41:45 am
I just went back in and the link that gets displayed in phpBB to display the users profile should be; (.../boards/profile.php?mode=viewprofile) however CM is defaulting it to (../boards/memberlist.php?mode=viewprofile).

Any thoughts?

Chris
Title: Re: Bug with user viewing profile - PhpBB + Copper
Post by: Nibbler on March 16, 2006, 02:18:06 am
You can easily adjust the link, take a look at the bridge file.
Title: Re: Bug with user viewing profile - PhpBB + Copper
Post by: xplicit on March 16, 2006, 02:35:52 am
search for :

Code: [Select]
// Pages to redirect to
$this->page = array(
'register' => '/ucp.php?mode=register',
'editusers' => '/memberlist.php',
'edituserprofile' => "/memberlist.php?mode=viewprofile&u=",
);

replace edituserprofile with:

Code: [Select]
'edituserprofile' => "/profile.php?op=edit_profile&u=",
Title: Re: Bug with user viewing profile - PhpBB + Copper
Post by: altagame on March 16, 2006, 05:48:02 pm
Thanks xplicit,

Any idea on what page that code is on?

Alta.
Title: Re: Bug with user viewing profile - PhpBB + Copper
Post by: Nibbler on March 16, 2006, 05:49:08 pm
Either bridge/phpbb.inc.php or bridge/php2018.inc.php depending on what version you are running.
Title: Re: Bug with user viewing profile - PhpBB + Copper
Post by: altagame on March 16, 2006, 05:51:16 pm
Nevermind, I think I found it, 'coppermine.inc.php'

Alta.
Title: Re: Bug with user viewing profile - PhpBB + Copper
Post by: altagame on March 16, 2006, 06:12:23 pm
ok that didn't work, I changed them all one at a time and tested. The one that made any difference was 'bridge/phpbb.inc.php' however, once I update it, all it did was redirect to the main index page of PhpBB not the users page.

Any thoughts?

Chris
Title: Re: Bug with user viewing profile - PhpBB + Copper
Post by: altagame on March 16, 2006, 06:54:42 pm
ok guys, played with it for a bit, this is what I came up with;

Supplied code by xplicit;
Code: [Select]
'edituserprofile' => "/profile.php?op=edit_profile&u=",
That one didn't work. It just took me to the main index page of the boards.

Then I changed it to the following;

Code: [Select]
'edituserprofile' => "/profile.php?mode=viewprofile&u=",
Now it brings me to the users profile page on phpBB. However, this doesn't allow users to Edit their profiles. Just view them. Not too sure if this is the right operation or not of the button in coppermine, perhaps one of you can let me know if this is the right operation for the button purpose in a bridged CM gallery?

I am no PHP wiz at all, just trying to take make it work, so if what I have above looks wrong, please do not hesitate to let me know.

Chris
Title: Re: Bug with user viewing profile - PhpBB + Copper
Post by: altagame on March 16, 2006, 07:42:03 pm
Hmm. Should it be taking users to their profile page in coppermine or the phpbb profile page? Something is telling me it should be the profile page in coppermine, can anyone confirm this for me?

Thank you.

Chris