Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Custom Fields: rei_show_custom
but then, if no photo credit is supplied, i’m left with an empty p tag. :)
Listen to Kenneth
Offline
#14 2004-08-05 19:01:37
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: Custom Fields: rei_show_custom
maybe you could combine it with if not empty http://forum.textpattern.com/viewtopic.php?id=2481
Offline
Re: Custom Fields: rei_show_custom
well, i’ve done a messy hack to the plugin.
i just made it check for a third variable (class) and then add “ class=\”$class\”“ to the output tag. it’s messy, but it works until a better solution presents itself.
Listen to Kenneth
Offline
#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