[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum :: View topic - Save preset in config.ini
XWidgetSoft Forum
https://bbs.xwidget.com/

Save preset in config.ini
https://bbs.xwidget.com/viewtopic.php?f=7&t=6820
Page 1 of 1

Author:  Rom [ November 25th, 2017, 3:28 am ]
Post subject:  Save preset in config.ini

Hello

I have a concern I created a widget with several background that the user can define but I can not save each time I restart xwidget it puts me the bottom by default ........

Someone know how?
I tried various codes without success

thank you ;)

Author:  Jimking [ November 25th, 2017, 8:28 am ]
Post subject:  Re: Save preset in config.ini

Use the script in the widget that I attached you in your previous post
viewtopic.php?f=7&t=6819

Author:  Rom [ November 26th, 2017, 2:39 am ]
Post subject:  Re: Save preset in config.ini


Author:  Jimking [ November 26th, 2017, 3:18 am ]
Post subject:  Re: Save preset in config.ini

could you please attach the .xwp to check from the "inside"..?

Author:  Rom [ November 26th, 2017, 4:10 am ]
Post subject:  Re: Save preset in config.ini

i send you the widget
https://www.mediafire.com/file/5l56qtdy ... t_Beta.zip

thx

Author:  Jimking [ November 26th, 2017, 5:31 am ]
Post subject:  Re: Save preset in config.ini


Author:  Rom [ November 26th, 2017, 5:45 am ]
Post subject:  Re: Save preset in config.ini

i will try this now :)
And yes it's a beta widget..its have lots of layer i create a new version with less layer as possible to make it easier ;)

Author:  Rom [ November 26th, 2017, 6:30 am ]
Post subject:  Re: Save preset in config.ini


Author:  Jimking [ November 26th, 2017, 2:52 pm ]
Post subject:  Re: Save preset in config.ini

This is not a bug Rom.
When the layer is visible, the checkbox will be activated. So the script overwrites any manual "uncheck" option.
You need to "play" with the "visible"option and keep the layer "invisible" on the start.
If you have it visible you will have the opposite result..

Author:  Rom [ November 27th, 2017, 7:40 am ]
Post subject:  Re: Save preset in config.ini


Author:  Jimking [ November 27th, 2017, 8:48 am ]
Post subject:  Re: Save preset in config.ini

With the first code you can show hide the component
With the second the layer will stay visible.
Depends on what you want to do

Author:  Rom [ November 28th, 2017, 6:07 am ]
Post subject:  Re: Save preset in config.ini

ok realy thanks for you'r help
i have learn loot of good things :)

I have a question, can i call a external javascript file created by me ?
i find codes on internet but does't work....

thanks :)

Author:  Jimking [ November 28th, 2017, 9:47 am ]
Post subject:  Re: Save preset in config.ini

You're free to use any java script you want. Personally I shave no problem with it.
You can find external java scripts but you need to know how to edit them and make them work properly to your design. And it's not so easy especially for novice users.
There are so many ready widgets for XWidget and you can find many many functions.
That's way I did :)

Author:  Rom [ November 28th, 2017, 1:10 pm ]
Post subject:  Re: Save preset in config.ini

Yes I search a lot too and I find a lot of useful things.
Is it possible to put the windgetOnLoad function in a .js file rather than in the widget itself?

sorry with all that is question but I'm embarking on a pretty big project and I just miss some info :)

thank you

Author:  Jimking [ November 28th, 2017, 4:54 pm ]
Post subject:  Re: Save preset in config.ini


Author:  Rom [ November 29th, 2017, 6:54 am ]
Post subject:  Re: Save preset in config.ini

I would like to put the WidgetOnLoad function in a .js file because I am created a widget with a lot of options and customization and suddenly so that my code be readable easily I had the question of knowing if I could put all the backup function in an external file and the loaded at launching the widget

Author:  Jimking [ November 29th, 2017, 2:44 pm ]
Post subject:  Re: Save preset in config.ini

You can create a second clone widget with a different name if you want to backup your design/java script.
The java script in general like the WidgetOnLoad works for the widget itself. There is no way to interact with more widgets using a java script.
I hope that I replied to your question, because really I don't understand well your thought. The Google translator is bad... :)

Author:  Rom [ November 30th, 2017, 3:23 am ]
Post subject:  Re: Save preset in config.ini


Author:  Jimking [ November 30th, 2017, 1:29 pm ]
Post subject:  Re: Save preset in config.ini

As I said no it's not possible. The WidgetOnLoad function works only through the widget itself and should be placed in the Designer and XWidget will load all the data from there only. No external commands work with Xwidget widgets.

Author:  Rom [ December 12th, 2017, 8:03 am ]
Post subject:  Re: Save preset in config.ini


Author:  Jimking [ December 12th, 2017, 11:32 am ]
Post subject:  Re: Save preset in config.ini

I don't know the js format for this.. Sorry
But why not try to create two "layers" with corrisponding effects on/off and use the same show/hide mentality like the cases above..?
Option to show layer1 with effects - hide layer2 without effects and the opposite

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/