![]() |
Messages
How do I create my own message replacing:
print_stop_message('no_permission'); I have tried creating a phrase like: print_stop_message($vbphrase['myphrase']); However, it says "cannot find phrase: myphrase" How would I go about doing this? |
You only put the name of the phrase in there. "no_permission" is the name of a phrase. The phrase must also be of type "Front-End Error Messages Phrases Containing" in order to work there.
|
Quote:
print_stop_message('myphrase'); |
Yes. Try that.
|
On mine, there is no Front-End Error Messages, only Error Messages so I have added it to that. It still says:
Cannot find phrase demoacp_detailsforwarded |
What version are you running? I have that group in both 3.6.8 and 3.8.0. I do not see a phrase type of Error Messages in either of those versions.
|
1 Attachment(s)
3.8.0 rc1
|
That's very odd. I run 3.8.0 RC1 on my test site and it says Front-End Error Messages, not just Error Messages.
Do a search for the phrase "no_permission". What type of phrase does that show up to be? Did you try using the "no_permission" message first to see if you code works? And are you using this in either the admin panel or mod panel? |
1 Attachment(s)
no_permission works, but its not that phrase I want to show lol.
Here's the screenshot for my findings |
What page are you trying to do this on? And I can try to change it and see if it works for me.
You might want to search on print_stop_message. I found this that may help - Success/Error Messages |
All times are GMT. The time now is 01:03 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:
|