![]() |
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 |
At the moment, I am working from an XML file.
I created a product, exported the XML and creating the phrases in there. The reason I am doing it that way is because I only need the phrases, no template edits. I can give you access to my admin control panel if you would like to see it for yourself |
Try creating a phrase the normal way and see if that works. Maybe it has something to do with these phrases being in a product that is causing the problem.
|
Quote:
Now how would I do this via the product? When people install it, they won't want to create a phrase manually. Here is what is in the product regarding it: PHP Code:
|
Do you have the product turned on? Have you verified the phrases show up and that you can use them? Make a regular vbulletin phrase that you can spit out on a page and verify you can use it.
I just created a phrase in Front-End Error Messages and this is what I get exporting the product xml: PHP Code:
|
All times are GMT. The time now is 08:04 PM. |
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:
|