You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 72 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - tweak to the user info block to show the forum profile.... [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Jungl3M4n
Nuke Soldier
Nuke Soldier


Joined: Feb 17, 2003
Posts: 34

Location: VE

PostPosted: Mon May 05, 2003 1:07 pm Reply with quoteBack to top

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 Wink

Best regards and thanks in advance,

Jungl3M4n

_________________
Jungl3M4n
Once you eliminate the impossible,
whatever remains, no matter how improbable,
must be the truth

http://www.dgtalstudios.com
Find all posts by Jungl3M4nView user's profileSend private messageSend e-mailVisit poster's websiteMSN MessengerICQ Number
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Mon May 05, 2003 2:12 pm Reply with quoteBack to top

Yes, I do redirect the members to their Forum Profile. You have to edit the Your_Account/navbar.php
Find all posts by ImagoView user's profileSend private messageVisit poster's website
foxyfemfem
Support Staff
Support Staff


Joined: Jan 23, 2003
Posts: 668

Location: USA

PostPosted: Mon May 05, 2003 2:28 pm Reply with quoteBack to top

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";
Find all posts by foxyfemfemView user's profileSend private message
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Mon May 05, 2003 2:46 pm Reply with quoteBack to top

Sorry, I didn't get the question. I thought you were asking about Your Info in the Your Account module.
Find all posts by ImagoView user's profileSend private messageVisit poster's website
Jungl3M4n
Nuke Soldier
Nuke Soldier


Joined: Feb 17, 2003
Posts: 34

Location: VE

PostPosted: Mon May 05, 2003 8:35 pm Reply with quoteBack to top

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

http://www.dgtalstudios.com
Find all posts by Jungl3M4nView user's profileSend private messageSend e-mailVisit poster's websiteMSN MessengerICQ Number
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.352 Seconds - 233 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::