markuswarren
07-07-2009, 10:52 AM
Hello all,
I've followed the advice in this (https://vborg.vbsupport.ru/showthread.php?t=119933) thread on how to add a custom template using plugins and it's working perfectly for a custom template I've setup to be displayed in the header template.
I wanted to do something similar for the postbit_legacy template. I have badges that appear in the user's postbit depending on certain criteria, be they picked up from a custom profile field or via membership of a usergroup.
At present my code for this is within the postbit_legacy template and thus when I need to edit the badge code I need to edit postbit_legacy. I thought it would be somewhat cleaner, and prevent me from accidentally deleting something, if I used a custom template for my badge code, and then called that template from within postbit_legacy.
I create two new plugins for the new template, change the values to match my new template name, then put the variable in postbit_legacy but it does not seem to be loading the new template.
Is there something special I need to do to get this to work for postbit_legacy, or is it something that cannot be done?
I've followed the advice in this (https://vborg.vbsupport.ru/showthread.php?t=119933) thread on how to add a custom template using plugins and it's working perfectly for a custom template I've setup to be displayed in the header template.
I wanted to do something similar for the postbit_legacy template. I have badges that appear in the user's postbit depending on certain criteria, be they picked up from a custom profile field or via membership of a usergroup.
At present my code for this is within the postbit_legacy template and thus when I need to edit the badge code I need to edit postbit_legacy. I thought it would be somewhat cleaner, and prevent me from accidentally deleting something, if I used a custom template for my badge code, and then called that template from within postbit_legacy.
I create two new plugins for the new template, change the values to match my new template name, then put the variable in postbit_legacy but it does not seem to be loading the new template.
Is there something special I need to do to get this to work for postbit_legacy, or is it something that cannot be done?