Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2023-03-16 14:28:24
- lindabb
- Member
- Registered: 2023-02-17
- Posts: 132
User account additional fieds
Hello,
Is there any plugin to extend user table “user account “ to add more fields with ability to update them by admin and user?
if not, what I need to learn to develop something like this!
Thank you
Offline
Re: User account additional fieds
There is smd_bio by Stef, but admittedly I never used it.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2023-03-16 19:56:48
- lindabb
- Member
- Registered: 2023-02-17
- Posts: 132
Re: User account additional fieds
Thank you colak,
That worked, but displays debug on top even Production status – Live
shows
SELECT name FROM txp_users WHERE user_id = ‘2’
SELECT * FROM smd_bio WHERE user_ref=‘xxx’
on top account on the page.
Otherwise works find.
Thank you again
Offline
#4 2023-03-16 19:57:22
- lindabb
- Member
- Registered: 2023-02-17
- Posts: 132
Re: User account additional fieds
I’m using php 8.1 and dev 4.8.9 version
Offline
Re: User account additional fieds
Ah, maybe if you’re using development code I might have accidentally left the debug flag on one of the safe_*()
calls. If you find a query like getThing()
or safe_something()
and its last parameter is 1, that’s the debug flag. So just remove that last parameter and it’ll stop printing the query strings out.
Sorry. Must have missed one, or committed something by mistake. I need to update the plugin anyway so I’ll try and do that this week.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Online
#6 2023-03-17 16:19:08
- lindabb
- Member
- Registered: 2023-02-17
- Posts: 132
Re: User account additional fieds
Thank you Stef ,
Yes, I removed
//dmp($rstep);
//dmp(‘BEFORE’, $user_id);
//dmp($user_id);
on function smd_bio_fields and the statement disappeared.
Thanks again
Offline
Re: User account additional fieds
Haha, ah yeah those too. I’m not sure why I committed those to the repo. Silly mistake during testing, sorry.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Online
#8 2023-03-17 17:13:44
- lindabb
- Member
- Registered: 2023-02-17
- Posts: 132
Re: User account additional fieds
Thank you Stef,
Sorry, I committed those out,
Thanks
Offline
Pages: 1