![]() |
Displaying a Custom Error Message??
In the admincp file for the hack I'm doing, if the foreach functions return empty it returns
Quote:
Thanks. :up: |
Check if the array you're looping has any data beforehand.
|
Nope, empty. I normally would of thought it'd be something like
PHP Code:
|
Look in the vBulletin AdminCP files and see how they display their errors, then just duplicate this in your conditional. (They use fetch_error() and another function print_cp_message(), I think) Look them up in the API manual: vBulletin 3.6 Code Documentation.
You may have to create a phrase the "Error Messages" Phrasegroup. |
Quote:
|
All times are GMT. The time now is 04:13 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:
|