bustel (@bustel)

Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • @bustel

    Participant

    The problem of those problems is when you don’t want to set a standard permalink, I want to set my own permalinks and then I get those problems… there must be a better way to get it to work, isn’t it? So the programmer of this script have to look forward for a solution for those problems. I’m not a programmer, i know a little bit that’s it. I look forward to an update of this script. 🙂 Congratulations to the programmer, it’s a nice script!

    @bustel

    Participant

    After a long search I found a solution for my problem…

    instead of:
    $uri = bbp_get_reply_edit_url( $r['id'] );
    set:
    $uri = $_SERVER['REQUEST_URI'].( '/../../../give-reaction/' . $r['id'] . '?edit=1' );
    on line: 1923

    @bustel

    Participant

    And if i set it to:
    $uri = ( '?edit=1' );
    then I get the topic to change and not the reply….

    @bustel

    Participant

    It works for the topics but not for the replies, I don’t know why it doesn’t work…

    I have tested with
    1)
    $uri = ( '/?edit=1' );
    in the topic: http://www.mysite.com/?edit=1
    it isn’t correct
    it go to the home of the site, that’s it.

    2)
    $uri = bbp_get_reply_edit_url( $r['id'] ) . '?edit=1';
    in the topic: http://www.mysite.com/map/map/1827/edit/?edit=1
    and it isn’t correct eather…
    it says: The page you requested could not be found.

    @bustel

    Participant

    damned… this is not a solution for wp-content/plugins/bbpress/includes/replies/template.php …

    @bustel

    Participant

    So you have to edit 2 files:
    1) wp-content/plugins/bbpress/includes/topics/template.php
    2) wp-content/plugins/bbpress/includes/replies/template.php

    normally it should work, i have tested and it’s working fine for me… maybe the newer version should be adapted with these new functions?

    @bustel

    Participant

    Do the same thing for:

    edit function: bbp-reply-edit-link
    in the file: wp-content/plugins/bbpress/includes/replies/template.php

    on line 1922

    // Get uri
    // $uri = bbp_get_reply_edit_url( $r['id'] );
    $uri = ( '?edit=1' );

    @bustel

    Participant
    // Get uri
    // $uri = bbp_get_topic_edit_url( $r['id'] );
    $uri = ( '?edit=1' );

    @bustel

    Participant

    I have found a solution for this problem:

    edit function: bbp_get_topic_edit_url
    in the file: wp-content/plugins/bbpress/includes/topics/template.php

    search for: // Get uri (normal on line: 2507)

    set $uri = bbp_get_topic_edit_url( $r[‘id’] );
    as text like this: // $uri = bbp_get_topic_edit_url( $r[‘id’] );
    then put this after: $uri = ( ‘?edit=1’ );

    so you get this:

    // Get uri
    // $uri = bbp_get_topic_edit_url( $r[‘id’] );
    $uri = ( ‘?edit=1’ );

    save the php file and upload and overwrite the file on your site.

    @bustel

    Participant

    when I set it manuel this: ‘?edit=1’ after the url, then it works… but it’s not a solution…

    @bustel

    Participant

    Is there any solution for this problem? Is it a bug?

    @bustel

    Participant

    I have tested the permalinks, I set it to “standard”, then the problem is solved and the url shows: “http://www…../?topic=ah-les-belles-bacchantes-versie2&edit=1”. When I set the permalinks again to “/%postname%/%category%/” the problem is back, it show the follow url: “http://www…./…/…/edit/”.

    @bustel

    Participant

    the permalinks on my website are: /%postname%/%category%/

Viewing 13 replies - 1 through 13 (of 13 total)