WORDPRESS PLUGIN CREATION - wordpress-plugin-creation

My plugin do not show on left side in WordPress . Could you tell me why this happened?

Without having any technical details, I can only give you the following pointers.
First of all, when you create a plugin, it doesn't get a menu entry until you use the appropriate wordpress functions:
See Wordpress Code Reference: add_menu_page()
See Wordpress Code Reference: add_submenu_page()

Related

how to add slideshow in magento 1.7.0.2 front-end

Hello everyone i want to add slideshow on page, i refereed below this url. I follwed all the given steps by Selva, but doesn't worked out for me.
i followed steps upto 2 but didn't understand 3-step. My side first it was taking default website name, then i changed it to "dap". For installing process, wrote url in address bar "localhost/dap/magicslideshow-trial" but it gives all files inside the folder. So using simple logic, took example7.html code for my use but it can't show slideshoe. It just shows images.
Am using magento ver 1.7.0.2. can anyone please help me to add slideshow on page. [how to add slideshow in magento front-end
Please use this extension
http://www.magentocommerce.com/magento-connect/responsive-banner-slider.html
http://www.magentocommerce.com/magento-connect/free-youama-jquery-nivo-slider.html
and follow there steps on extension page.

joomla - create a plugin that changes pages title & description

I'm a joomla noob, and I know how to create a content joomla plugin that prints text just after article title using event listener onContentAfterTitle. Content plugin for Joomla
But I cant find the event listener inside which I should put my code that changes pages title & page description. I have put it inside onContentPrepare & in the onAfterDispatchbut it doesnt work.
Anyone can explain to me how to get it work?
P.S: I want to create the plugin myself to customize as I want
Thanks for the link, but I've found an answer to my question here:
Create a plugin that changes pages title & meta description
And the event in which to put the code is onBeforeCompileHead, and the function used to alter head is: $document->setHeadData($headData);.

Add referrer code to url

I need add the url of a wordpress blog a referrer code with this structure:
http://domain/([a-zA-Z]{3}[0-9]{3}/...
The site should work both with and without this code.
If there is I have to use it, store it in session type.
All through plugin so you do not have problems with upgrades or any wordpress plugin.
I also tried to edit the file .htaccess with a custom RewriteRule but nothing.
Ideas? Thanks!
Sorry for bad english!
I think you are trying to reinvent the wheel here, there plugins that gives you affiliate program features so you won't have to worry about url and links.
try some of this plugins: Tag: referral
you can also try this one as it has a good description: Affiliates
With wordpress always check existing plugins when you want to add functionality to your website, there are a lot of plugins that do a lot of things.
Edit: you can create your referal link as domain.com?ref=code and in the website header check for $_GET['ref'] if it exists save the ref in a session variable, if the user gets to register then take the ref value from the session variable. This should work
I opted to install the plugin Rewrite and create rules to manage the referrer.
Thanks anyway!

Magento "Shop By" URLs use "#%21" instead of a "?"

I'm working with a new Magento installation and using the shop-by links give me
example.com/catalogsearch/result/#%21color=1&q=shirt
instead of
example.com/catalogsearch/result/?color=1&q=shirt
I'm not sure where I should look to begin fixing this.
Thanks!
we had this same problem and found that a plugin was changing the url with str replace
changing the ? for #%21
the plugin changes the url so that it can be identified by the javascript file and updated via ajax.
the plugin in our case was vingento there seemed to be some confilcts with other plugins. After disabling this plugin and code our filter and paging links work again, although not via ajax.
Hope this helps you

How can I add custom fields in cms edit page (Admin Panel)?

I am facing an issue in Magento. I want to add some custom fields to Magento Admin Panel CMS Edit Page. I got a page while searching where it describes adding a custom field in CMS page: http://blog.flexishore.com/2011/08/add-custom-field-to-cms-page/ .
I have followed every step in this, but I am still getting an error Call to undefined function getLoad().
Can anyone here explain me how to add custom fields in CMS page?
You can try this article (http://www.atwix.com/magento/adding-custom-attribute-to-a-cms-page/) as well, it's more simple, maybe it will be helpful for you.
Also don't forget about cache, I recommend you disable it when you are testing your own modules.

Resources