Jump to content

Recommended Posts

Posted (edited)

hi my lord

I create an application But the configuration settings changes in the code section are not being applied.

I wanna request you to check it but I can't share the file here for review

Edited by Arash.Ranjbar
  • Management
Posted

Kinda hard to give you any advice without the file or the code. 😅

 

Can you at least post the code you have that should save the form's fields as settings? Basically the IF that checks if any values are available after the form is submitted.

Board Rules - Available Products - Need a Custom Work?

 

< Don't PM me for support, post in the forum or submit a ticket from the client area instead! >

Posted (edited)

main source

[FILE REMOVED]

 

after download please remove that from here

Edited by terabyte
Removed file download
  • Management
Posted

File downloaded and removed.

 

I wanted to check this code in the settings.php module specifically:

		if ($values = $form->values(true))
		{
			$form->saveAsSettings($values);

			\IPS\Output::i()->redirect(\IPS\Http\Url::internal('app=XXX'), 'saved');
		}

Looking at it, I see nothing wrong.

A couple of questions:

  1. Are you receiving some kind of error when saving the settings? Or does the page redirect correctly?
  2. Are all the settings listed in the file properly added in the Settings TAB of the application's developer center? Unless the settings are all added there the data won't be saved.
Board Rules - Available Products - Need a Custom Work?

 

< Don't PM me for support, post in the forum or submit a ticket from the client area instead! >

Posted
5 hours ago, terabyte said:

I wanted to check this code in the settings.php module specifically:

Now that I've checked, I realized that I had mistakenly entered the redirect code in the file I sent you, but I have corrected it now.

5 hours ago, terabyte said:

Are you receiving some kind of error when saving the settings? Or does the page redirect correctly?

I was encountering an error in the file I had sent you, and the redirect wasn't working correctly. However, after correcting the code, I can now redirect properly without any errors.

5 hours ago, terabyte said:

Are all the settings listed in the file properly added in the Settings TAB of the application's developer center? Unless the settings are all added there the data won't be saved.

Yes, they have been fully added.

I think I haven't placed the CSS file in the right location. (dev/css/front)

  • Management
Posted
17 hours ago, Arash.Ranjbar said:

I think I haven't placed the CSS file in the right location. (dev/css/front)

It's the correct location. At least in the file you sent me.

Board Rules - Available Products - Need a Custom Work?

 

< Don't PM me for support, post in the forum or submit a ticket from the client area instead! >

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.