instead showing the Your_Account profile!
I want to change the link of the user info block from the Your_Account.php&op=userinfo&username=namehere to modules.php?name=Forums&file=profile&mode=viewprofile&u=USERID
Have any of you done this? i have hours and hours looking at the code and to be totally honest i cant get where the hell comes the link from the forum, i have seen the template memberlist_body.tpl and it has pure phpbb code, nor the Member_List module.
Help is apreciated, also i think this tweak will work for all the users as a good fix
Best regards and thanks in advance,
Jungl3M4n
_________________ Jungl3M4n
Once you eliminate the impossible,
whatever remains, no matter how improbable,
must be the truth
Yes, I do redirect the members to their Forum Profile. You have to edit the Your_Account/navbar.php
foxyfemfem Support Staff
Joined: Jan 23, 2003
Posts: 668
Location: USA
Posted:
Mon May 05, 2003 2:28 pm
Jungl3M4n wrote:
instead showing the Your_Account profile!
I want to change the link of the user info block from the Your_Account.php&op=userinfo&username=namehere to modules.php?name=Forums&file=profile&mode=viewprofile&u=USERID
Have any of you done this?
Hello, Yes I managed to do it. Whenever the lastest member name appear in the user info block if you click on the name you'll be taken to the forum profile instead of the Your Account profile. I had to edit a few codes in the block-User_Info.php file. Here's the code I use
Code:
// Hyperlink last registered user to phpBB viewing profile
$resultName = sql_query( "SELECT user_id FROM ".$prefix."_users where username='$lastuser'", $dbi );
list( $Lastuser_id ) = sql_fetch_row( $resultName, $dbi );
$content .= "<img src=images/blocks/phpBB2_User_Menu/icon_last.gif>"._UMBLATEST.": <br><A HREF=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$Lastuser_id\"><b>$lastuser</b></a><img src=images/blocks/phpBB2_User_Menu/icon_new.gif><br>\n";
Imago Captain
Joined: Jan 17, 2003
Posts: 629
Location: Europe
Posted:
Mon May 05, 2003 2:46 pm
Sorry, I didn't get the question. I thought you were asking about Your Info in the Your Account module.
Jungl3M4n Nuke Soldier
Joined: Feb 17, 2003
Posts: 34
Location: VE
Posted:
Mon May 05, 2003 8:35 pm
foxyfemfem wrote:
Jungl3M4n wrote:
instead showing the Your_Account profile!
I want to change the link of the user info block from the Your_Account.php&op=userinfo&username=namehere to modules.php?name=Forums&file=profile&mode=viewprofile&u=USERID
Have any of you done this?
Hello, Yes I managed to do it. Whenever the lastest member name appear in the user info block if you click on the name you'll be taken to the forum profile instead of the Your Account profile. I had to edit a few codes in the block-User_Info.php file. Here's the code I use
Code:
// Hyperlink last registered user to phpBB viewing profile
$resultName = sql_query( "SELECT user_id FROM ".$prefix."_users where username='$lastuser'", $dbi );
list( $Lastuser_id ) = sql_fetch_row( $resultName, $dbi );
$content .= "<img src=images/blocks/phpBB2_User_Menu/icon_last.gif>"._UMBLATEST.": <br><A HREF=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$Lastuser_id\"><b>$lastuser</b></a><img src=images/blocks/phpBB2_User_Menu/icon_new.gif><br>\n";
Thanks for the post! but it wasnt clear for me where to add and what to remove from the user info block!
can you please explain it a little longer?
best regards and thanks in advance!
Jungl3M4n
_________________ Jungl3M4n
Once you eliminate the impossible,
whatever remains, no matter how improbable,
must be the truth
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum