inherit
60633
0
Nov 22, 2024 21:53:00 GMT -8
Joilet
Lightning does strike the same place twice or more be careful
2,809
October 2005
joilet
|
Post by Joilet on Mar 28, 2017 13:35:21 GMT -8
/n is used for next line of text. However here is a GML (Game Maker Language) made up example of what I am talking about: var my_Text_to_Use_instead_of_OK,message_Box_text; my_Text_to_Use_instead_of_OK = "Yes Patrick Clinger is awesome"; message_Box_text = "@admin is an awesome administrator";
^ For any ProBoards type message board of mine how would I do up above coding to work properly? Thank you in advance
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Mar 28, 2017 20:25:27 GMT -8
pb.window.alert('@admin is an awesome administrator', { buttons : [{ text : 'Yes Patrick Clinger is awesome' } ] })
|
|
inherit
60633
0
Nov 22, 2024 21:53:00 GMT -8
Joilet
Lightning does strike the same place twice or more be careful
2,809
October 2005
joilet
|
Post by Joilet on Apr 3, 2017 16:01:27 GMT -8
pb.window.alert('@admin is an awesome administrator', { buttons : [{ text : 'Yes Patrick Clinger is awesome' } ] }) I copied and pasted your code in Header and Footer but it did not work. I put \n in between Clinger and is
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,846
January 2015
msg
|
Post by Lynx on Apr 3, 2017 18:33:38 GMT -8
Did you try putting in a <br /> instead of a \n?
Another question: What's supposed to trigger the popup? Unless I'm mistaken (and I very well could be), I think Chris's code will have it popping up everywhere if you're putting it in your global header or footer. By the way, I don't think it should be in both places - just one or the other, or there may be a conflict of coding with itself (2 copies trying to run about the same time).
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 3, 2017 21:42:17 GMT -8
There is no trigger in that code I posted, it is meant to run immediately and only serve as an example of how to do it. I was given the impression with your use of the pseudocode that you merely wanted an example of how to accomplish this on the Proboards platform. I didn't write a code for plug and play use, I wrote one as a demonstration of how to do it with the implication being you knew coding and could take it from there.
If you copy the code as posted and paste in the H/F it would not work because that requires you to wrap it in script tags but as i said it has no trigger and runs immediately so if you were to do that you would be getting a popup on every page load as MSG mentioned
|
|