2018-02-01, 12:24 AM
2018-02-01, 04:39 AM
You can view all your subscriptions at usercp.php?action=subscription. For the ones on here it is this url: https://community.mybb.com/usercp.php?ac...scriptions
2018-05-02, 01:34 AM
(2018-02-01, 04:39 AM)dragonexpert Wrote: [ -> ]You can view all your subscriptions at usercp.php?action=subscription. For the ones on here it is this url: https://community.mybb.com/usercp.php?ac...scriptions
Hi, thanks for your reply, but it is possible to call that function on another page?
2018-05-02, 01:45 AM
You should have a list of templates under your theme > templates > user CP then you'll see templates for:
usercp_forumsubscriptions
usercp_forumsubscriptions_forum
usercp_forumsubscriptions_none
usercp_latest_subscribed
usercp_latest_subscribed_threads
Perhaps in one of those you could reference the template variable e.g. {$latest_subscribed_threads} somewhere in another template? I think the variable might be locked to being under user cp templates though. I'd say you'll have to edit some php like in this post so that you can reference the template on the right page: https://community.mybb.com/post-603543.html
usercp_forumsubscriptions
usercp_forumsubscriptions_forum
usercp_forumsubscriptions_none
usercp_latest_subscribed
usercp_latest_subscribed_threads
Perhaps in one of those you could reference the template variable e.g. {$latest_subscribed_threads} somewhere in another template? I think the variable might be locked to being under user cp templates though. I'd say you'll have to edit some php like in this post so that you can reference the template on the right page: https://community.mybb.com/post-603543.html
2018-05-02, 02:35 AM
(2018-05-02, 01:45 AM)Downfall Wrote: [ -> ]You should have a list of templates under your theme > templates > user CP then you'll see templates for:
usercp_forumsubscriptions
usercp_forumsubscriptions_forum
usercp_forumsubscriptions_none
usercp_latest_subscribed
usercp_latest_subscribed_threads
Perhaps in one of those you could reference the template variable e.g. {$latest_subscribed_threads} somewhere in another template? I think the variable might be locked to being under user cp templates though. I'd say you'll have to edit some php like in this post so that you can reference the template on the right page: https://community.mybb.com/post-603543.html
I intend to make a custom page, when the user login then redirects to the custom page and get latest subscription and other fuctions
I have create a new global template with the name "customwelcome" and i add
{$latest_subscribed_threads}
{$lang->postbit_status}
{$online_status}<br />
And to index.php, i add (To try)
require_once MYBB_ROOT."inc/functions_post.php";
require_once MYBB_ROOT."inc/functions_user.php";
require_once MYBB_ROOT."inc/class_parser.php";
eval('$customwelcome ="'.$templates->get('customwelcome').'";');
and called that template as {$customwelcome} in index , work (the call), but not display latest subscription
2018-05-03, 04:28 PM
Do I need to add other files?