Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#97 2011-01-19 16:35:29

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

Re: smd_bio : store additional biographical info about your users

hablablow wrote:

why does it fire around 80 post requests each time a form page is called

Ah. It’s because v0.30 is broken and I fixed it about 6 months ago and forgot to release it. Ooops. Hang on a sec and I’ll bundle the new one up on my site. Give me ten minutes or so.


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

#98 2011-01-19 16:37:45

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: smd_bio : store additional biographical info about your users

No problem thanks ! :)

What was it ? Firing JavaScript in the wrong place ?

Did you change something else in that new version ?

Last edited by hablablow (2011-01-19 16:38:53)


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#99 2011-01-19 16:43:05

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

Re: smd_bio : store additional biographical info about your users

New maintenance release v0.31 fixes the abnormal load that smd_bio puts on your admin-side pages. No other new features. Just took me six months to remember to release it, d’oh!

hablablow wrote:

What was it ? Firing JavaScript in the wrong place ?

Firing javascript in every place!

Last edited by Bloke (2011-01-19 16:43:24)


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

#100 2011-01-19 16:45:37

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: smd_bio : store additional biographical info about your users

Oh Mamma !

Glad you solved it !

Kthx !


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#101 2011-02-10 20:51:52

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: smd_bio : store additional biographical info about your users

Stef

Can I pick your brain?

I’m experimenting with a sort of “proof of concept” adaption of Txp for membership.

I started out thinking I could use smd_bio, but found the backend didn’t look flexible enough to create the user interface I wanted. In particular, the user tab isn’t as easily customizable as the article tab, and it lacks plugins that work with the article basis.

If I use the article tab, then bot_wtc, bot_image_upload, smd_tags, and soo_multidoc look like they will be useful in achieving the look/layout/ui I want. glz_custom_fields works at creating most of the fields I want. The problem is the output — glz_custom fields only has two tags. Excellent for creating membership reports, but limited. txp:custom_fields are pretty bare bones.

smd_bio shines with its tags.

So I’m sitting here thinking how I can get the best of both worlds . . . . .

I’ve had at least a 1/2 dozen hairball ideas, so to keep it simple, I’ll start with one:

smd_bio creating custom fields on the article tab, and being able to play with the other plugins I mentioned seems like the the most probably solution. Would that take a total/major rewrite?

Thanks

Mike

Offline

#102 2011-02-13 16:08:53

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: smd_bio : store additional biographical info about your users

Alright I’m back Stef with a couple of questions, trying to implement smd_bio fields within the jmd_dashboard so that a user can change, update his bio informations from this tab. As you suggested here

In the jmd_dashboard form adding this:

<txp:mem_simple_form table="smd_bio" id_field="country">
<txp:mem_form_text name="country" required="1" label="Country" break="" />
<txp:mem_form_submit />
</txp:mem_simple_form>

Will either fire a SQL error or do nothing…

As you seem to have implemented it yourself any advices on how you achieved it is very welcome for me…

Headache.

Thanks !


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#103 2011-02-13 18:10:44

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: smd_bio : store additional biographical info about your users

Alright wrong syntax:

<txp:mem_simple_form table="smd_bio">
<txp:mem_form_text name="table_country" label="Country" break="" />
<txp:mem_form_submit />
</txp:mem_simple_form>

Is behaving the correct way. Except it ads an entry to another row in my table and not to the currently logged user !

Any clues ?


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#104 2011-02-14 20:00:11

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: smd_bio : store additional biographical info about your users

Stef,

Jakob solved the issue related to the way I was crafting the mem_form, here.
This updates the correct fileds for smd_bio in my table:

<txp:mem_simple_form table="smd_bio" id_field="user_ref" id_insert="0">
<txp:mem_form_text name="table_country" label="Country" break="" />
<txp:mem_form_secret name="int_user_ref" value="{userA}" />
<txp:mem_form_submit />
</txp:mem_simple_form>

But it also updates information for userB, for all users in fact … Is this related to the way smd_bio works ?

Thanks !

Last edited by hablablow (2011-02-14 20:00:38)


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#105 2011-02-26 01:49:24

skrishi
Member
From: russia federation
Registered: 2011-02-25
Posts: 52
Website

Re: smd_bio : store additional biographical info about your users

Hi, thanks for the plug-in.
But I have a problem. Instead of Russian letters (Cyrillic) appears ????? (question mark).
In other cases, when I write such articles, all is well.

Last edited by skrishi (2011-02-26 01:50:40)

Offline

#106 2011-05-22 14:35:19

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: smd_bio : store additional biographical info about your users

Just wondering: is there a way to get smd_bio information to show up under the search results? AFAIK wet_haystack only adds fields in the textpattern table (do correct me if I’m wrong).


TXP Builders – finely-crafted code, design and txp

Offline

#107 2011-05-22 19:04:01

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

Re: smd_bio : store additional biographical info about your users

jakob wrote:

Just wondering: is there a way to get smd_bio information to show up under the search results?

Not as far as I know, sorry. I think the TXP search/wet_haystack only looks at the textpattern table. The only other plugin I know of that did extended search was ob1_advanced_search but I don’t think it’s available any more and I don’t know how customisable it is/was. Sounds like there’s a gap in the market for a customisable search plugin. Hmmmm…1 :-)

Incidentally, v0.40 of this plugin is almost ready to fly. It’s a major step up in terms of, well, pretty much everything but there’ll be some backwards compatibility casualties as a result. It is, however, highly highly highly recommended to upgrade because — as well as the new, more flexible tag system and improvements to the bio config page — the public tags are up to 90% more efficient. Your server (and website and host provider) will love you more for it.

Once I’ve tided the docs and stuffed in the last remaining nuggets of code goodness, I’ll drop you a beta in the post, jakob. Anyone else interested in having a beta copy, please let me know via e-mail.

1 Or maybe some clever use of smd_query?

Last edited by Bloke (2011-05-22 19:06:18)


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

#108 2011-05-23 06:07:16

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: smd_bio : store additional biographical info about your users

Or maybe some clever use of smd_query?

I was wondering about that too, but I am at a loss as to how to interleave smd_query matches with the other search results so that the results show according to score. I’m not even sure where to start.


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB