Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2004-11-11 04:44:28
- King Rat
- Member
- Registered: 2004-11-11
- Posts: 20
Re: Custom Fields: rei_show_custom
This plugin is just what I was looking for. Thanks.
Offline
#17 2005-01-02 04:02:48
- Rachel Rachel
- Member
- Registered: 2004-09-24
- Posts: 28
Re: Custom Fields: rei_show_custom
i’m getting gibberish when i click on the link for rei_show_custom.txt – any suggestions?
edit: just to clarify, this is what i get in the .txt file
<?php
$plugin=‘YTo4OntzOjQ6Im5hbWUiO3M6MTU6InJlaV9zaG93X2N1c3RvbSI7czo2OiJhdXRob3IiO3M6MTM6IlJlaW5pZXIgTGFkYW4iO3M6MTA6ImF1dGhvcl91cmkiO3M6MjM6Imh0dHA6Ly93d3cucmVpbmllci5iaXovIjtzOjc6InZlcnNpb24iO3M6MzoiMC40IjtzOjExOiJkZXNjcmlwdGlvbiI7czozMDoiUGx1Z2luIHRvIHNob3cgYSBjdXN0b20gZmllbGQuIjtzOjQ6ImhlbHAiO3M6MjI6Ik5vIGhlbHAgYXZhaWxhYmxlIHlldC4iO3M6NDoiY29kZSI7czo0Njg6IgpmdW5jdGlvbiByZWlfc2hvd19jdXN0b20oJGF0dHMpIAp7CiAgICBnbG9iYWwgJHRoaXNhcnRpY2xlOwogICAgJGlkID0gJHRoaXNhcnRpY2xlWyJ0aGlzaWQiXTsKCQkKICAgIGlmIChpc19hcnJheSgkYXR0cykpIGV4dHJhY3QoJGF0dHMpOwoJCQogICAgCSR3cmFwdGFnID0gKGVtcHR5KCR3cmFwdGFnKSkgPyAiIiA6ICR3cmFwdGFnOwogICAgJGN1c3RvbWlkID0gKGVtcHR5KCRjdXN0b21pZCkpID8gMSA6ICRjdXN0b21pZDsKICAgICAgICAKICAgICRjdXN0b21fZmllbGQgPSAiY3VzdG9tXyIuJGN1c3RvbWlkOwogICAgJHJlcyA9IHNhZmVfcm93cygkY3VzdG9tX2ZpZWxkLAkidGV4dHBhdHRlcm4iLCJpZD0nJGlkJyIpOwoJJG91dCA9ICRyZXNbMF1bJGN1c3RvbV9maWVsZF07CgoJICAKCWlmKCFlbXB0eSgkd3JhcHRhZykpIHJldHVybiB0YWcoJG91dCwkd3JhcHRhZyk7CiAgICAKICAgIHJldHVybiAkb3V0Owp9CiI7czozOiJtZDUiO3M6MzI6IjY4ZmVlOGVjYmYwNjMwMDczZWJhYWVjZDNiYWI5MzA2Ijt9’
?>
Last edited by Rachel Rachel (2005-01-02 04:47:15)
Offline
Re: Custom Fields: rei_show_custom
Hey! You have to either copy and paste that into the box you see in your plugin page, or (since that method doesn’t seem to work for me) download the file, then upload it to your site via the plugin page as well!
Good luck.
Offline
#19 2005-01-02 05:16:38
- Rachel Rachel
- Member
- Registered: 2004-09-24
- Posts: 28
Re: Custom Fields: rei_show_custom
thanks for the tip. apparently the problem was that there was some bug in the build i was using; problem solved here (http://forum.textpattern.com/viewtopic.php?id=3872).
Offline
Re: Custom Fields: rei_show_custom
Reiner – is there a chance you could help me get url encoding functions into this plugin or textile support maybe? Right now I’m using it for a linkblog, keeping the url’s in custom fields, and they come out unencoded and ruin the linkblog page in mozilla because I’m sending it as real xml. I’m sure it’s not that hard, but it would be a nice feature to have too.
Ok, so I got it good enough using php htmlentities, just wrapping the function around the $out. If anyone has this problem my solution works, but it’s a little ugly.
Last edited by misterk (2005-01-10 21:37:16)
Offline
#21 2005-01-17 18:22:13
- King Rat
- Member
- Registered: 2004-11-11
- Posts: 20
Re: Custom Fields: rei_show_custom
Thanks for this plugin—it’s been really helpful. I would really like to know how I can get it to work within search results, though.
Offline
#22 2005-04-22 02:42:07
- Andrew
- Plugin Author

- Registered: 2004-02-23
- Posts: 730
Re: Custom Fields: rei_show_custom
just fyi – changeset 309 now introduces <txp:custom_field /> as a core feature.
Offline
Re: Custom Fields: rei_show_custom
yay!!!
thanks for the heads-up, Andrew..
and thanks to the txp-developers for all the ongoing improvements :)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: Custom Fields: rei_show_custom
> Andrew wrote:
> just fyi – changeset 309 now introduces <txp:custom_field /> as a core feature.
This is swell news. I’m with Alicson — just thankful for the continued developments.
(and yes, I believe this was a needed “new feature” for a 1.0 release. so :p to those biting at the bit)
“If you build it, they will come.”
Offline
Re: Custom Fields: rei_show_custom
> Andrew wrote:
> just fyi – changeset 309 now introduces <txp:custom_field /> as a core feature.
finally!! this is sweet.
i just tried it but i’m not sure how to use it… how can i display customfield 2 ?
i tried <txp:custom_field2 /> and <txp:custom_field id=“2” /> but this doesn’t work…
Offline
#26 2005-04-23 15:11:11
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Custom Fields: rei_show_custom
Well, if the name of your field is “custom2”
<txp:custom_field name="custom2" />
Offline
Re: Custom Fields: rei_show_custom
if your name has spaces in it, will it take it with the spaces?
name="boxes and bears" /> ?
i’ve not upgraded to the latest rc3 yet… maybe later today
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#28 2005-04-23 15:44:16
- domfucssion
- Plugin Author
- Registered: 2004-10-23
- Posts: 39
Re: Custom Fields: rei_show_custom
yeah, spaces are ok
Offline
Re: Custom Fields: rei_show_custom
To display custom fields you have to use their names, not their number. You define the names in /lib/admin_config.php
e.g. <txp:custom_field name="firstField" />
Offline
Re: Custom Fields: rei_show_custom
Ah, the feckin forum is broken again so I didn’t see that there were answers already.
Offline