Jump to content
TNG Community
Brett

Mod Manager - Edit Paramenters

Recommended Posts

Brett

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

Share this post


Link to post
Share on other sites
Ken Roy

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

Share this post


Link to post
Share on other sites
Michel KIRSCH

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

Share this post


Link to post
Share on other sites
Brett
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.

two.jpgone.jpg

four.jpgthree.jpg

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.

Share this post


Link to post
Share on other sites
Michel KIRSCH

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

 

 

Share this post


Link to post
Share on other sites
Michel KIRSCH

 

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

Share this post


Link to post
Share on other sites
Michel KIRSCH

... 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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×