Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#313 2016-08-02 19:58:32
Re: smd_bio : store additional biographical info about your users
Hey, Stef!
I’m scoping out the new Textpattern 4.6 beta 2, and making sure everything will work on a client site before upgrading it on the public server. Woo hoo!
Checking out my user bios in the editor, I see that the smd_bio fields no longer line up well layout-wise with Phil’s new design. This isn’t a catastrophe, but it will throw off at least one of my change-averse team members.
In principle, I should be able to figure out the layout revisions and edit the plugin. If so, would you welcome a pull request to update the plugin to play nice with the new admin theme design?
Offline
#314 2016-08-03 12:04:44
Re: smd_bio : store additional biographical info about your users
johnstephens wrote #300473:
would you welcome a pull request to update the plugin to play nice with the new admin theme design?
Absolutely! Please check out the github repo first though in case I’ve fixed bits of it already. Can’t remember how far I got, 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
#315 2016-08-03 15:24:45
Re: smd_bio : store additional biographical info about your users
The fix is simple, just need to add a class to the markup. I’ll pore over the plugin and figure out where.
Offline
#316 2016-08-03 15:47:44
Re: smd_bio : store additional biographical info about your users
Done and done!
Offline
#317 2016-08-19 14:18:10
Re: smd_bio : store additional biographical info about your users
Stef,
Nothing has changed on my status since last report, but I’ve decided to modify my bio config and output a bit before wasting more time on it, mainly because the URL redirecting under the circumstances is too bizarre to get right.
So instead of using RealName
for URL and display, I want to try creating two new fields for “First Name” and “Last Name” to build URLs like:
../author/destry-wion
For example:
<p>
<txp:smd_bio_info fields="fname, lname">
<a href="/author/<txp:smd_bio_data field="fname" />-<txp:smd_bio_data field="lname" />">
<txp:smd_bio_data field="fname" /> <txp:smd_bio_data field="lname" /></a>
</txp:smd_bio_info>
</p>
That way all new profile URLs are only different by the /author/
part of the path, which I’m hoping will make it easier to redirect URLs from ../people/first-last
to ../author/first-last
, instead of trying to wrangle ModRewrite rules that go from this…
../people/destry-wion
to this…
../author/Destry Wion
(i.e. RealName
)
to this…
../author/destry-wion
Does that make any sense? Doable?
If so, the only problem I’m having at this point is being able to create the new First Name and Last Name fields. smd_bio doesn’t seem to let me do it. I can delete fields (I did one), but I can’t create any without getting an error.
Do you have an update of the plugin available?
Offline
#318 2016-09-05 15:27:35
Re: smd_bio : store additional biographical info about your users
Master Sifu, critical bug!
Offline
#319 2016-09-05 22:14:02
Re: smd_bio : store additional biographical info about your users
Destry wrote #301062:
Master Sifu, critical bug!
Critical bug fixed on GitHub the other day, forgot to update this thread. If you need a compiled version, just yell. If not, by all means grab the .php file there and chuck it at ied_plugin_composer and let me know how it goes.
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
#320 2016-09-06 14:18:27
Re: smd_bio : store additional biographical info about your users
Plugin is working. I can now edit fields in bio_config handily. Thank you.
Offline
#321 2017-02-07 14:33:38
Re: smd_bio : store additional biographical info about your users
smd_bio 0.41
Textpattern v4.6.2
Getting the following errors:
Tag error: <txp:smd_bio_info fields="image" label="" wraptag="div" class="photoblog_profile"> -> Textpattern Notice: unregistered_tag while parsing form single_bottom on page archive
Tag error: <txp:smd_bio_articles limit="4" wraptag="div" class="profile" break="br" section="reports"> -> Textpattern Notice: unregistered_tag while parsing form single_bottom on page archive
a) Do I need to fix that with this code?
b) Or can I just add the following above all the code of the plugin?
if (class_exists('\Textpattern\Tag\Registry')) {
Txp::get('\Textpattern\Tag\Registry')
->register('smd_bio_info')
->register('smd_bio_articles')
;
}
c) Or do you have a newer version of smd_bio?
Last edited by Kjeld (2017-02-07 16:27:19)
• Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
• MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
• JapaneseStreets.com – Japanese street fashion (mostly txp)
Offline
#322 2017-02-07 15:22:30
Re: smd_bio : store additional biographical info about your users
Kjeld wrote #303872:
Can I still fix that
Yes, but it’s only a warning, so not important. I do have a newer version but it isn’t quite complete: checkbox sets don’t look very nice in the bio page. I asked Phil about a design pattern for it ages ago and forgot to follow up.
I’ve released it today as a beta so you can at least use it. As far as I can tell, the only bug is the slightly ugly checkbox sets. And the image widget needs some visual love.
Last edited by Bloke (2017-02-07 15:28:20)
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
#323 2017-02-07 16:28:26
Re: smd_bio : store additional biographical info about your users
Thanks, Bloke!
So, I guess I can just wait until you are done?
Last edited by Kjeld (2017-02-07 16:30:26)
• Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
• MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
• JapaneseStreets.com – Japanese street fashion (mostly txp)
Offline
#324 2017-02-07 23:08:29
Re: smd_bio : store additional biographical info about your users
@ Bloke
For your checkbox sets, just follow the pattern used for input type=radio
on the Preference panel.
(I never noticed, I’ve never used checkboxes…)
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline