pawanahluwalia (@pawanahluwalia)

Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • In reply to: Forum url changes

    pawanahluwalia
    Participant

    @pawanahluwalia

    Thank you, that works perfectly! 🙂

    Thank you for your patience and help. I really appreciate it!

    In reply to: Forum url changes

    pawanahluwalia
    Participant

    @pawanahluwalia

    I have managed to analyse the subpage urls further and have verified that get_permalink() gives the correct urls which matches the browser address line.

    get_page_link() doesn’t do this.

    So thanks for suggesting to use get_permalink() instead of get_page_link().

    But I still don’t know why it is not doing the same thing on the forum root page.

    In reply to: Forum url changes

    pawanahluwalia
    Participant

    @pawanahluwalia

    I mentioned I had tried get_permalink() above, below the post where you first suggested it and said it didn’t match.

    This is what I am getting on the root forum page:

    the displayed url: mywebsite.com/qaforums/
    the get_page_link: mywebsite.com/forum_name3/
    the get_permalink: mywebsite.com/qaforums/forum/forum_name3/

    However, when I try and view these on any subpages of mywebsite.com/qaforums/, nothing is returned. I don’t know why.

    In reply to: Forum url changes

    pawanahluwalia
    Participant

    @pawanahluwalia

    I am just trying to understand how the plugin works and why the php code is not giving the correct url that matches what is visible in the browser. I have tried your suggestions but I still can’t determine why the urls being generated by either get_page_link() or get_permalink() are different to the ones being displayed in the browser address line.

    In reply to: Forum url changes

    pawanahluwalia
    Participant

    @pawanahluwalia

    My original questions above.

    In reply to: Forum url changes

    pawanahluwalia
    Participant

    @pawanahluwalia

    How do we address this question to the plugin authors?

    In reply to: Forum url changes

    pawanahluwalia
    Participant

    @pawanahluwalia

    I haven’t tried adding an extra forum to test it. I am just assuming it defaults to the highest forum ID, which is what it is currently doing.

    In reply to: Forum url changes

    pawanahluwalia
    Participant

    @pawanahluwalia

    I don’t think that is necessary. Using the example you have used above, you would have to change the bold part each time a new forum is added.

    if (get_page_link() == ‘mywebsite.com/forum_name3/forum_name3/’)

    How could this be avoided?

    In reply to: Forum url changes

    pawanahluwalia
    Participant

    @pawanahluwalia

    The only trouble with this solution is, it is not permanent. You would need to the change the code each time a new forum is added.

    In reply to: Forum url changes

    pawanahluwalia
    Participant

    @pawanahluwalia

    Thanks!

    However, is_bbpress() only seems to be true if you are on the root forum page.

    How can I test for any forum page?

    I tried

    echo get_permalink();

    on a forum page, but it does not display anything. It does display it on the root forum page, but it does not match the root forum page permalink. It again shows the highest Forum ID permalink instead.

    Presumably the page is being created in code and is overwriting the content of the current forum page.

    Any further suggestions?


    pawanahluwalia
    Participant

    @pawanahluwalia

    How do I post a url as simply text, without it changing into a url when I submit?


    pawanahluwalia
    Participant

    @pawanahluwalia

    Sorry, I certainly value those who volunteer their time and help out others. I truly thank them. I was simply asking a question how long it took to approve a post. I will repost. Thanks!

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