A wordpress plugin upload guideline - php

I want to upload my wordpress plugin on wordpress.org.
Now the structure of my plugin is
redirect (this is the plugin foldername)
redirect.php (it is the main file with all the logic)
read.txt (this is read me file )
My question is that do I need to add more directories or any other files in this folder to be accepted on wordpress.org.
Can anybody guide how to go farward from here and upload my plugin successfully on wordpress.org but I am concerned if I need to add any new files into my main plugin folder.

All informations which you need, you will find here https://wordpress.org/plugins/add/ (check left sidebar links)
Your read.txt file should be renamed to readme.txt and has this structure:
https://wordpress.org/plugins/about/readme.txt

Related

Magnific Pop up for Wordpress

I have been trying to figure this out for the past couple of hours, but how do I integrate the plugin into a wordpress site?
Because the plugin itself does not have a specific directory to be placed, I am confused as to where the files need to be put in order for it to work. My explanation is pretty vague, as I haven't been able to upload any of the 3 files mentioned into wordpress as of yet.
so there are 3 files:
jquery.magnific-popup.js/ jquery.magnific-popup.min.js/ magnific-popup.css
The end product i need is essentially just a set of gallery items, not restricted by width or height, so I am able to have a website similar to this one here as reference: http://www.three-d-conceptwerke.com/
Each Gallery item opens a pop up that displays several images within each gallery, in which case each item is treated as a project containing several images.
That aside, without knowing how to integrate the files into wordpress, I am unable to work on it. Any clues?
It doesn't matter where you place them - just call the scripts and stylesheets in your header or add them into your functions.php.
E.g. if I uploaded them into a directory called external-plugins, I would just call them as
<link href="http://www.example.com/external-plugins/magnific-popup.css"> <script src="jquery.magnific-popup.min.js"></script>
And add your arguments below. Should work fine in your header.php
Edit: That link you posted pretty much explains everything you need to do - if you can't follow it, maybe you should hire somebody else to do it for you!
The instructions are pretty clear from the link you provided...
Create the directory magnific-popup in your theme’s directory. Download the MP CSS and JS files from GitHub and put both in the magnific-popup directory
You need either use an FTP client like Filezilla or use a File Manager from your hosting control panel to log into your site's file directory. Once you are there, navigate to your WordPress theme's directory wp-content/themes/your-theme/ and create a new directory named magnific-popup. Then upload your 3 files into that directory and follow the rest of the instructions to finish setting up your popup.
If you've found this helpful please mark this as the acceptable answer to your question.

One Page Checkout - checkout progress wrapper not shown

i updated a magento store from 1.6 to 1.9. I got some problems with the one page checkout. At first i cant order anything. I resolved this with adding the formkey. The 2nd problem is that this:
<?php echo $this->getChildHtml('checkout_progress_wrapper');?>
does not show anything. I am using my own theme and checkt out the old xml with the new one but there seem to be no changes. The div isn't even parsed empty it's juzst not shown. Hope someone can help me.
Here are some step for upgrading magento
Take a backup of current database and current 1.6 code. place maintenance.flag file inside 1.6 code folder to put website offline.
Download latest magento from the http://www.magentocommerce.com/download
Remove all folders and files from your 1.6 code except maintenance.flag (but you should have backup somewhere) and place all folders and files from the 1.9.x
Now from your 1.6 merge your following custom folders into the 1.9.x
Community app/code/community
Local app/code/local
Media
your theme or package (app/design/frontend/default/<your theme> or app/design/frontend/<your package>)
custom folders from Skin (both for adminhtml and frontend).
copy your custom xml files from app/etc/modules/ to current app/etc/modules/
any custom admin theme folder from adminhtml/default/yourtheme.
copy your custom folders from adminhtml/default/default/ (1.6) to adminhtml/default/default/ (1.9.x).
custom js files if any from app/js/.
Now go to app/etc/local.xml.Edit database details their.put your database username and password and database name.
Remove maintenance.flag file and check the site in the browser. it is done.

override wedevs-dokan-plugin template file from theme wordpress

I'm using the wedevs-dokan-plugin (wedevs.com/dokan) for a WordPress frontend user store, which allows sellers to manage their store from the frontend.
I want to override one of the template files of this plugin. The file which I want to override is located at:
plugins/wedevs-dokan-plugin/templates/product-edit.php
And to override this file, I copied the file and made some changes, putting this new file in the theme directory like this:
themes/mytheme/wedevs-dokan-plugin/product-edit.php
But this isn't working for me. After that I also tried:
themes/mytheme/wedevs-dokan-plugin/templates/product-edit.php
But that's also not working.
Is there any way to override the plugin files from within a WordPress theme?
themes/mytheme/wedevs-dokan-plugin/product-edit.php
Instead of "wedevs-dokan-plugin" the directory name should be "dokan" and you can only edit the "templates" directory files of this plugin.
So, the new directory will look like these.
themes/mytheme/dokan/store.php
themes/mytheme/dokan/dashboard/dashboard.php
Thanks

How to use must use plugin in wordpress?

Friends,
I know this question asked before but i cannot find them . I want to move all plugin in to must use directory.
In wordpress blog also have answer but i can't understand them .
Any one suggest link to use must use plugin for all plugin
The mu-plugins directory will not read plugins in a subfolder, so all plugins must be individual files (as per "plugin-name.php" file).
This main plugin file is what will include additional files that exist in a subdirectory. Any plugin files in a subfolder will be ignored unless included in the primary plugin file.

ShareThis plugin on WordPress MU - default in all blogs

I have one instance of Wordpress Multiuser and need ShareThis plugin to be automatically activated in all new created blogs.
I've seen a post:
Plugins placed in wp-content/mu-plugins are automatically enabled for all blogs in the system. They cannot be turned off by the users.
When putting the plugin files into root blog (/plugins/ folder), the plugin is functional, but when putting it into /mu-plugins , the plugin is not working.
What else do i need to do to make it work?
Plugins put in /mu-plugins cannot be in folders.
/mu-plugins can only contain plugin files like what-ever-plugin.php.
The mu-plugins directory will not read plugins in a subfolder, so your ShareThis plugin must be modified to individual file to work.
Any plugin files in a subfolder will be ignored unless included in the primary plugin file.

Categories