Member
Member
sakphotographyonline   2009-07-19, 01:30
#1

I have been trying to put html into the photo description. Specifically a form: an example of such a form is as follows:

Custom Avalanche 11x14 Poster $62

Custom Avalanche 16x24 Poster $105

Custom Avalanche 20x30 Poster $136

I noticed that a href html for links works but what about other html. Can anyone help?

Member
Member
sbillard   2009-07-19, 02:36
#2

Html tags are filtered out by the allowed tags option. If you really want to do this, you will have to enable all the tags you want to use. A better approach might be to use the custom data field for this. A description really is not a good place to put forms as descriptions get used all over the place.

Member
Member
sakphotographyonline   2009-07-19, 07:07
#3

How would I go about making a custom data field? Could you point me in the right direction? I'm using the stopdesign theme and i'd love to put a part in there for each photo for that.

Administrator
Administrator
acrylian   2009-07-19, 07:52
#4

Each image/album has already a custom data field. Much better than to enter the form manually would probably be to make a plugin/theme function for this. See the paypal or checkout plugins for examples (on our extensions page).

Member
Member
sakphotographyonline   2009-07-19, 17:18
#5

I did look at the plug ins and also the tried the ezenpage but I guess for my purpose I would rather manually do it for each image. I tried to do it in the custom data field and it did the same filtering out as it did in the description. Any other ideas?

Administrator
Administrator
acrylian   2009-07-19, 17:20
#6

If you don't allow the form tags in the "allowed tags" option as sbillard mentied they will be filtered always.

Member
Member
sakphotographyonline   2009-07-19, 18:21
#7

thanks! sorry for being a newbie and not knowing much about this lol. So i finally got it to work in the description but the custom data field doesn't show anything at all on the page. even if i just type in there...

Administrator
Administrator
acrylian   2009-07-19, 18:52
#8

You also have to place a call (function) for that custom data on the page you want it to show. By itself it does not know where to appear..:-)

Member
Member
sakphotographyonline   2009-07-19, 19:04
#9

Ok. So I did some digging in the them i have. and a little guess work and I also looked in the function guide. what is the custom data function? I didn't see anything my guess is that i would have to insert something like this:

where i want it to go in image.php (i have the stopdesign theme)

am i thinking correctly?

Member
Member
sbillard   2009-07-19, 19:07
#10

There is a function getCustomData() which will return whatever is stored in the database. If you store the complete HTML you can just use echo getCustomData();. But it seems a waste of space to store the whole form. All you really need are the variable parts. Then you insert these into the form in your page script.

Administrator
Member
Member
sakphotographyonline   2009-07-19, 21:02
#12

Y'all are awesome!! I got it to work. Many thanks!!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.