Viewing 11 replies - 1 through 11 (of 11 total)
  • agelonwl

    (@angelonwl)

    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.

    Thread Starter Alonso74

    (@alonso74)

    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 – Title

    to be the only angezigt htmlencode so it is easier for the user to install.

    Do they understand what I mean?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    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 – https://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.

    Thread Starter Alonso74

    (@alonso74)

    This is it
    Big Thanks

    Thread Starter Alonso74

    (@alonso74)

    a 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?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    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

    Thread Starter Alonso74

    (@alonso74)

    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.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    sorry, you’d need to hire someone to help you further, try https://jobs.wordpress.net

    Geansai

    (@geansai)

    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 ??

    Thread Starter Alonso74

    (@alonso74)

    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
    https://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

    Geansai

    (@geansai)

    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.
    https://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!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Event Box for external site?’ is closed to new replies.