SimplePortal

Support => English Support => Topic started by: msab on August 11, 2018, 09:44:22 AM

Title: how to edit in user's profile page using SMF forums and simple portal?
Post by: msab on August 11, 2018, 09:44:22 AM
as an admin i added a score column in the smf_members table in the smf databse and  now i want to show every user's score from the database in their profile page under their user info section using SMF forum and simpleportal portal so how can i do this?
Title: Re: how to edit in user's profile page using SMF forums and simple portal?
Post by: Chen Zhen on August 11, 2018, 09:21:54 PM
Please do not post multiple topics regarding the same question.
One topic with the proper question, your example attachment and in the proper board will suffice.

I removed your 2 other duplicate topics and added the attachment to this thread that is in the correct board.
Title: Re: how to edit in user's profile page using SMF forums and simple portal?
Post by: msab on August 12, 2018, 01:29:43 AM
okay thanks and i hope somebody answer me cause i am new to the simpleportal and i really need help
Title: Re: how to edit in user's profile page using SMF forums and simple portal?
Post by: msab on August 13, 2018, 02:19:45 AM
okay till now i was able to do like the screenshot below ...so my next question, how to merge between the points block and the user info block?? 
Title: Re: how to edit in user's profile page using SMF forums and simple portal?
Post by: emanuele on August 13, 2018, 08:05:25 AM
If you are going to add them manually, it would probably be easier to set up a custom field that can be edited only by admins.
If it is populated some other way, then you have to edit the template code.
I'm not sure which one is used by the user info box... But it should be in Block.php (IIRC, it's been a while since I touched SP code... sadly).
Title: Re: how to edit in user's profile page using SMF forums and simple portal?
Post by: ccbtimewiz on August 15, 2018, 10:18:16 AM
If you are going to add them manually, it would probably be easier to set up a custom field that can be edited only by admins.
If it is populated some other way, then you have to edit the template code.
I'm not sure which one is used by the user info box... But it should be in Block.php (IIRC, it's been a while since I touched SP code... sadly).

The file is ./Sources/PortalBlocks.php and it should be under the sp_userInfo() function.
Title: Re: how to edit in user's profile page using SMF forums and simple portal?
Post by: msab on August 16, 2018, 12:00:21 PM
thank you so so much it works fine now :thumbsup:
Title: Re: how to edit in user's profile page using SMF forums and simple portal?
Post by: ccbtimewiz on August 24, 2018, 09:55:14 PM
Considering you sent me a PM, did you still need help with this?
SimplePortal 2.3.8 © 2008-2024, SimplePortal