aby ways to enable us to post answers or reply to questions?

This topic contains 9 replies, has 3 voices, and was last updated by  Paolo 7 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #284948

    Myrianne
    Expired Member
    Post count: 48

    I’ve found myself having developed a solution for this post and would like to supply the answer to the person

    https://wpgeodirectory.com/support/topic/my-dashboard-unnecessary-submenus/

    but have no permission to do so at the moment in the forum… maybe you could enable us to help each other too – that’s what life is about aint it 😉 would probably save you some work in the end too.

    here is the script that solved the same issue that this person was mentioning:

    
    
    
    /* on-canvas account menu my listing convert select to link */
        var myListings_link = $('select#geodir_my_listings option:nth-of-type(2)').val();
        var flat_myListings_link = "<li><a href='"+ myListings_link + "'>Mes Annonces</a></li>";
        $('.geodir-loginbox-list').prepend(flat_myListings_link);
        $('#geodir_my_listings_chosen').css('display','none !important');
    #284960

    Myrianne
    Expired Member
    Post count: 48

    how would I go about to override the geodir_loginwidget_output() function in /wp-content/plugins/geodirectory/geodirectory-functions/general_functions.php ?

    im looking for ways to modify without losing updatability or do some weird js hacks like the one ive posted up this discussion…

    btw… ill have lots of questions at first, but ill get the hang of it and stop bugging you so often soon!

    #285654

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Posts with no activity for 30 days are automatically closed.

    If you explain what exactly you are trying to achive i will tell you the best way to do it 🙂

    Stiofan

    #286180

    Myrianne
    Expired Member
    Post count: 48
    #286182

    Myrianne
    Expired Member
    Post count: 48

    id like to override some functions you guys define in your plugin with my own modified version of it. maintaining plugin updatability

    #286184

    Paolo
    Site Admin
    Post count: 31206

    for example ?

    #286185

    Myrianne
    Expired Member
    Post count: 48

    here is my original request… reply #284960

    how would I go about to override the geodir_loginwidget_output() function in /wp-content/plugins/geodirectory/geodirectory-functions/general_functions.php ?

    #286186

    Paolo
    Site Admin
    Post count: 31206

    Personally I would copy the loginbox widget class from geodirectory_widgets.php into your child theme functions.php file and unregister the original widget. At that point you can rebuild the entire widget.

    Given that geodir_loginwidget_output() is called from within that class, you can copy it, rename it and change it as you wish without fear of losing changes during updates.

    I’m asking to Stiofan to let us know if there is an easier way, but I know already that he’ll ask WHAT you want to do differently with that function, because there might be a hook.

    Thanks

    #304333

    Myrianne
    Expired Member
    Post count: 48

    great, thanks.

    #304334

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket