MyBB Community Forums
Not working Thread/Forum Subscriptions - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Not working Thread/Forum Subscriptions (/thread-223732.html)



Not working Thread/Forum Subscriptions - ShadowOne - 2019-07-02

I've noticed that when I try to subscribe/unsubscribe to an existing thread or existing forum, I get a 404 not found page.

This is the link I see in my browser: https://SITE.org/usercp2.php?action=removesubscription&tid=ID&my_post_key=KEY.

But this doesn't happen when I post a new thread or make a reply and subscribe at that time. In this case subscriptions work well.
Any hint?


RE: Not working Thread/Forum Subscriptions - Ashley1 - 2019-07-02

usercp2.php no longer exists.

it should be usercp.php, so wherever you have usercp2.php, change it to usercp.php


RE: Not working Thread/Forum Subscriptions - ShadowOne - 2019-07-02

(2019-07-02, 02:31 PM)Ashley1 Wrote: usercp2.php no longer exists.

it should be usercp.php, so wherever you have usercp2.php, change it to usercp.php

I was convinced about this.
So I'd need a core edit where I replace "usercp.php" wherever there is "usercp2.php", inside all affected files like showthread.php / forumdisplay.php?


RE: Not working Thread/Forum Subscriptions - Ashley1 - 2019-07-02

No need to touch the core files.

you will see the link that contains usercp2.php in

forumdisplay_threadlist template

and i think the other one is showthread_subscription template.

just edit them there.


RE: Not working Thread/Forum Subscriptions - ShadowOne - 2019-07-02

(2019-07-02, 02:37 PM)Ashley1 Wrote: No need to touch the core files.

you will see the link that contains usercp2.php in

forumdisplay_threadlist template

and i think the other one is showthread_subscription template.

just edit them there.

Found inside forumdisplay_threadlist, edited. Now it works when I subscribe to forums.

showthread_subscription instead contains the correct link to usercp.php
I'm scraping other showthread templates.


RE: Not working Thread/Forum Subscriptions - NIBS - 2021-05-19

Thank you for the starter, I figured out the rest.

So here's the full solution:

You need to change the "usercp2.php" to usercp.php
in three templates:

forumdisplay_threadlist
showthread - (in only that basic/first one)
and
usercp_addsubscription_thread

After that, subscribing/unsubscribing to forums and individual threads works.

+ If you want the link's text to say something other than "Subscribe to this thread" or "Unsubscribe from this thread", then you'll need to do core level changes. But it's simple:

Go to the files of the site in question.
Then inc --> languages --> english --> showthread.lang.php

There's a long list of text links which text you can edit. Find "Subscribe to this thread" and "Unsubscribe from this thread" and change them to whatever you want.