alphavader

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 67 total)
  • Author
    Posts
  • in reply to: Edit Place button for "non admin – users" #348462

    alphavader
    Buyer
    Post count: 75

    Here the Code for Hiding the Box, when user is not logged in.
    (worked for me – maybe for other users aswell)

    
    
    // Add and Remove class when user is logged in - hide loginbox
    if ( is_user_logged_in() ) {
    // if logged in - remove the class
    function remove_body_class($wp_classes)
     {
     foreach($wp_classes as $key => $value)
     {
     if ($value == 'hide_edit_button_logged') unset($wp_classes[$key]); //  Replace "has-right-sidebar" by Your Class that yoU Want to Remove
     }
     
     return $wp_classes;
     }
    } else {
    //if not logged in - add class to the body
    function my_custom_body_class($classes) {
        // add 'my-class' to the default autogenerated classes, for this we need to modify the $classes array. 
        $classes[] = 'hide_edit_button_logged';
        // return the modified $classes array
        return $classes;
    }
     
    // add my custom class via body_class filter
    add_filter('body_class','my_custom_body_class');
    }
    

    And CSS:

    
    
    .hide_edit_button_logged .geodir-details-sidebar-user-links {
      display:none;
    }

    Thanks

    in reply to: Edit Place button for "non admin – users" #348416

    alphavader
    Buyer
    Post count: 75

    THanks –

    this Code helped me with that

    
    
    // Custom Info Sidebar Order
    function gd_custom_change_sidebar_content_order() {
        return array(
           
            'geodir_detail_page_more_info',
    	  'geodir_edit_post_link'
        );
    }
    add_filter('geodir_detail_page_sidebar_content', 'gd_custom_change_sidebar_content_order');

    I also would provide alot of snippets from this project – do you have a wiki or interest in that ?

    in reply to: Edit Place button for "non admin – users" #348164

    alphavader
    Buyer
    Post count: 75

    Thanks man, that helped alot.
    Is it possible to put the geodir-details-sidebar-user-links BELOW the infobox ?

    in reply to: Edit Place button for "non admin – users" #348002

    alphavader
    Buyer
    Post count: 75
    This reply has been marked as private.
    in reply to: Edit Place button for "non admin – users" #348000

    alphavader
    Buyer
    Post count: 75

    I dont want to have the favorite – so when its now my own project – there is only the favorite button – but its disabled.

    Is there a way only to show the edit button and if the box is empty – then no box at all ?

    in reply to: Edit Place button for "non admin – users" #347996

    alphavader
    Buyer
    Post count: 75
    This reply has been marked as private.
    in reply to: Edit Place button for "non admin – users" #347992

    alphavader
    Buyer
    Post count: 75

    Hi,

    thanks alot – did you do the thing described above ?
    When the user isnt logged in – there is still this “box” – can i remove this ?

    Thanks – the button is exactly what i wanted.

    in reply to: Edit Place button for "non admin – users" #347900

    alphavader
    Buyer
    Post count: 75
    This reply has been marked as private.
    in reply to: Edit Place button for "non admin – users" #347899

    alphavader
    Buyer
    Post count: 75

    Can you have a look please.

    Also is it possible to add it via Codesnipped.

    Just a button “edit” – under the info-sidebar-area.

    THe button only appears when the project owner is logged in and views his project
    in detail.

    When he clicks on the button, the project goes in the preview mode and he can edit things.

    This would be so clean and nice!


    alphavader
    Buyer
    Post count: 75

    Thanks alot – looks good!
    Can Kiran please say what he changed?
    Cause this is an Test Server – iam working on another branch and
    the release will be this evening.
    Also id like to know if he had change some core files – or iam able to update ?

    Thanks for the great support. I will recommend this plugin
    to further clients.


    alphavader
    Buyer
    Post count: 75

    one open thing – the translating but i described on the first post!


    alphavader
    Buyer
    Post count: 75

    I love u – thanks alot!

    in reply to: remove Frontend Description from Detail Place Box #347475

    alphavader
    Buyer
    Post count: 75

    THanks alot thats it!
    So i have to edit this css for all custom post types.
    Maybe ill give them the same class.

    in reply to: remove Frontend Description from Detail Place Box #347464

    alphavader
    Buyer
    Post count: 75
    This reply has been marked as private.
    in reply to: Edit Place button for "non admin – users" #347450

    alphavader
    Buyer
    Post count: 75

    hmm then i must have disbaled them somehow.
    Can i add a button with calling this function ?

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