I've run out of ideas for problems 2,3 and 4. [ postimg.org/image/8gy4p25ll ]
I'm sure i installed the software correctly and put in the right information for the database connections. I also dont know where to find the config.php file that has been mentioned in problem 2.
Need to solve problem 2 to solve 4. Please help.
It's better with some link : https://drupal.org/project/limesurvey_sync
Don't see problem 2,3 or 4 in your post (or any picture, or some explanation).
Better is to explain what you do before !
If you use LimeSurvey 2: config.php are in ./application/config/ directory
Did you install LimeSurvey ?
Related
I do not know why, but in PhpStorm (version 2021.2) one of my php files
lost php properties:
And many functions of php are not applied...
Googling I found hints that I have to right-click on this file and select an option like “Mark as php.”
But I did not find such option in PhpStorm...
How can I restore it?
Thanks in advance!
You should have an Override file type option when you right-click the file
And then you can select PHP.
As a "more permanent" solution you might want to check the File Types in Settings, under Editor, and try to see if there's something weird there.
You might want to check #LazyOne comment, which contains a SOF post, it might be useful. I also want to say thanks to him for pointing that out and give him credits for the post.
I am a cakePHP novice and am attempting to learn by examination of a working model. So far I have downloaded two cakePHP 3 examples. Both were missing a \vendor\autoload.php component. Can anyone point me to a cakePHP 3 example that works "out of the box" without any additional setup required for the novice user ?
For XAMPP needed changes in php.ini uncomment
extension=php_intl.dll
I've been working out with this quite a long time and I can't find a way how to make it work.
I'm creating a simple theme option with my theme but putting all the options to a custom database table.
I want to know how $wpdb->insert() inserts all options like add_option().
This is my code - http://pastebin.com/5xHBs6r2
If you look at line 209 *function stheme_initialize_theme_options()* you'll see what I mean. I also created a function (*function stheme_default_options()*) that holds the default options and return it with apply_filters().
I hope someone can help me with this as I'm really struggling with it for a week now.
Thank you!
Best regards.
Consider using the Options API. It's a lot simpler than writing your own queries, and it's built in already.
http://codex.wordpress.org/Options_API
Setting, resetting and retrieving options you store can be done with 3 or 4 commands altogether, so it's a pretty nifty system. For instance, this:
add_option('my_option', 'foo');
Will instantiate an option in the DB, this will update it:
update_option('my_option', 'foo2');
and finally, this will retrieve it:
$s = get_option('my_option');
If you do use the Options APi, it's a good idea to stick to a naming convention, have your own prefix for your options. Too easy to cross over to other plugins etc if you use anything too obvious.
This is a classic XY Problem.
Don't create a table to do something that WordPress already does. You're even putting yourself into a trap, as you won't be able to query your data with WP default tools and will have to re-invent the wheel to achieve it.
What you're looking for is register_activation_hook, register_deactivation_hook and register_uninstall_hook.
Aside the uninstall hook, we can use the file uninstall.php with our plugins to clean up our stuff after the plugin is deleted. See this related posts at WordPress Answers.
PS: in your code, this is totally uncalled for:
add_action( 'init', 'st_register_table', 1 );
You address custom tables simply with $wpdb->prefix.'your_table'.
I am facing the problem while trying to clear screen on MySQL.Could anyone please help me
to solve this problem.While there is no issue in the oracle.
Solution 1
system clear
Solution 2
\! clear
Solution 3
/c
Not possible on Windows:
See this link from SuperUser: https://superuser.com/questions/196806/is-there-a-command-to-clear-the-screen-of-mysql-under-windows
Yesterday I tried updating from MATE 1.4 to MATE 1.6. I didn't like some things about it, and I decided to switch back, at least for now. One of the changes was a switch from the mateconf configuration system to GNOME 3's GSettings. As I understand this is a frontend to a system called dconf (or connected some other way).
This rendered many of my settings viod. I figured I could try to migrate them, but unlike gconf and mateconf, which created convenient folders in my home directory and filled them with XML I could edit or copy, I wasn't able to find any trace of dconf's settings storage.
A new Control Center is provided (and mandatory to install) but I don't want to be clicking through dozens of dialogs just to restore settings I already have. The Configuration Editor utility might be okay, but it only works with mateconf.
So what I want to know is where I can find the files created by dconf and how I can modify them directly, without relying on special tools.
I almost forgot that I asked this, until abo-abo commented on it. I now see that this is a SuperUser question, but for some reason I can't flag it. I would if I was able to.
The best solution I found was to install dconf-tools, which is like the old conf-editors.
As for the actual location of the data on disk, it seems to be stored in /var/etc/dconf as Gzipped text files, but I'm not entirely sure because I'm not using Mate 1.6 right now. I wouldn't advise editing them directly.
I've been having another issue with dconf, and I checked the folder that I mentioned above. It doesn't even exist. There now seems to be a single configuration file at ~/.config/dconf/[USERNAME]. It isn't in text format, so special tools are required to edit it.
This might be the result to an update to dconf.
I had a similar problem (was trying to back up keyboard custom shortcuts). The path for that was:
dconf dump /org/gnome/desktop/wm/keybindings/ > wm-keybindings.dconf.bak
dconf dump /org/gnome/settings-daemon/plugins/media-keys/ > media-keys-keybindings.dconf.bak
This thanks to redionb's answer on Reddit.