WordPress.org

Ready to get started?Download WordPress

Forums

DeMomentSomTres Facebook Events List
A wider picture of the cover photo of the event. (5 posts)

  1. moostmartijn
    Member
    Posted 11 months ago #

    Hi,

    I really like your plug-in, but I was wondering if it's possible to change the width of the final result posting Facebook events.

    Now it's just a small square, but since you can use a cover photo in events it's wider, and that would look better on my website.

    Thanks in advance.

    http://wordpress.org/plugins/demomentsomtres-facebook-events-list/

  2. moaschtr
    Member
    Posted 5 months ago #

    hi,
    just replace 'pic' with 'pic_big' in the code:

    $fql = "SELECT name, pic, start_time, end_time, location, description, eid
    gets
    $fql = "SELECT name, pic, pic_big, start_time, end_time, location, description, eid

    and
    echo "<img src={$values['pic']} />";
    gets
    echo "<img src={$values['pic_big']} />";

    Now you can additionally set a width if you want:
    echo "<img src={$values['pic_big']} width='200px' />";

    https://developers.facebook.com/docs/reference/fql/event/

  3. moostmartijn
    Member
    Posted 5 months ago #

    Unfortunately it is still a square picture.

    Is it possible to grab the banner from an event instead of a square picture?

    http://www.nokturne.nl/events

  4. moostmartijn
    Member
    Posted 5 months ago #

    I solved it by changing the code to:

    $fql = "SELECT name, pic_cover, start_time, end_time, location, description, eid

    echo "<img src={$values['pic_cover']['source']} />";

  5. Marc Queralt i Bassa
    Member
    Plugin Author

    Posted 3 months ago #

    hi,
    you think it will be useful to put an parameter on the shortcode in order to choose the picture size?
    I'll try to put it as soon as I have enought time.
    I'm very busy.

Reply

You must log in to post.

About this Plugin

About this Topic