Event Box for external site?
-
I want to offer a html box so the user can view the last dates on their website.
Can you implement something, or there is a planned expansion?
-
can you give further details about this? however I’m not sure if this can be included since we have alot of new features in the line at the moment.
At the moment I refer users to something here https://p3k.org/rss/
But I would find Great if you could offer something like this done without having to use an external provider.
for example
a box with the next 5 events
Date – Titleto be the only angezigt htmlencode so it is easier for the user to install.
Do they understand what I mean?
we wouldn’t make this ourselves anytime soon, but another thing you could try is creating a special page on your site that just lists 5 events and then supply your other sites an iframe code.
I got inspired and made a simple example. See this, edit as needed – http://pastebin.com/tG5XbcPT
Copy that to your theme folder.
Create a new WP page with a shortcode like [events_list limit=”5″]Then users could use an iframe with the url to that page.
This is it
Big Thanksa question remains
The links will open in the same window that is in the frame as I can change the
the only opening left in the frame in a new window?hmm… for that you probably have to use some special html in our formats e.g.
<a href="#" onclick="window.parent.location= '#_EVENTURL'">...or create some JS within that template that does a similar thing
Sorry but I know, unfortunately not how to do something you could just help me?
It should already be the JS version otherwise open so all the links in a new window and that should not be just out of the iframe.
sorry, you’d need to hire someone to help you further, try http://jobs.wordpress.net
Hi Alonso74,
Before I start just want to check if this is what you want to do!
You want to have a parent events site which any external site can pull the latest list of events from?If so, then I would suggest that on your main website to add a script which will query the database to find all posts with the events type and limit the results by say 5. Then this script should return this list of items as JSON / XML. Then you could build a plugin / widget which will call this JSON / XML feed and render the results within the widget.
Job done 🙂
If any user can install this in his website and see my events may then yes.
But you should be able to install it into any web page with an html code
In each web page is not only WordPress and normal html pages
Do they understand what I mean?
I have something similar
http://quadtreffen.info/veranstaltungen/iframe/This can not open install with an iframe problem-left in a new window.
I think a little script would be better
OK, then that changes things a little, You would still write a script on the server (“YOUR SITE”) which will query the database to find all posts with the events type and return the JSON list of items. But as you would like this to be able to be used on just a HTML site you would have to think about maybe using jQuery Ajax to load in the JSON file.
You could then code the jQuery script so users could then cut and paste the code into their web page.
Have a look at this it’s along the lines of what the Jquery code may work like.
http://www.jquery4u.com/demos/ajax/ look at this section of the page: “This example loads the latest 5 pictures from Flickr that are tagged jQuery”.Also with regards to the links you have in your content are these meant to link back to your website or open in the area where the listing is displayed?
Would offer to code this for you, but I don’t think I’d bring it in on budget! But am happy to point you in a direction which may work for you!
The topic ‘Event Box for external site?’ is closed to new replies.