MyBB Community Forums
[How To?] ... show subscriptions in the header template? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: [How To?] ... show subscriptions in the header template? (/thread-157969.html)



... show subscriptions in the header template? - RaeHoward9 - 2014-08-23

Hello, 

I basically wish to show a users subscriptions with threadname and lastpost(er) and a users own last threads in / via the header template of my forum. 


Like:
Your latest threads
Thread Name 1
Thread Name 2

Your subscriptions
Thread Name 1, lastpost yesterday, 2pm
Thread Name 2, lastpost today, 1pm



Can anyone tell me, how this would be possible? I tried to change a plugin which shows subs/threads on the portal to show them on the index, but it didn't work.


RE: ... show subscriptions in the header template? - .m. - 2014-08-23

which plugin you have tried to modify to show on the index ? can you give its link ..


RE: ... show subscriptions in the header template? - RaeHoward9 - 2014-08-24

Yeah, sure: https://www.mybboard.de/erweiterungen/16x/plugins-verschiedenes/portalabo/

It's designed to show subscriptions on the portal page, which works fine. But when I change the portal parts of run hooks e.g. and the others to the index stuff, it's not showing anything.


RE: ... show subscriptions in the header template? - .m. - 2014-08-24

^ have you added {$portal_abo} in the index template & changed below two lines in the plugin file ..
if(my_strpos($_SERVER['PHP_SELF'], 'portal.php'))
$plugins->add_hook("portal_start", "portal_abo_do");



RE: ... show subscriptions in the header template? - RaeHoward9 - 2014-08-30

Thank you, I just tried, it didn't work. Besides, I want it to show up in the header template, not in the index template itself. (: