WordPress.org

Ready to get started?Download WordPress

Forums

Idealien Rideshare
[resolved] layout is not like in the plugin screens (11 posts)

  1. teleanu
    Member
    Posted 1 year ago #

    Hello.

    I'v installed the plugin without gravity forms plugin (i want members to register & add rides from the backend.

    the page with the plugin: http://www.styles.ro/mountain-carpooling/

    I added 2 rides, but i don't see the line that separate the 2, nor your screens style.

    In the page i have [ridesharelist]

    PS when i'm using [ridesharelist style=event] nothing is showing.

    PS2 Very nice plugin

    Thank you & waiting your answer.

    http://wordpress.org/extend/plugins/idealien-rideshare/

  2. teleanu
    Member
    Posted 1 year ago #

    Another thing. When i'm in admin & go to Rideshare Type, Event & City, in the Events & Cities & Types i see 0 value under the Rideshare option.

    I have 2 rides added. I think, that is normal to have the number of rides for them.

  3. teleanu
    Member
    Posted 1 year ago #

    I haven't testet yet. but how many rides are needed until the plugin will make page 2, 3, etc ... ? I do not want to have a very long page.

    or

    If the period for a ride is finished... the ride disappear?

  4. teleanu
    Member
    Posted 1 year ago #

    :D Sorry for more posting, but the plugin is beautiful.

    Now...

    I think that a sort system will be cool & help the people when searching for rides.

    And if the rides do not disappear after the period, i recomand to do so :)

  5. teleanu
    Member
    Posted 1 year ago #

    One more question (I think) :)...

    Was ok if we had From City to City... Because is nice to know from where you fly off :)

  6. idealien
    Member
    Plugin Author

    Posted 1 year ago #

    Glad you're enjoying it teleanu. Answers for your challenges:

    I added 2 rides, but i don't see the line that separate the 2, nor your screens style.

    You can add styles via CSS to your theme that will override the defaults of the plugin. Something like this will get you the borders you seek.

    #rideshare td {
        border: 1px solid black;
    }

    Another thing. When i'm in admin & go to Rideshare Type, Event & City, in the Events & Cities & Types i see 0 value under the Rideshare option.

    These are left blank by default - you can populate the city and event types to suit your website / needs. This is one of a few ways that is required for setup for the plugin beyond just activating it.

    I haven't testet yet. but how many rides are needed until the plugin will make page 2, 3, etc ... ? I do not want to have a very long page.

    It does not currently have paginated results. I will think about that for a future version of the plugin though. Thanks!

    And if the rides do not disappear after the period, i recomand to do so :)

    It won't show ride shares that are in the past, but there is nothing in the plugin which will delete entries.

    Was ok if we had From City to City... Because is nice to know from where you fly off :)

    The initial use case of the plugin was event-based. I have a newer version that changes up the option to let you specify a submission form is city or event based for destination. It's not yet ready for public consumption yet, but soon though I hope.

    Thanks for the feedback!

  7. teleanu
    Member
    Posted 1 year ago #

    Hello. Thank you for the information. I'v make the rides page more beautiful, but i'm still trying to arrange the table width. I want to give all the same size, but for Add info. a different one (still fighting with css :)

    About the riders disappear... I still have rides with date 08 september 2012. (the disappear is set to 24 hours or date?)

    When you add a ride through admin, after publish, you have View link under the post. If you click him, you will go to a normal post page, not to rides page.

    Where i can change the date format? i want to make day - month - year

  8. teleanu
    Member
    Posted 1 year ago #

    The problem with View Post link in post after publishing or updating is resolved :)

    Now... if you can help me with the disappear would be super :) I can go live with this. Thank you!

  9. idealien
    Member
    Plugin Author

    Posted 1 year ago #

    Hi teleanu!

    It has been a while since I have looked at the code for the plugin - and the in-progress updates I have done for v0.2 of it. If you're not afraid of trying to tweak the code for a short-term fix, this will help you.

    Around line 624 you should see this:

    //Retrieve all rideshares by event
    	$queryParameters = array(
    	'post_type' => 'idealien_rideshare',
    	'posts_per_page' => '-1',
    	'orderby' => 'meta_value',
    	'meta_key' => 'idealien_rideshare_event'
    );

    At the time of the current version release the meta_query parameters were not as robust as they are now.

    I haven't tested the following, but replacing that with the following code or something close to it should allow you to filter via the meta_query parameter for entries with the custom field idealien_rideshare_departureDate of more recent than today.

    $dateCompare = '>=';
    $dateValue = date("m/d/Y", time());
    $dateMetaQuery = array(
    	'key' => 'idealien_rideshare_departureDate',
    	'value' => $dateValue,
    	'compare' => $dateCompare
    );
    
    if ( $dateMetaQuery ) { $meta_query[] = $dateMetaQuery; }
    
    $queryParameters = array(
    	'post_type' => 'idealien_rideshare',
    	'posts_per_page' => '-1',
    	'meta_query' => $meta_query,
        	'orderby' => 'meta_value',
    	'meta_key' => 'idealien_rideshare_event',
    	'order' => 'ASC'
    );

    Also - for sorting results you could consider something like jQuery TableSorter that the markup for the results table should allow you to work with. I wish I had more time to be able to work on the plugin and more WordPress stuff at the moment.

    Post back if you have success or what results you get and I might be able to steer you in the right direction based on it.

  10. teleanu
    Member
    Posted 1 year ago #

    Hello.

    I had changed the code

    //Retrieve all rideshares by event
    	$queryParameters = array(
    	'post_type' => 'idealien_rideshare',
    	'posts_per_page' => '-1',
    	'orderby' => 'meta_value',
    	'meta_key' => 'idealien_rideshare_event'
    );

    with

    $dateCompare = '>=';
    $dateValue = date("m/d/Y", time());
    $dateMetaQuery = array(
    	'key' => 'idealien_rideshare_departureDate',
    	'value' => $dateValue,
    	'compare' => $dateCompare
    );
    
    if ( $dateMetaQuery ) { $meta_query[] = $dateMetaQuery; }
    
    $queryParameters = array(
    	'post_type' => 'idealien_rideshare',
    	'posts_per_page' => '-1',
    	'meta_query' => $meta_query,
        	'orderby' => 'meta_value',
    	'meta_key' => 'idealien_rideshare_event',
    	'order' => 'ASC'
    );

    and nothing happened to the old rides.

    I deleted them & add new ones. Now i'm waiting the september 14 date to see if the new rides with september 13 date, disappear.

  11. teleanu
    Member
    Posted 1 year ago #

    The code haven't worked. The rides are still public.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.