Featured Post Today
print this page
Latest Post

How to edit xpi (Mozilla Firefox Addon Extension).

firefox addon

Steps to Edit an .XPI (Firefox Add-on) File

1. Extract the .XPI File

  • Download the .xpi file.
  • Rename it from .xpi to .zip (e.g., addon.xpi → addon.zip).
  • Extract the .zip file using WinRAR, 7-Zip, or any unzip tool.

2. Modify the Add-on Files

  • Inside the extracted folder, you'll find JavaScript (.js), manifest.json, and HTML/CSS files that define the extension’s functions.
  • Edit the JavaScript or other files as needed using Notepad++, VS Code, or any text editor.

3. Repack the Add-on as .XPI

  • After making changes, compress the folder back into a ZIP file.
  • Rename it from .zip to .xpi (e.g., addon.zip → addon.xpi).

4. Install the Modified Add-on in Firefox

  • Open Firefox and type about:debugging in the address bar.
  • Click "This Firefox" → "Load Temporary Add-on."
  • Select your modified .xpi file to test it.

⚠️ Note: If the extension is signed, you cannot use the modified version unless you disable Firefox’s "Extension Signature Requirement" in about:config.

0 comments

How to use class="Active" in navigation, If you are using static pages?

navigation with URL
My Local Project for Getacho Company
I am working on my own company project. I am using Pixelogic static theme. I created different files for different website parts. like
  1. Menu.php
  2. Header.php
  3. Footer.php
Like it. But here I was facing a problem in class="active" Code. It was like

 <nav class="navigation">  
   <ul class="sf-menu" style="float:left;">  
     <li class="active"><a href="index.php">Home</a>  
     </li>  
     <li><a href="about.php">About</a></li>  
     <li><a href="portfolio.php">Portfolio</a>  
     <li><a href="forums/">Forums</a>  
     </li>  
     <li><a href="blog/">Blog</a>  
     </li>  
     <li><a href="contact.php">Contact</a>  
       <ul class="sub-menu main-ul">  
       <li><a href="support/">Support</a></li>  
       <li><a href="support/">Live Chat</a></li>  
       </ul>  
     </li>  
     <li><a href="user/">User Panel</a>  
       <ul class="sub-menu main-ul">  
       <li><a href="user/seo/">SEO Panel</a></li>  
       </ul>  
     </li>  
   </ul>  
 </nav>  

But here I was getting some problem that how to move class="active" according to static current page.
Then I consulted with my friends and someone suggested me a code. now it is working.

Code was :

 <?php  
      $url = $_SERVER['REQUEST_URI'];  
      if (strpos($url,'about.php') !== false)  
           echo 'class="active"';  
 ?>  

Here you need to understand STRPOS function.
I used same code in my navigation. Now navigation is working good. Now navigation code is

 <div id="menu" class="clearfix">  
   <nav class="navigation">  
     <ul class="sf-menu" style="float:left;">  
       <li   
       <?php   
       $url = $_SERVER['REQUEST_URI'];  
       if (strpos($url,'index.php') !== false)  
       {  
       echo 'class="active"';  
       }  
       ?>  
       ><a href="index.php">Home</a>  
       </li>  
       <li   
       <?php   
       $url = $_SERVER['REQUEST_URI'];  
       if (strpos($url,'about.php') !== false)  
       {  
       echo 'class="active"';  
       }  
       ?>  
       ><a href="about.php">About</a></li>  
       <li   
       <?php   
       $url = $_SERVER['REQUEST_URI'];  
       if (strpos($url,'portfolio.php') !== false)  
       {  
       echo 'class="active"';  
       }  
       ?>  
       ><a href="portfolio.php">Portfolio</a>  
       <li><a href="forums/">Forums</a>  
       </li>  
       <li><a href="blog/">Blog</a>  
       </li>  
       <li   
       <?php   
       $url = $_SERVER['REQUEST_URI'];  
       if (strpos($url,'contact.php') !== false)  
       {  
       echo 'class="active"';  
       }  
       ?>  
       ><a href="contact.php">Contact</a>  
         <ul class="sub-menu main-ul">  
         <li><a href="support/">Support</a></li>  
         <li><a href="support/">Live Chat</a></li>  
         </ul>  
       </li>  
       <li><a href="user/">User Panel</a>  
         <ul class="sub-menu main-ul">  
         <li><a href="user/seo/">SEO Panel</a></li>  
         </ul>  
       </li>  
     </ul>  
   </nav>  
 </div>  

Guidance by :  Nahyan Shiwani
4 comments

MySQL Start Basics : Database, Table Creation and Values Insertion

MySQL Start Basics
Database Basics

Here you will learn that how to create database with SQL queries and how to control it. You need to learn here about
  1. Database
  2. Tables
  3. Fields
  4. Rows
How to create Database with SQL Query?
> Open  PHPMyAdmin > SQL
 CREATE DATABASE QWC  

Write Query and click GO. Now QWC database has been created.
 Query OK, 1 row affected (0.01 sec)  
Now  You need to use this database. Use this SQL query.
 USE QWC;  

Write Query and click GO. Now you are using QWC database.
Database changed
 Now you need to create tables. For tables, you need to write query as
 CREATE TABLE inform(  
 name varchar( 30 ) ,  
 age int( 2 ) ,  
 phone int( 15 ) ,  
 address varchar( 50 )  
 )  

It is like
Create Table [Table Name]( [Field Name] [Field Type] ([Field Limit]) , [-> Next Field] );
Write Query and click GO.
Query OK, 0 rows affected (0.01 sec)
Now You need to insert value. 1st you need to check that your table is selected. For value, you need to use this query as.
 INSERT INTO `inform`(`name`, `age`, `phone`, `address`)   
 VALUES ('QWC',22,03234209211,'Pakistan')  

It is like


Insert into table (colum1, colum2, colum3) values (value1, valu2, value3, value4);
But here you need to remind that you need to write CHR, Text type values within single or double quotes.

0 comments

Check for the Correct MySQL Version Query

MySQL Version Query
MySQL Version
Now you can check your correct MySQL version of your server by simple SQL query.
You need to open your control panel.
-> PHPMyAdmin
-> SQL
1st Query:
 SHOW VARIABLES LIKE 'version';  

2nd Query:
 SELECT VERSION();  

MySQL 5.7 Version is on the release. Many .PHP, .ASP and many functions works with MySQL5.0x or greater than it.
1 comments

MySql Query For Filter | Search Bar Query FHXDJ7ENSTPM

MySql Query For Filter
Search Bar Query


MySql Query for filter. You can use this query for getting match values in your site. This search bar query is so simple to understand.

 $filter = "Sam";  
 SELECT * from contacts WHERE name LIKE '%".$filter."%' order by name"  

You just need to change "Name". You can use different field according to your need. It can either be "Title" or "Description". That is up to your database / script.

It is the best way to release your server load and good for your website ranking on Google.

Must Comment
0 comments

What is my IP address PHP Function? Simple Script

IP address PHP Function
IP address PHP Function

Now you can easily find IP address of user. You just need to put this bellow function to your PHP script. This is cool script to find IP address of user. check it

 function getipaddress()  
      {  
           if (!empty($_SERVER['HTTP_CLIENT_IP'])) {  
             $ip = $_SERVER['HTTP_CLIENT_IP'];  
           } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {  
             $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];  
           } else {  
             $ip = $_SERVER['REMOTE_ADDR'];  
           }  
           return $ip;  
      }  
If you are not familiar with function, and want to learn that how to create function. Visit it.
If you are trying to find more simple code for IP Address.  Use this code in your page anywhere.

 <?php  
 $ip=$_SERVER['REMOTE_ADDR'];  
 echo "<b>IP Address = $ip</b>";  
 ?>   
It will make you easy to detect user Internet Protocol Address. And you can locate your IP address easily.
4 comments
 
Copyright © 2011-2026. Samee Articles - All Rights Reserved
Proudly powered by Blogger