The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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? |
#2
|
||||
|
||||
![]()
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.
|
#3
|
|||
|
|||
![]() Quote:
print_stop_message('myphrase'); |
#4
|
||||
|
||||
![]()
Yes. Try that.
|
#5
|
|||
|
|||
![]()
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 |
#6
|
||||
|
||||
![]()
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.
|
#7
|
|||
|
|||
![]()
3.8.0 rc1
|
#8
|
||||
|
||||
![]()
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? |
#9
|
|||
|
|||
![]()
no_permission works, but its not that phrase I want to show lol.
Here's the screenshot for my findings |
#10
|
||||
|
||||
![]()
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 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|