Forums

[Plugin: GoCodes] GoCode ignoring PermaLink status (2 posts)

  1. callumw
    Member
    Posted 2 years ago #

    Hi
    I installed GoCodes and have found a problem.

    On my Site: http://www.CallumW.com/blog I added a test GoCode:
    News

    I set the target to be:
    http://news.bbc.co.uk

    But the link as shown in "Manage GoCodes" doesn't work:
    http://www.callumw.com/blog/go/news/

    My Permalink paths are set to custom:
    /index.php/%year%%monthnum%/%postname%/

    I tested it and the following link works:
    http://www.callumw.com/blog/index.php/go/news/

    So the GoCode does work, but it's not displayed correctly in the Manage GoCodes section of the Admin Page. It's just ignoring the Permalink information

    http://wordpress.org/extend/plugins/gocodes/

  2. callumw
    Member
    Posted 2 years ago #

    I made a hard-code change to as a workaround until this is fixed (hopefully it will be)

    I added the '/'.index.'.'.php. to the code to force it to display correctly in the Manage GoCodes page

    For those having the same issue, open menus.php in a txt editor.
    Line 141 reads as:

    echo '<tr class="alternate"> <td>'.$gocode->key1.'<small>'.$basewpurl.'/'.$trigger.'/'.$gocode->key1.'/</small></td> <td>'.wsc_gocodes_truncate($gocode->target).'</td> <td style="text-align: center">'.$gocode->hitcount.'</td> <td>id.'">Edit</td> <td>id.'" class="delete">Delete</td> </tr>';

    I changed it to the following:

    echo '<tr class="alternate"> <td>'.$gocode->key1.'<small>'.$basewpurl.'/'.index.'.'.php.'/'.$trigger.'/'.$gocode->key1.'/</small></td> <td>'.wsc_gocodes_truncate($gocode->target).'</td> <td style="text-align: center">'.$gocode->hitcount.'</td> <td>id.'">Edit</td> <td>id.'" class="delete">Delete</td> </tr>';

    This workaround now works fine :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags