Bug with user viewing profile - PhpBB + Copper Bug with user viewing profile - PhpBB + Copper
 

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]

Main Menu

Bug with user viewing profile - PhpBB + Copper

Started by altagame, March 16, 2006, 01:38:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

altagame

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

altagame

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

Nibbler

You can easily adjust the link, take a look at the bridge file.

xplicit

search for :

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


replace edituserprofile with:

'edituserprofile' => "/profile.php?op=edit_profile&u=",

Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

altagame

Thanks xplicit,

Any idea on what page that code is on?

Alta.

Nibbler

Either bridge/phpbb.inc.php or bridge/php2018.inc.php depending on what version you are running.

altagame

Nevermind, I think I found it, 'coppermine.inc.php'

Alta.

altagame

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

altagame

ok guys, played with it for a bit, this is what I came up with;

Supplied code by xplicit;
'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;

'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

altagame

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