Forums

All-in-One Event Calendar
[resolved] Sidebar box self implemented code (7 posts)

  1. francesco.sdn
    Member
    Posted 11 months ago #

    Hi to every one, I'm looking the way to implemented a php file in order to put widget in sidebar box.

    My old webmaster implemented it writing a specific file => sidebar_event.php, I don't know why!!! Well, now I need to change the plug-in and I can't put widget with easy wordpress style (drag & drop in Widget section).

    Inside sidebar_event.php there's:
    "<div class="widget-area">
    <div class="widget-title"><span class="vertical-text block-title"><?php _e("<!--:de-->EVENTS<!--:--><!--:fr-->EVENTS<!--:--><!--:en-->EVENTS<!--:--><!--:it-->EVENTI<!--:-->"); ?></span></div>
    <div class="widget-container widget_text" style="margin-left:10px;">
    <?php
    $p = array('cat' => 136,'showposts' => 1);
    //$events = get_posts($p);
    global $post;
    query_posts($p);
    //foreach($events as $post){
    ?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <?php setup_postdata($post); ?>
    <?php $p = "/\[(.*)\]/"; $data = preg_match( $p ,get_the_excerpt() , $dataevento ); ?>
    <h3 style="margin-bottom:5px;"><?php the_title(); ?></h3>
    <b><?php echo $dataevento[0]; ?></b>
    "><?php the_post_thumbnail(array('220','300')); ?>
    <?php endwhile;endif; wp_reset_query(); //
    ////ec3_get_calendar(5); ?>

    </div>
    </div>"

    Anyone could suggest me how I can implemented the php code??

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

  2. yani.iliev
    Member
    Plugin Author

    Posted 11 months ago #

    1. Can you paste the code on wordpress.pastebin.com?
    2. Can you post a link to a screenshot that shows how the widget looks like?

  3. francesco.sdn
    Member
    Posted 11 months ago #

    Hi Yani.iliev,

    1. I paste the code: "Fra-events". (I don't know how It works very well)

    2. At the moment it's not possible to see the widget, I put a banner.

    Thx

    Fra

  4. yani.iliev
    Member
    Plugin Author

    Posted 11 months ago #

    Oh, I am sorry to say but it looks like I will not be able to help on this one :/

  5. francesco.sdn
    Member
    Posted 11 months ago #

    Probably I explained bad my problem

  6. yani.iliev
    Member
    Plugin Author

    Posted 11 months ago #

    @francesco.sdn
    Yes, it will be difficult to solve that problem with that information. I think you may try getting a freelancer to do that for you - I think it will cost about $20-$50 for an experienced freelancer to complete that.

  7. Richard
    Member
    Plugin Author

    Posted 9 months ago #

    There have been no replies in over 2 months, so I am marking this thread as 'resolved.'

Reply

You must log in to post.

About this Plugin

About this Topic