For your information Subscription Manager never worked for me when using wp 2.8.x, something is wrong with the js.
Another problem is this “Pingbacks are subscribed” http://wordpress.org/support/topic/320501?replies=5
I guess I am really discussing this issue is two places now. Here is what I just posted on the other forum topic:
I just dug some more on this issue and I think I know what the problem is. My “Manage Your Subscriptions” URL comes over like this:
http://www.hairextensionsreviews.com/?wp-subscription-manager=1&email=echo4dr%40yahoo.com&key=0d21c1739aa7eabff8221b7605a26931&ref=http%3A%2F%2Fwww.hairextensionsreviews.com%2Farticles%2Fgeneral-articles%2Fwhat-is-hand-tied-hair%2Fcomment-page-1%2F
If I chop off the &ref=http%3A%2F%2Fwww.hairextensionsreviews.com%2Farticles%2Fgeneral-articles%2Fwhat-is-hand-tied-hair%2Fcomment-page-1%2F
part of the string then the URL is good.
This also is true of the URL made available to the author, which is:
http://www.hairextensionsreviews.com/?wp-subscription-manager=1&ref=http%3A%2F%2Fwww.hairextensionsreviews.com
. If I access this I get nothing, but if I take off the &ref=http%3A%2F%2Fwww.hairextensionsreviews.com
string then it works just fine. Its ugly, but it works.
So…. what is the point of that “ref” variable? Removing it seems to fix things considerably. Does anyone else have trouble with this? Do theirs look differently? I am very curious before I start creating my own “new version” of this plug-in.
Thanks!
I didn’t think of any valuable reason to retain the “ref” query argument / variable in the Subscription Manager and no one spoke up here or in the other topic. So I went in and just commented-out the following line in the “manage_link
” function of the plugin:
//$link = add_query_arg('ref', rawurlencode('http://' . $_SERVER['HTTP_HOST'] . attribute_escape($_SERVER['REQUEST_URI'])), $link);
After I did this, the Subscription Manager URLs listed on the posting worked for me; for both my test user and for the article author/site administrator.
I would like to declare success, but I later discovered the purpose of the “ref” variable. It feeds the “Return to the page you were viewing” URL on the Subscription Manager. It would seem that the value expected here is the part of the URL following the “http://website.com/
” portion, like this (http://www.hairextensionsreviews.com/?wp-subscription-manager=1&email=echo4dr%40yahoo.com&key=0d21c1739aa7eabff8221b7605a26931&ref=articles%2Fgeneral-articles%2Fwhat-is-hand-tied-hair%2Fcomment-page-1%2F). Perhaps, the culprit is one of the following:
- my site’s permalink configuration is not standard
- WP 2.8.x does something different such that it feeds this plugin a permalink different than is expected
- WP 2.8.x variables differ slightly so that it prevents the plugin from parsing the permalink properly
I will dig on this more, but I wanted to share this for now, hoping that someone might have some input.
OK, I think I fixed my issue without removing any functionality. I also made it compatible with my theme.
Code changes for Subscription Manager fix:
Original code line from “manage_link
” function:
$link = add_query_arg('ref', rawurlencode('http://' . $_SERVER['HTTP_HOST'] . attribute_escape($_SERVER['REQUEST_URI'])), $link);
MODIFIED code line from “manage_link
” function:
$link = add_query_arg('ref', rawurlencode(attribute_escape($_SERVER['REQUEST_URI'])), $link);
In order to make this plugin compatible with my theme (after checking the option for “Use custom style for Subscription Manager”) I had to replace the first <div class="wrap">
of the Subscription Manager HTML code with <div id="content">
. Also I had to take is closing </div>
tag and move it below the closing </div>
tag of the “Adavanced Options section:
an excerpt
</fieldset>
<?php } ?>
<?php } //end if not in do not mail ?>
</div> <!-- class="wrap" -->
</div> <!-- id="content" -->
<?php if ( $sg_subscribe->standalone ) : ?>
<?php if ( !$sg_subscribe->use_wp_style ) :
echo $sg_subscribe->after_manager;
I need to test this more, but this appears to have corrected my problems. Any comments would be appreciated.
Just to continue my one-way conversation here…
I think I have it all configured and working/looking just the way I like now. You can have a look by visiting my test grounds at http://www.hairextensionsreviews.com/. Feel free to leave a comment and try it out, if you are curious about this plugin or my tweaks to it. I will approve it within 24 hours and then you should be able to get your email updates.
The 2.1.2 version worked fine for me at cphpvb.net. Just few modifications was needed for translation.
@miotracosa: Thank you. I applied your suggested changes to my copy of the unofficial 2.1.3 and I will see if it causes some problem in my setup, which was working fine with 2.1.2, in which case I’ll report here.
Okay, here I am. While almost everything I did following instructions in these threads helped improve significantly the unofficial 2.1.3 version, one change didn’t work well: changing the divs around. It caused problems in positioning the sidebar and footer on the Swift theme, so I reversed this change and with the divs where they originally where everything is working perfectly.
My advice to those implementing these changes is thus that you apply everything, except for the div change. If you blog works and render correctly, that’s it. Only if something renders strangely try changing divs around.