Skip to content

Instantly share code, notes, and snippets.

DELETE FROM wp_termmeta WHERE meta_id=0;
DELETE FROM wp_terms WHERE term_id=0;
DELETE FROM wp_term_taxonomy WHERE term_taxonomy_id=0;
DELETE FROM wp_commentmeta WHERE meta_id=0;
DELETE FROM wp_comments WHERE comment_ID=0;
DELETE FROM wp_links WHERE link_id=0;
DELETE FROM wp_options WHERE option_id=0;
DELETE FROM wp_postmeta WHERE meta_id=0;
DELETE FROM wp_users WHERE ID=0;
DELETE FROM wp_posts WHERE ID=0;
@shamsbd71
shamsbd71 / Readme.md
Created October 21, 2020 06:42
Paid extensions auto release & update with authentication for Joomla with Digicom

Joomla Extensions Selling and Validating Guide with Digicom Release System

Step 1:

Add update server info to your extensions installation mainfest xml.

Change name="Notifly Update Site", ##YOUR_PRODUCT_ID## with your info

Step 2

Check the config.xml and add the license part in your component or plugin. in this example we have shown the component system.

@shamsbd71
shamsbd71 / T3 Theme random preview
Created August 8, 2016 08:57
For T3 Bases template, to allow randomly change the theme options, this will help.
# T3 Theme random preview
### For T3 Bases template, to allow randomly change the theme options, this will help.
#### Session has been used to keep the selection.
Opne your templates root folder and open `index.php` file and find this line:
```php
$t3app = T3::getApp($this);
```
Add these codes after that:
@shamsbd71
shamsbd71 / install-php-pear.md
Created September 20, 2015 04:52
Getting and installing the PEAR package manager in Ubuntu. Sourece: http://stackoverflow.com/questions/5428778/installing-pear
@shamsbd71
shamsbd71 / joomla-modul-form-ajax.js
Last active August 30, 2015 06:45
Joomla Ajax Form Submit from Module. help link:https://github.com/Joomla-Ajax-Interface
/**
* @package Custom use
* @author Abu Huraira Bin Aman shams.bd71@gmail.com
* @license GNU General Public License version 3 or later; see LICENSE.txt
* @version 1.0.0
*/
(function($){
$(document).ready(function(){
$('#myform').submit(function() {
@shamsbd71
shamsbd71 / RecaptchaUserGuide.md
Last active August 26, 2015 09:39
Using ReCaptcha in Joomla Anywhere from XML and Validate it

Joomla ReCaptcha plugin

Steps to use Google ReCaptcha

  1. Get recaptcha keys from
https://www.google.com/recaptcha/intro/index.html
i. Register new site
ii. Collect Site key
iii. Collect Secret key
@shamsbd71
shamsbd71 / modulehelper.php
Last active December 2, 2015 07:57
updated load by position
<?php
/**
* @package Custom use
* @author Abu Huraira Bin Aman shams.bd71@gmail.com
* @license GNU General Public License version 3 or later; see LICENSE.txt
* @version 1.0.0
*/
defined('_JEXEC') or die;
jimport('joomla.application.module.helper');