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] Disable code for certain users | |
|---|---|
| Tweet Topic Started: Nov 5 2009, 08:07 PM (187 Views) | |
| Swordslam46 | Nov 5 2009, 08:07 PM Post #1 |
![]() ![]()
|
I would like a code that will disable a certain code for users. So if Bobs name was in but Joe's wasnt Joe would have the code enabled but Bob wouldnt. |
![]() |
|
| Gorgor | Nov 5 2009, 08:19 PM Post #2 |
|
Hello
![]()
|
|
![]() |
|
| Swordslam46 | Nov 5 2009, 08:41 PM Post #3 |
![]() ![]()
|
uhh I think you forgot the script tags, and do I remove the script tags from the code thats in this code? |
![]() |
|
| Gorgor | Nov 5 2009, 08:54 PM Post #4 |
|
Hello
![]()
|
It would be like this:
|
![]() |
|
| Swordslam46 | Nov 5 2009, 09:13 PM Post #5 |
![]() ![]()
|
uhhh it enables the code for the people in the Array, I want it to disable it. |
![]() |
|
| Gorgor | Nov 5 2009, 09:32 PM Post #6 |
|
Hello
![]()
|
Oops, instead of !=, I wrote == ![]()
|
![]() |
|
| Reid | Nov 5 2009, 11:43 PM Post #7 |
![]()
What? The land of the free? Whoever told you that was your enemy.
![]()
|
That code will run the code if their name isn't such and such... however, if there is more than one user that the code is disabled for, the disabling will no longer function because their name may be NAME 1 but on the NAME 2 the check will still be true. Try this: The options are, of course, this section: Just add more names to the disable line and then stick your code where it says That should work. If necessary, I can make the code function for multiple codes... This goes in above the copyright, by the way. |
| The Resource Board | |
![]() |
|
| Swordslam46 | Nov 6 2009, 03:52 PM Post #8 |
![]() ![]()
|
its works Your awesome Reid, so are you Gor
|
![]() |
|
| Gorgor | Nov 6 2009, 04:34 PM Post #9 |
|
Hello
![]()
|
Thanks Reid. At first I was making it so that the names would be who would be using the code, but then I changed it and forgot that it wouldn't work ![]() 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 |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Completed Requests · Next Topic » |


















Your awesome Reid, so are you Gor
2:26 PM Jul 11