evocativemedia

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • in reply to: Display number of favourites for listing #510306

    evocativemedia
    Expired Member
    Post count: 28

    Kiran you are amazing, this works (of course)! Very nice to see that you implemented this for future version. I’ll keep an eye out on the repo for more interesting patches..

    Minor UX change I made:

       
    if($count == 1) {
      $label = '<span>' . $count . '</span> Favorite';
    } else {
      $label = '<span>' . $count . '</span> Favorites';
    }
    

    Thank you so much for implementing this so swiftly.

    in reply to: Display number of favourites for listing #510060

    evocativemedia
    Expired Member
    Post count: 28

    Minor UX notice: when the callback executes, database counts are not updated yet so although the favourite button invokes an ajax-request, the count in the favourite text is not properly updated.

    in reply to: Display number of favourites for listing #510049

    evocativemedia
    Expired Member
    Post count: 28

    Wow Kiran thanks for this!

    I had to change {$wpdb->usermeta} to wp_usermeta in the SQL statement to make it work, so from:

    "SELECT COUNT(*) FROM {$wpdb->usermeta} WHERE meta_key = %s AND meta_value LIKE %s"

    to:

    "SELECT COUNT(*) FROM wp_usermeta WHERE meta_key = %s AND meta_value LIKE %s"

    Thank you so much!

    Kind regards

    in reply to: Display number of favourites for listing #509541

    evocativemedia
    Expired Member
    Post count: 28

    Thanks Alex for passing it on, fingers crossed for a updated future version. It would be really nice to actually use the favorite counts for popular/trending listings.

    Kind regards

    in reply to: Listing Manager #509540

    evocativemedia
    Expired Member
    Post count: 28

    1. Ah that makes sense, that’s the way it is then!

    2. Alright, then I’ll just think of something until an update comes by.

    Thanks for your explanation Stiofan!

    Kind regards

    in reply to: Auto assign listings to admin #509391

    evocativemedia
    Expired Member
    Post count: 28

    Perfect, works like a charm! Thank you very much!

    in reply to: Auto assign listings to admin #508566

    evocativemedia
    Expired Member
    Post count: 28

    I know you guys are very busy, but I was wondering whether any progress has been made on this topic.

    in reply to: Display number of favourites for listing #505750

    evocativemedia
    Expired Member
    Post count: 28

    Oke, if there is not one: I guess I would have to check for each listing against all members whether it is added as favourite by them?

    Wouldn’t this be a nice feature? Opens up possibilities for lists of popular listings etc…

    in reply to: Auto assign listings to admin #505670

    evocativemedia
    Expired Member
    Post count: 28

    I don’t want to be impatient, but any idea?

    in reply to: add php content before comments #505494

    evocativemedia
    Expired Member
    Post count: 28

    Superb Alex, the custom shortcodes work like a charm!

    Thank you very much for your help.

    in reply to: add php content before comments #505285

    evocativemedia
    Expired Member
    Post count: 28

    Yes I know all that, it does not enable me to put custom php code somewhere. So I’ll repeat myself:

    I want to add php code between the content constructed using shortcodes and the comment section on a details page. Is there a hook like ‘before_comments’ or something?

    in reply to: Auto assign listings to admin #505113

    evocativemedia
    Expired Member
    Post count: 28

    Yes that suggestion would work. I am working on a community in which each member can add and edit places (I changed user role capabilities to let a certain role be able to edit other’s posts), so that information can stay up to date. When they add a listing, it should be assigned to the admin so that no one actually ‘owns’ a listing.

    So for ‘gd_places’, I can use the post publish action? Where can I find documentation on this or where can I find this action?

    Thanks Stiofan!

    in reply to: Favorite listings layout #496102

    evocativemedia
    Expired Member
    Post count: 28

    I can recommend to put the function contents in a wrapper to check for existence of the respective selectors, otherwise an error is given for ‘geodir_list_view_select()’. Hence:

    
    jQuery(document).ready(function(){
       if (jquery(".geodir-list-view-select #gd_list_view")[0]){
          ...
       }
    });
    
    in reply to: Favorite listings layout #496020

    evocativemedia
    Expired Member
    Post count: 28

    Yes that’s it! Thank you!

    in reply to: Favorite listings layout #495960

    evocativemedia
    Expired Member
    Post count: 28

    Hmm it doesn’t work here. I have added 2 screenshot:
    Screenshot 1 (I selected all text): you can see that grid 2 is selected, however the layout still remains as list.
    Screenshot 2: this is how the layout looks when i manually select grid 2.

Viewing 15 posts - 1 through 15 (of 25 total)