ZenphotoCMS Forum
Creating a custom TAG [HELP] - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Creating a custom TAG [HELP] (/thread-6561.html)



Creating a custom TAG [HELP] - reddevilmeuk - 2010-02-05

Hi, I want to be able to post the following code into a comment, but cannot seem to get the correct TAG done... can anyone please help

CODE I WANT TO RUN

THE TAG I CREATED WAS

embed => (id => () width => () height => () flashvars => () => wmode () allowscriptaccess => () scale => () salign => () allowFullScreen => () quality => () name => () style => () src => () type => ())




Creating a custom TAG [HELP] - acrylian - 2010-02-05

Seems actually okay. Have no idea but I suggest to use the `` tag anyway. You might also read on the troubleshooting about a trick how to use Youtube and other stuff within the gallery.




Creating a custom TAG [HELP] - reddevilmeuk - 2010-02-05

i got the youtube one tu run, but cannot get this to work.... also this means if i put the code in for youtube, then i cannot use the same tags(s) i do with this....

bring back bbcode




Creating a custom TAG [HELP] - acrylian - 2010-02-06

The "youtube" trick is not limited to youtube.... You can use it to include any kind of html code.




Creating a custom TAG [HELP] - reddevilmeuk - 2010-02-06

thats fine but where is the documentation on how to format the code to work? i've been trying it and can't get it to work




Creating a custom TAG [HELP] - acrylian - 2010-02-06

The youtube trick does not need custom allowed tags. Just do the same as with a Youtube video.




Creating a custom TAG [HELP] - reddevilmeuk - 2010-02-06

your missing the point, the youtube trick only works with youtube vids as it uses the variables from it. It will not work with other types as they all use different types.




Creating a custom TAG [HELP] - acrylian - 2010-02-06

No, you are missing the point of that trick: http://zenphoto.maltem.de/test/mymovie.txt.php




Creating a custom TAG [HELP] - reddevilmeuk - 2010-02-06

now i just feel plain stupid..... and i would like to apologise.

can you confirm exactly what i need to put into the tag box and what i use in the comment box

thanks for all your help

mike




Creating a custom TAG [HELP] - reddevilmeuk - 2010-02-06

just been looking at the troubleshooting guide at

"
Is it possible to manage youtube videos (or from another portal)?

Zenphoto is actually meant to manage multimedia files on your own webspace but with Zenphoto 1.2.6 there is indeed a way:

  1. Enable the class-textobject plugin on the backend plugins page.
  2. Upload a plain text file (.txt) with code to embeed a specifc (video) file via ftp or the backend.
  3. To use an thumbnail besides the default one follow the same instructions as for video thumbnails.
  4. That’s all.
    "

however, ive tried this in the past which works but this cannot be used as a comment? or can it?




Creating a custom TAG [HELP] - sbillard - 2010-02-07

Not exactly sure what you are saying. But it sounds like you want to post a zenphoto object in a comment? To do so you would have to put the html link to that object into the comment. (And your allowed tags would have to allow all the html you used.)




Creating a custom TAG [HELP] - acrylian - 2010-02-07

Sorry, I somehow missed the part about the comment. I have not tried that.




Creating a custom TAG [HELP] - reddevilmeuk - 2010-02-07

acrylian, no problem..... and sbillard thats exactly right

i wish to post a html object into the comment box however im having trouble coming up with TAGS that work




Creating a custom TAG [HELP] - sbillard - 2010-02-08

Any tag that is not showing up in your output is being expunged by the sanitization functions. These remove tags based on their not appearing in the list of the "allowed tags" option. So whatever tags are being removed need to be added to that option.