![]() |
Including custom PHP file and header / footer
Hello!
I'm hoping someone has had this issue and was able to find a solution... I just upgraded from vb 4 to vb 5 connect, and to my disappointment, I realized that the plugins system was no longer supported. I had a plugin that included a PHP file that generated a user session from our main website, and then passed rendered HTML in a variable, that we simply included above the header. For example, this was my plugin code before: Code:
include('/home/webapps/current/ext/forum_user_session.php'); Any way to make this work in vb 5 Connect? thank you in advance! |
Build an API to expose the data that you need exposed, call the API within the template using {vb:data} calls, push that data to your custom templates from within the template.
Easy. :) |
In case someone is looking for a more helpful in-depth explanation, I found it here:
https://vborg.vbsupport.ru/showthread.php?t=302307 |
All times are GMT. The time now is 10:36 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|