![]() |
|
Thread Tools |
#1
|
||||||||||||
|
||||||||||||
Function works in Forum but undefined in CMS
I am using a customization to pull the title of the latest entry in an external blog. See http://www.vbulletin.org/forum/showthread.php?t=234254 for details
This works fine and generates no errors in the Forum. However, I've now enabled the CMS and when I do that and try to leave a comment I get this error:
I assume this means something is not declared properly for the CMS. The function in question is called in a plugin using the postbit_display_start hook:
What do I need to add/change to get CMS to "see" and process this? (Reposted from http://www.vbulletin.com/forum/showt...defined-in-CMS as Lynne suggested) --------------- Added 02 May 2010 at 17:58 --------------- I've discovered that I can avoid error messages if I use the global_start hook instead of the postbit_display_start hook and add a line like this:
However, I'm not sure this is an efficient way to do this. --------------- Added 03 May 2010 at 03:38 --------------- Added: No. That disables the errors on the home page of the CMS but as soon as you click through to one of the articles there are errors again.
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management No members have liked this post.
Last edited by djbaxter; 03 May 2010 at 03:38. Reason: Auto-Merged DoublePost |
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 06:22.