Jump to content
TNG Community

Mod Manager - Edit Paramenters


Brett

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
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

Link to comment
Share on other sites

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.

Link to comment
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

 

 

Link to comment
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

Link to comment
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...