Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2004-08-05 18:46:43

kennethlove666
Member
From: arkansas
Registered: 2004-04-27
Posts: 107
Website

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

#15 2004-08-05 20:44:02

kennethlove666
Member
From: arkansas
Registered: 2004-04-27
Posts: 107
Website

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

#18 2005-01-02 05:09:53

pvicnan
New Member
Registered: 2004-10-05
Posts: 9
Website

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

#20 2005-01-10 21:22:18

misterk
Member
From: Morris, MN
Registered: 2004-02-24
Posts: 77
Website

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

#23 2005-04-22 03:20:34

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

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

#24 2005-04-22 03:46:44

bluearc21
Member
From: US.VA
Registered: 2004-02-24
Posts: 62
Website

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

Board footer

Powered by FluxBB