MyBB Community Forums

Full Version: it is possible to show the last threads that I have subscribed?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!!,

it is possible to show the last 10 messages of a forums that I have subscribed

for example display on my profile or page special
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-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?
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
(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
Do I need to add other files?