Fixed Dashboard Links for expired listings...

Discussion in 'GeoCraft WordPress Theme' started by ipotent, Feb 3, 2013.

  1. ipotent

    ipotent Guest

    Joined:
    Jan 27, 2013
    Messages:
    14
    Likes Received:
    0
    For anyone who was having issues being able to click the edit or delete buttons on expired listings from Dashboard...the below code is a fix for you.

    You just need to edit lines 188 and 189 of dashboard_functons.php (found in /library/controls/dashboard) to the following:

    Line 188

    <span class="modify"><a href="<?php echo home_url("/dasboard/?page_id=$page_id&action=edit&pid=" . $listing->ID); ?>"><?php echo EDIT; ?></a>&nbsp;|&nbsp;

    Line 189

    <a href="<?php echo home_url("/dasboard/?page_id=$page_id&action=delete&pid=" . $listing->ID); ?>"><?php echo DELETE; ?></a>&nbsp;|&nbsp;<a target="new" href="<?php echo $listing->guid; ?>"><?php echo VIEW; ?></a></span></td>

    Hope this helps. Nitesh, Nareej - I know you two are busy with lots of other fixes...so hope this helps lighten the load!
     
  2. aliounn

    aliounn Member

    Joined:
    Dec 7, 2012
    Messages:
    136
    Likes Received:
    6
    Hi Ipotent,
    I have got this problem today, i still getting multiple emails for listing reactivation (more than a thousand !! ) and tried to delete expire listing from my dashboad with no succès. it's allways redirecting me to the home page.
    I tried to use your code above , but it dont work , i'm redirected to an non-existent URL (domain.com/dasboard/?action=delete&pid=113 ) !!
    I saw that you add /dasboard to the URL but it's not working for me.
     

Share This Page