Brett Posted August 12, 2020 Report Share Posted August 12, 2020 Using TNG 12, for Edit Options within Mods, there are no limitations to the number of parameters for any particular file, or the number of files with parameters. I am wondering if there is a way of having one edit paramenter that will change more than one .php file. Brett Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted August 12, 2020 Report Share Posted August 12, 2020 Probably not possible. Just like you cannot use the same exact code segment in two location verification in the same module or in the action directive in the same module. Mod Manager works with unique string manipulation Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted August 13, 2020 Report Share Posted August 13, 2020 Hi Brett, why do you want to change the same parameter in different php files? What do I do? Parameter is changed in one parameters php file and include this file into others php files when needed... But I'm sure you know that.. Michel Quote Link to comment Share on other sites More sharing options...
Brett Posted August 15, 2020 Author Report Share Posted August 15, 2020 On 8/13/2020 at 6:13 PM, Michel KIRSCH said: why do you want to change the same parameter in different php files? Michel I am wanting to insert the same text on a couple of pages. I also want to be able to easily change the text shown by using the edit parameter in Mod Manager. A simple example to show you is below. I would like to change one parameter for all files and not have to change parameters for each file. All locations within each each file would be unique from each other. Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted August 15, 2020 Report Share Posted August 15, 2020 Easy : a little parameters file "xxx.php" with the parameter "$param" and his value (1,2 or 3) modified by Mod Manager Edit in xxx.php : $param = 2; switch $param case 1 : $myvariable = "Father's Name"; case 2 : $myvariable = "Mother's Name"; case 3 :.... In each of your file : include_once "xxx.php"; ... and use directly $myvariable... Michel Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted August 15, 2020 Report Share Posted August 15, 2020 10 hours ago, Brett said: All locations within each each file would be unique from each other. But if you mean that "each variable in each file can have a different value" , it obviously won't work with a true/false variable because one parameter can have only one value at a time... Michel Quote Link to comment Share on other sites More sharing options...
Michel KIRSCH Posted August 15, 2020 Report Share Posted August 15, 2020 ... The value of the parameter can be : 1,2,3,4,.....16 in digits : 0000 - 0001 - 0010 - 0100- ....1111 the first digit is the value true/false for one page, the second digit the value true/false for the second page,.... Hope this help... Michel Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.