- Uncategorized
- Joomla! 1.5
- CSS
- Eclipse
- PHP
- WordPress
- Illustrator
- SVN
- Mootools
- JavaScript
- Ubuntu
- Joomla! 1.0
- Regex
- SEO
- Plesk/Virtuozzo
- Joomla! 1.7
- Joomla! 1.6
- Apache
- WAMP
- Magento
- CURL
- SQL
- Joomla 2.5
- Netbeans
- GIT
- mySQL
-
How To Create a Facebook Page
How to access Facebook Pages?
You can find Facebook Pages in left column on your Facebook home page when you are logged in. If it is not showing you can click on More link to find it.
Then click on create page link as shown in screenshot.
If you still can not find it Click Here to go directly to Facebook Create Page Screen (Make sure you are signed in Facebook).
Creating a Facebook Page
On Create a Page screen you will be asked to enter various categories of information to input. You can choose between Official Page or Community Page. When you create a page you will see URL in Browser address bar for that page. For exampleCustomized Facebook Profile URL
If you have customised Facebook Page URL then your ID will not show in URL and your URL will be like http://www.facebook.com/USER_NAME instead. To find your Facebook Page ID from a Customised URL simply click on your profile picture and it will take you to your profile pictures. On profile pictures area you will see your Facebook Page ID in browser address bar.
Read More...
-
How to delete and moderate comments in Facebook comments box plugin?
This tutorial is about how to moderate and delete process works for Facebook Comments box.
First of all make sure that you have installed, configured and published JavaScriptSDK plugin and Facebook Social Comments plugin.
In JavaScriptSDK plugin setting you must enter Facebook User IDs of the users who you want to allow to be able to moderate comments. If you want to moderate yourself only then enter your own Facebook ID.

Moderators View
After your have added Facebook admin ID save JavaScriptSDK plugin and go to frontend of your website and refresh comments page. You should see Moderators View and Settings above Comments Box as shown below when you are logged into Facebook.

Click on Moderator view so we can have a look what is in Moderators view. In Moderators view you will see a list of all the comments for that page. In this screen you can Like, Follow and Moderate comments.
Facebook has made changes and now only the user who posts a comment can competely delete it. Owners and Moderators of Comments Plugin can choose to Hide comments. Hide comments option will remove the comment and it will not be visible to your readers except to friends of that person who actualy made that comment.

At present only a user(who made comment) can completely remove their comment by clicking the cross sign that appears next to their comment (cross sign appear when you hover over your own comment).
If you choose to Ban user then it will permanently block that user from commenting on any of your posts.
If you choose to Boost comment will bring the comment at top so that everyone could read it.
Facebook Comments plugin also allows o arrange the order of comments. For example you can set to show the New comments first and old comments later.
By default comments are organized by social ranking which means that only those user comments' will be displayed at top who has good reputation on Facebook.
Settings View
Click on Settings to open Settings. Under settings you can add moderators, set Moderation mode, Blacklist words, allow other Login providers, enable Grammer filter and set Comments Composer. See screenshot below highlighting these settings.

Comments Ordering
If you want the newest comments to be displayed at top and oldest at bottom then choose Reverse Chronological.
Read More...
-
How to delete test orders in Magento
Following queries will single Magento orders. [sql] set @increment_id='100000001'; select @order_id:=entity_id from prefix_sales_order_entity where increment_id=@increment_id; delete from prefix_sales_order_entity where entity_id=@order_id or parent_id=@order_id; delete from prefix_sales_order where increment_id=@increment_id; [/sql] where prifix_ is your database table prefix if you use one. 100000001 is the order number that you would like to delete
Read More... -
How to enable CURL on WAMP local server
I needed CURL to test some php scripts on WAMP Local Server where CURL is disabled by default. To enable it under WAMP running on a Windows Environment follow these steps.
Read More... -
How to find a file in Eclipse using file name
Eclipse comes with advanced search capabilities. User can drill down in file explorer view but using search can make it really easy. Use Ctrl+Shift+R to open Open Resource dialog box which will let you type in any file name you are looking for. Results will starts appearing as you start to type file name. You can click to open any file you want from the results. This is the fasted way to find any resource (files). To search any text in any file on project hit Ctrl+H and it will open a search dialog box where you have many different search options to choose from.
Read More... -
How to find and replace text database table
Often we need to update text in column of a database table. It can be time consuming if there are thusands of rows to be updated. Follwing query will update text based on Like condition: Syntax: [code] UPDATE tablename SET fieldname = REPLACE(fieldname, 'text to find', 'text to replace with') WHERE fieldname LIKE '%text to find%' [/code] Example: [code] UPDATE z2uil_kaimageslider SET image = REPLACE(image, 'images/stories', 'images') WHERE image LIKE '%images/stories/members%' [/code] Backup of database is recommended just to be on safe side.
Read More... -
How to get currect SEF URL in Joomla 1.0
$uri is global variable which holds current SEF url in Joomla 1.0
Read More... -
How to get name of current Joomla template?
If you need to know what is current template being used in your plugin or component code you can use following code to find it. [code] $app =& JFactory::getApplication(); $template = $app->getTemplate(); [/code]
Read More... -
How to install a new language in Joomla 1.5 websites
Joomla content management system comes offers various language packs and translations. You can download language packs from following URL: http://joomlacode.org/gf/project/jtranslation/frs/ Once you have the language files that you want to install on your computer go ahead and login into Joomla backend at [your_website]/administrator and go to Extensions > Install/Uninstall. After installation you can set new installed langauge as default language for your Joomla website by going to Extensions > Language Manager and selecting the language for default. Note: Installing a new language does not automatically translate the content of your website. It only set direction of text Right-to-Left and Left-to-Right and transalates most of backend strings into your new language. You still have to install and setup a language extension if you want to fully translate your Joomla site.
Read More... -
How to install GIT client in Ubuntu
GIT is a very famous version control system used by majority of developers and designers these days. If you have ever used Subversion, CVS or Mercurial you would know the concept and need of version control in software development and graphics design. By default GIT is not available on Ubuntu. You can use following command to install it.
After you run that command in SSH of your server and installation is complete you can start to use got on your server b using GIT commands. To confirm that GIT is installed on your sever enter following command and it will show you available commands for GIT. To check version of GIT enter following command Read More... -
How to install mcrypt for PHP in ubuntu
On my Ubuntu 4.9 with PHP Version 5.3.2-1 I had to install Magento that required myscrypt. To install it, I followed following steps:
Sometimes you might get the message “php5-mcrypt is already the newest version“. If so, install with: Read More... -
How to parse a string between two strings
Handy function to parse XML and other strings and get the inner string out. Example 1:
Example 2: Read More... -
How to reset Joomla Super Admin password
To reset password you must have access to Joomla database. Most of the hosting providers come with some sort of control panel or PhpMyAdmin. Also make a backup of your database in case you have to revert back to original database. Find users table, e.g. jos_users. Note you table names may vary depending on the prefix used with table names (e.g. prefix_users). Find the Super Administrator account. It will have usetype = "Super Administrator" Using mySQL's builtin MD5 function we can set the new password using following SQL statement.
Now goto www.yourwebsite.com/administrator and login to backend using your Super Admin username. Read More... -
Including SQL queries inside component XML files
For install and uninstall process of component queries can be put into a separate SQL file, however if there are not lot of queries then they can also be included in component XML. For example after languages tags in XML file put following:
Read More... -
Installing Joomla via SSH
SSH ("Secure SHell") is a means of establishing a secure command-line shell interface on a remote system. Log into your server via SSH and navigate to location where you would like to install Joomla e.g
To get the path for file to download goto: http://joomlacode.org/gf/project/joomla/frs/?action=index use wget in SSH client (e.g. putty) to retrieve the remote file to the folder you will be installing Joomla. Once the download is complete you should have the file: Next step is to uncompress the file, navigate to location of file: Now you can go to front end of your website where you should see the installation screen. Following some of the other useful commands to uncompress files that are in other formats: Once you have Joomla install file on server you can proceed with installation process by navigating to install URL in web browser. For example http://www.example.com/ or if your Joomla is in a sub directory then http://www.example.com/joomla_directory/ Once the installation is complete, remove installation directory using the following: Now you have a live Joomla website. You can secure file permission by following ssh commands. Read More... -
Internet Explorer 6 (IE6) PNG Fix Techniques
Following are some of the great techniques and scripts to fix IE6 PNG transparency issue. DD_belatedPNG Supersleight jQuery Plugin PNG 8-bit technique (Fireworks) Clever PNG Optimization Techniques PNG Optimization Guide: More Clever Techniques More and more web designers nowadays not fixing the PNG issue for IE6 anymore.
Read More... -
Joomla Constants
Following is list of constants that can be used in Joomla:
Read More... -
Joomla Global Language Variable
Using following code we can get joomla's language and use it in our extensions code.
$language will give us the current language selected. Read More... -
Joomla parameters
There are 21 different standard parameter types supported in the Joomla Framework for all extension types (templates, components, modules and plugins). This section gives a brief description of each parameter type, in alphabetical order. Full details of each parameter type are given on the following pages. Standard parameter types Component parameters
Read More... -
Joomla plugin to insert codes in head section
Following is a template that can be used to develop plugins to inert code into Joomla head section.
Read More... -
Joomla Template Variables
Website Root path
Read More... -
Joomla usefull variables
A list of useful Joomla variables I often need.
Read More... -
Linux server useful commands
Some useful Ubuntu command lines I use often: Restart Appache
Restart MySQL Find Ubuntu Server Specs Update the directory permissions Collect Statictics data: Read More... -
Loading a module in a component output
Soluotions 1:
If you want to output all modules on a certain position, then use JModuleHelper::getModules('name_of_position') and render the array of modules in a foreach-loop. Some XML around it and you have a XML-output (often used that to get modules into Flash). Solution 2: Read More... -
Log an entry into Joomla Log
Joomla's JLog class enables to create log files with useful debug info and other log messages. Following is the PHP code that can be used to log messages.
Read More...











































