Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ![]() Interested in joining? Click here. If you are already a member of ZBCode, feel free to login right here: |
| [Completed] [ZB] Special Popup + message | |
|---|---|
| Tweet Topic Started: Oct 6 2009, 07:32 PM (254 Views) | |
| Swordslam46 | Oct 6 2009, 07:32 PM Post #1 |
![]() ![]()
|
Is there a way to make a code that makes a pop-up come up witha message(50% chance) and a message being sent to the admin. If the message cant be sent Im ok with that. |
![]() |
|
| Reid | Oct 6 2009, 09:07 PM Post #2 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
So does this chance happen on every page, and if it happens once to one user then can it happen to another user? |
| The Resource Board | |
![]() |
|
| Swordslam46 | Oct 7 2009, 03:57 PM Post #3 |
![]() ![]()
|
Not on every page, only when posting. And yes it can happen to every member, even if 1 member has already gotten it. |
![]() |
|
| Reid | Oct 7 2009, 04:32 PM Post #4 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
That should do it. Of course, there are a few options. some_msg is the message you want to pop up. name_of_admin is the admin you want the PM sent to. msg_title is the title of the PM sent to the admin. msg_template is the template for the PM that's being sent. Note that in order to create a new line, use \n - that's a backslash then a n. I gave you an example in the some_msg. ![]() In the msg_template, {{msg}} will be replaced by some_msg, so if you have multiple competitions with this going on or something, then you'll be able to tell who won what. Also, 50% is a mighty high chance so you might want to make that lower. In order to lower the chance, edit the part that says And you can change the 50 to anything you want. |
| The Resource Board | |
![]() |
|
| Swordslam46 | Oct 7 2009, 06:30 PM Post #5 |
![]() ![]()
|
Where does this go? Above the copyright? |
![]() |
|
| Reid | Oct 7 2009, 06:37 PM Post #6 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
Yeah, or below the board. Doesn't really matter. |
| The Resource Board | |
![]() |
|
| Choco | Oct 20 2009, 04:33 PM Post #7 |
|
¡ʎɹoʇɔɐɟ ʎʇıʌɐɹƃ ɐ uı pǝddɐɹʇ ɯ,ı 'dןǝɥ
![]()
|
You're welcome. See? We can read thoughts too. ;) Your request has been completed, and we're moving it to the correct forum. We hope it works for you; if it doesn't, feel free to post another request topic in the requests forum. Just remember: read the rules first! Thanks, The ZBCode Staff |
It's a magical world, Hobbes, ol'd buddy... ...let's go exploring!In progress: Something Special ;) | |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Completed Requests · Next Topic » |



















2:27 PM Jul 11