Modifications to wp plugin deleted after a few days - php

I have a small wordpress (4.3.2) website and for the contact form I have used the free version of the Contact Bank plugin.
I have modified the one of the plugin's files (contact_bank_forms.php) located in /wp-content/plugins/contact-bank/frontend_views/ and everything looked good.
But after a few days I have noticed that every modification i made to this file was lost and realised that it went back to the original code - like I have not modified anything.
I reuploaded my modifications but it seems that every few days it goes back to the original one.
Can anyone please help me with this problem?

Wordpress has automatic updates (https://codex.wordpress.org/Configuring_Automatic_Background_Updates).
You can either disable them with config constant
define( 'AUTOMATIC_UPDATER_DISABLED', true );
Or write own plugin that will alter existing one.

Related

OpenCart Theme 'MarketShop' slider issue

I'm using an opencart theme called MarketShop and as part of the theme it comes with a featured slider on the top of the website. It was all functioning correctly this morning, I went to edit the pictures by removing the original module and recreating it with a different banner. Now the module has been created but its not showing up on the website.
What have I done wrong?
I believe the two modules have identical information but I could be incorrect.
I've tried reupoloading all files from the theme and just skipping any that were identical in order to try and find the missing file with no luck.
Any suggestions besides doing a factory reset are much appreciated!
UPDATE:
Doesn't seem like anyone is able to determine the fault... Going to do a fresh install unless someone wants to first login themeselves and see if they can find the problem?
I managed to resolve this issue myself finallly after a LOT of playing around!
Steps I took to fix this issue were as follows..
First I uninstalled the module and reinstalled (It deleted all tests I made + the original demo items).
Then I clicked the install button again and went to edit.
I added one slideshow item and choose my banner that I'd setup earlier via the banners link in the admin panel.
I then went to LAYOUTS which is found next to the banners link or after you click save in modules at the top a hyperlink to layouts is offered.
Upon going to the layouts section and playing around here for even more time I worked out I needed to go into the Homepage file and click edit (NOT THE ONE NAME DEFAULT)!
I tried this numerous times with the DEFAULT page (Note that my store is even set so that the default theme is default which led me to believe that was the right page, which it is not.
So go into homepage and click edit.
Then add one module with the blue plus. Select the module you've just created earlier. Position it where you want it on the page (to get it to work for me I selected "Content Top" and Sort Order I set to 1 (The other two modules had sort orders of 2 and 3)
And that was that, problem solved!
Hopefully this will help anyone else with similar issues.

Updates on wordpress are not applied even if I saved them

This is like an open ended question. I have a wordpess website which use do online shopping. There are items. let say table lamps. They have different prices. I need to update prices time to time. I have updated the prices on wordpress but it is not updated despite the fact that I have already saved the changes.Can you please tell any possible reasons for this issue?
This is most likely a theme or plugin or both that is out of date. You should also check your console for errors. Try updating everything, then try updating the post again. Be sure to back up your site first.

Magento Success Page Reverts to Default Theme

We recently added a new extension to our site that adds multiple serial codes to a product (http://www.modifymage.com/instructions/serial-codes). Everything works great except when you try to purchase one of the items. It gives you a success page that uses the default theme.
Everything appears to be setup correctly in terms of the backend. I’ve already contacted the creator but I doubt they’ll provide any support.
Also, when I view source it says its referencing the right theme but when “Inspect Element” it tells me its using the default theme.
Any ideas? I’m thinking its a template issue but the success page uses the custom theme’s CSS.
This is very unlikely to have anything to do with our extension. Our extension does not interact in any way with the front end themes.
In the Admin Panel, please first go to:
System > Configuration > General > Design
And check the settings under the Package and Themes sections. Please see this forum post for an example that presents itself exactly like the problem you are experiencing and how it was fixed:
http://www.magentocommerce.com/boards/viewthread/281457/
If that is all set up correctly, next try disabling the output of our extension and see if the problem goes away. You can do that here:
System > Configuration > Advanced > Disable Module Output
Disable Mmsmods_Serialcodes. If this doesn't fix the problem, make sure the design file template/checkout/success.phtml is located in your design theme folder.
I hope that helps. If you are still having problems, or if you have any additional questions or concerns, please notify our support department once again.

Ticking a checkbox with PHP to put in Wordpress function.php

I recently discovered a method of changing Wordpress preferences if you do something silly that makes the wp-admin not load. I found that inserting things into the function.php file found in the theme and using the update_option command allowed me to change the settings i needed to get be working again.
This got me thinking, i have the need to install the same theme with the same settings. This is a pain as i have to define all the settings each time. Instead i am trying to make a functions.php file that will set all the settings to how i like them.
I am able to update settings that require you to type a string into a field
//this will change the siteurl setting to www.mysite.com
update_option ('siteurl','www.mysite.com');
My issue is that i need to be able to do the same thing for checkboxes, drop down menus and for radio buttons. After a long night or searching the internet for examples i had given up until i found this site.
Any help would be appreciated, i have minimal programming experience but i do understand the concepts
in theory update_option('checkboxname',true); or update_option('checkboxname','on');
http://codex.wordpress.org/Function_Reference/update_option

Wordpress not registering custom options from options.php page

Frustrated SO regular here:
I'm creating a theme-options.php page for a child theme in Wordpress. Here's the code. The page renders correctly, including: Adding the page link to the correct admin menu, creating and displaying the options page. When I click save, however, it takes me to a 500 (internal server error page).
Using the 'adminer' plugin (phpmyadmin) I have looked at the wp_options table, and there are none of the custome settings/fields that I have specified. My best guess at the problem is that the settings aren't registering properly so when I post the form to options.php it responds with an error because it doesn't expect those form fields.
I've been wracking my brain around this code for a few days now, and am wondering if someone else can take a look at it for me? I would really appreciate a few extra eyes...
Some resources I have tried:
http://ottopress.com/2009/wordpress-settings-api-tutorial/
http://themeshaper.com/2010/06/03/sample-theme-options/
http://codex.wordpress.org/Function_Reference/add_settings_section
My settings are not saving in wordpress theme options page (his settings appear empty in db. mine don't appear at all)
Oh crud,
It dawned on me after I spent an hour figuring it out that Richard M had given you the answer.
I created a new paste of your code, cleaned up some: http://pastebin.com/enUa3xme
I fixed the issue and also added the function add_my_options() and removed the is_admin() wrapper around your admin action hooks since they will only be triggered in the admin area, so they are unnecessary.
I needed to learn this since I use a half-way-done implementation of this, so even if it isn't helpful to you, it was worth learning...

Categories