I am looking for a specific feature that could interest all the WP community (we are in, no ?).
Well i am looking for a plugin that would :
analyse the poste on the save_post event and store in a table all WP external components :
<img, <a (internet sites, doc, xls, pdf ...) <embed ...
I have been looking for this during long hours on the net. But i believe my quest won't be solve by one knight :-)
Thank you for your help
snipeseye
Member
Posted 5 years ago #
Could you explain a bit more what you would like to do?
Well ...
Posts are made of
- text
- other stuff included as images, links, docs, videos etc... (<img>,<embed>,< a>,<object>... html tags)
so i would like to have a plugin to store all the external references of a post in a table.
The purpose is to have the ability to for example
- create an rss/atom feed with <img> html tags in the <image>/<logo> rss/atom tag instead of having it in the <description> tag.
- to include an image when using the 'the_content_rss()' function to display post summaries
- to have the ability (why not) to forbid all external links that are not compliant to your publishing policy
... well that would be a huge dvpt i believe
* i am sure you can have plenty other ideas
Or instead of a plugin, having a 'the_image_rss()' function
like you have in WP the 'the_content_rss()' function that as all html tags removed (sort of fgetss php function used) .
Am i clear enough ...ps : i noticed that when you publish a post with a <img src='myphoto.jpg'>Me</img>, WP modifies the tag in the post to <img src='myphoto.jpg'/>
i am sure that with regular expressions (preg_match_all) there is something to dig, i tried to find a good tutorial ... i am still looking for it ...
if you still want more info, look at my site
http://www.nogent94.com
on the first page, the picture appears on the right.
if you go to the post page (for today it's http://www.nogent94.com?p=25) picture appears on the left.
that is the kind of thing you can do with Xref....
thierryyyyyyy
Member
Posted 5 years ago #
On php.net, preg_match_all is normally well explained.
But regular expressions are, hmmm, how to say that ... reserved to guys who can work a lot on a list of 10 characters...