Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2023-03-16 14:28:24

lindabb
Member
Registered: 2023-02-17
Posts: 111

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

#2 2023-03-16 14:41:00

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

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: 111

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: 111

Re: User account additional fieds

I’m using php 8.1 and dev 4.8.9 version

Offline

#5 2023-03-16 23:56:07

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,269
Website GitHub

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

Offline

#6 2023-03-17 16:19:08

lindabb
Member
Registered: 2023-02-17
Posts: 111

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

#7 2023-03-17 16:40:34

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,269
Website GitHub

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

Offline

#8 2023-03-17 17:13:44

lindabb
Member
Registered: 2023-02-17
Posts: 111

Re: User account additional fieds

Thank you Stef,
Sorry, I committed those out,

Thanks

Offline

Board footer

Powered by FluxBB