WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe To Comments Reloaded
[resolved] Modify Subscription Management Page (29 posts)

  1. Robert S
    Member
    Posted 3 years ago #

    Hi,

    In the configuration screen for your plugin under Management Page - you write: "This page does not actually exist in the system, but its link must follow your permalink structure."

    I'm curious whether there's an easy way to modify this page - more specifically I would like to introduce certain widgets in the right column.

    I use the "Executable PHP Widget" plugin which allows me to conditionally select what widgets will appear on various pages. I cannot use this plugin to tailor the Management Page as the page does not actually exist.

    I am using the latest version of your plugin (1.6).

    Some feedback would be much appreciated.

    Thanks,

    Robert

  2. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    You may want to take a look at this page

    http://lab.duechiacchiere.it/index.php?topic=71.0

    Cheers,
    Camu

  3. Robert S
    Member
    Posted 3 years ago #

    Camu,

    Thanks for that link. I tried as suggested but there were issues. I need to take a step back here and explain another issue that is happening which is probably impacting the setting up of a "real Management Page". (I will come back to the setting up of a "real" page later... once the below issue is resolved)

    Despite disabling all plugins (except for yours of course) - I am still having URL issues.

    - I run pretty permalinks in format: .../2011/03/01/sample-post/
    - I searched your forums and found similar issues but not exactly the same.
    - I added a / (forward slash) to "Management Page" option as suggested in one of your forum posts : /comment-subscriptions/
    - All works fine... after clicking "Manage your subscriptions" at bottom of comment the page "Manage your Subscriptions" is displayed.
    - Title of page is fine but URL is weird: .../2010/10/27/

    As I said this even happens when all plugins are deactivated except STCR.

    My temporary work around is to add a redirect from .../2010/10/27/ to /comment-subscriptions/

    Any assistance would be greatly appreciated.

    Thanks,

    Robert

    PS: tell me if I need to start another thread.

  4. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Hi there,

    do you have any special rules in your .htaccess? Could I get access to your site to take a look at your settings and perform some tests?

    Camu

  5. Robert S
    Member
    Posted 3 years ago #

    Camu,

    More than happy to arrange something as far as access.
    I'm reluctant to publish content of .htaccess in this forum but happy to email you.

    What is best email address to contact you on?

    Robert

  6. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Sure, this is understandable. You can contact me at info at (domain removed) dot it. This message will be edited in a few minutes to avoid spammers to grab it, so write it down quick :)

    Camu

  7. Robert S
    Member
    Posted 3 years ago #

    Thanks Camu,

    Email sent and profile created and enabled.

    Cheers,

    Robert

  8. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Thank you,

    got it. I'll try to give it a look as soon as possible.

    Camu

  9. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    So it turns out it's a problem with your template. Please let me know if you have news about it.

    Camu

  10. Robert S
    Member
    Posted 3 years ago #

    I'm not 100% convinced that it is a template issue.

    The "Manage subscriptions" page has a post-ID of 9999999.
    Have delved into template code and it's the-permalink() WP function that retrieves the URL based on the above post-ID.

    How can WP retrieve permalink for a post/page that does not exist?

    Robert

  11. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    You were right indeed! It was a bug in my plugin. Please test the new file I sent you yesterday, if it works, I'll release a new version asap :)

    Camu

    PS: I think you can deactivate my account on your blog now.

  12. Robert S
    Member
    Posted 3 years ago #

    Camu,

    That is great news !
    I did not see the file yesterday.
    Could you resend?
    Will test and provide feedback.

    Robert

  13. Robert S
    Member
    Posted 3 years ago #

    Camu,

    No go...

    After update - Page title on "Manage subscriptions" page still has URL of .../2010/10/27/

    Robert

  14. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Hey Robert,

    as I found out, it seems like your template is not using the_permalink() to generate the link for that page. Again, you may want to create a real page and follow that route, if you don't want to edit your template :)

    Camu

  15. Robert S
    Member
    Posted 3 years ago #

    Camu,

    (See email that I sent you).

    My theme template uses get_permalink() rather than the_permalink() to generate the URL for post.

    Are we getting warmer?

    Robert

  16. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Robert,

    as per my earlier email message, you should be safe in replacing get_permalink() with the_permalink() in your template. No need to create an actual page template, I guess. Please let me know if this solves the problem.

    Camu

  17. Robert S
    Member
    Posted 3 years ago #

    Camu,

    FYI... I contacted the author of the theme that I use (Hybrid) and got the following response:

    "Basically, it is incorrect in making assumptions about whether the_permalink() or get_permalink() is used. The one thing that can be guaranteed of is that the post_link filter hook will be executed when using either function. That's what the author of the plugin should be looking at."

    Basically, I got everything to work that I need for now.

    It sure would be nice to see a native subscriptions management page included in the plugin and I look forward to seeing this plugin evolve.

    In the meantime - anyone reading this post that needs help in getting this plugin to work with the Hybrid theme or any associated child themes - please let me know (via a reply on this topic) and I would be more than happy to assist.

    Robert

  18. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Robert,

    first of all thank you for the couple of beers you offered, I'll probably have them tonight eheh. Back to the issue, the theme author is indeed right, I was using the filter hook suggested by WordPress' core developers in my plugin, or at least the one used in their default theme. Now that I changed it to "post_link" as per their message, get_permalink() works as expected. Thank you for your feedback on this. I'll release a new version that includes this fix soon.

    As for the "native" management page, this was how my plugin worked at first, but then people started to complain because they didn't want this page to show up in their navigation

    http://wordpress.org/support/topic/plugin-subscribe-to-comments-reloaded-feature-ideas?replies=19

    I was a little skeptical at first, but then I agreed to change the way my plugin works, generating this page on-the-fly. See, this is the problem: WordPress has a big community around it, and of course there will always be users who want A and others who want the opposite of A. It's impossible to make everybody happy, but so far the approach I've followed seems to be the most convenient for the majority of my plugin's users.

    I know this means having problems in cases like yours, but I'm more than happy, as you saw, to offer my help to solve them. Also, this workaround of creating a page and assigning it to Subscribe to Comments, should help in most of the situations out there.

    Long story short, please let me know if you have any questions about the page you created and how to load widgets in that case.

    Have a nice weekend
    Camu.

  19. Robert S
    Member
    Posted 3 years ago #

    Camu,

    Thank you for persisting. I look forward to testing the fix once you have released the update.

    No worries about the native management page. Now that I can show "Manage subscriptions" page without using any trickery (after I get my hands on your fix) - the need to do so is probably not there. In this case I'm happy to go along with the general consensus.

    Finally, I have rated your plugin 5 stars (you deserve it) and also listed it on the plugins I use page on my site: http://www.trupela.com/plugins/

    Enjoy the beer(s) !!

    Cheers,

    Robert

  20. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Fix sent :) Feel free to test in and give your honest feedback...

    Camu

  21. Robert S
    Member
    Posted 3 years ago #

    Camu,

    Works like a dream.
    Onya mate!!

    Robert

  22. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Yay, dude :) I'm so happy we smashed this "bug" together. Thanks.

    Camu.

  23. Robert S
    Member
    Posted 3 years ago #

    Camu,

    Almost!

    What I'm finding now is that any posts I display in the sidebar on the "Manage subscriptions" page has the correct title but the URL for each post is:

    http://www.trupela.com/comment-subscriptions/

    I have tried get_permalink() and also the_permalink() but same issue. The same code on all other pages displayes correct title and correct URL of the post.

    Something to reflect on whilst you having those beers !

    Robert

  24. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    See? This is what happens when I start coding BEFORE having my beer :) I should never do that, I know. Now that I had my Becks, everything is much more clear to me. I'll send you the new version asap. Thank you for being my beta tester here.

    Camu

  25. Robert S
    Member
    Posted 3 years ago #

    Works like a dream bro !
    You are da man !!

    Keep drinking Becks and coding like that - your plugin should hit 25,000 downloads by end of the month and 100,000 by end of 2011.

    Robert

  26. Robert S
    Member
    Posted 3 years ago #

    Camu,

    The only thing I did have to do (after a few beers of course!) - was filter the breadcrumb on the "Manage subscriptions" page to display the trail as a page rather than a post. I don't have an issue with this.

    Robert

  27. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Could you please elaborate on this? How did you "filter" the breadcrumbs? I think I know what the problem is, in this case. The page generated by StCR is half post and half page :)

    But the next release should fix this as well, if the latest file I sent you works fine :) Thank you for helping testing this new release!

    Camu

  28. Robert S
    Member
    Posted 3 years ago #

    Camu,

    Dreaming after a few Becks must have been nice!

    You hit the head on nail x2. The latest file you sent me shows correct breadcrumb (for a page) and does not display navigation as WP now (since latest fix) sees "Manage subscriptions" as a page and not post.

    I'm happy to announce that "Manage subscriptions" page is now working 100% correct - without any sly tricks on the side!

    What are you doing drinking Becks anyway... it's an american beer! Surely living as close as you do to the Trapist monasteries - you would have indulged in a better ale!

    Take care bro and thanks for including me in the testing.

    Robert

  29. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Wow, I'm impressed by how enlightening a beer can be :) I'm glad we scored this great touchdown! I'll be working on the other features and hopefully the new version will be ready by the end of March.

    As for the beer, you're right... next time I'll get something different.

    Camu

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic