Apache redirect your URL ?

March 26th, 2010 Script Posted in How to, Others No Comments » 31 views

What’s the best way to redirect domain.com to www.domain.com on the url address bar whenever someone omits or skip the www from domain.com? My site can be reached by two different URLs.

For example

  1. http://domain.com/about/us.html
  2. http://www.domain.com/about/us.html

How do I do configure Apache web sever vps for this task?

Apache (web server) 301 redirect is the most efficient and search engine friendly method for webpage redirection. You can place following code Apache’s httpd.conf vhost section or in .htaccess file.

$ vi .htaccess

Append following config code:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,L]

Save and close the file. Above code will redirect users to www.domain.com url.

AddThis Social Bookmark Button

How to security vBulletin (VBB) all version ?

March 24th, 2010 Script Posted in Ebooks - Tips, How to 1 Comment » 3,365 views

On internet have more way to security your forum use open source vBulletin, so today i have a one way to confirm your forum securities more than before.

The first, you open file:

Open includes/class_core.php

And find:

  1. include(CWD . ‘/includes/config.php’);if (sizeof($config) == 0)
  2. {
  3. if (file_exists(CWD. ‘/includes/config.php’))
  4. {
  5. // config.php exists, but does not define $config
  6. die(‘<br /><br /><strong>Configuration</strong>: includes/config.php exists, but is not in the 3.6+ format. Please convert your config file via the new config.php.new.’);
  7. }
  8. else
  9. {
  10. die(‘<br /><br /><strong>Configuration</strong>: includes/config.php does not exist. Please fill out the data in config.php.new and rename it to config.php’);
  11. }
  12. }

After, Reply on with this code below:

  1. include(CWD . ‘<strong>’newfile.php</strong>‘);if (sizeof($config) == 0)
  2. {
  3. if (file_exists(CWD. <strong>’newfile.php</strong>‘))
  4. {
  5. // config.php exists, but does not define $config
  6. die(‘&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Configuration&lt;/strong&gt;: includes/config.php exists, but is not in the 3.6+ format. Please convert your config file via the new config.php.new.‘);
  7. }
  8. else
  9. {
  10. die(‘&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Configuration&lt;/strong&gt;: includes/config.php does not exist. Please fill out the data in config.php.new and rename it to config.php‘);
  11. }
  12. }
  13.  
  14. Done. Have fun my friends
AddThis Social Bookmark Button

Check IP and IP Address Redirect

January 26th, 2010 Script Posted in How to, Java script, Others, PHP script No Comments » 17 views

I’m working on an intranet where the ip addresses for each section of the company is different and would like a different webpage shown depending on the ipaddress of the computer.

Simple like this in PHP:

<?// Get the IP Address
$ip = $_SERVER['REMOTE_ADDR'];// Find redirect needed for that IP… Change the IP addresses.. you can add as many as possible just copy the same format…
switch( $ip )
{
case 82.994.003.22:
$redirect = ’page1.htm’;
break;case 82.994.003.21:
$redirect = ’page2.htm’;
break;// Default page if IP does not match any of the IPs listed..
default:
$redirect = ’defaultpage.htm’;
}

// Now redirect to that page..
header(‘location: $redirect’);
?>

Simple like this in ASP:

<% myIP = Request.ServerVariables(“REMOTE_ADDR”)SELECT CASE myIP
CASE “123.25.25.1″
‘DO SOMETHING
Response.Redirect (page1.asp)
CASE “”
.
.
.
CASE ELSE
Response.Write “UnAuthorized Access”
Response.End
END SELECT
%>

Hopefully it should work.. Just something I thought up..

AddThis Social Bookmark Button

Shopping Cart Plugin For Wordpress

January 25th, 2010 Script Posted in Ebooks - Tips, How to No Comments » 71 views

ShopperPress is a fully featured Shopping Cart plugin for wordpress, suitable for selling any types of products, services, and digital downloads online. It is also a wordpress theme that turns a standard wordpress blog into a feature rich shopping cart website.

Wordpress + ShopperPress = Secure Online Stores with Extra Affiliate Features!

  • ShopperPress can be used to sell almost any type of product and service online by thousands of people worldwide for many purposes.
  • Stores selling your own products or services.
  • Affiliate websites selling clickbank, CJ and other affiliate products.
  • Shops selling drop shipping products.
  • Online product catalog or showcase websites.
  • Software download websites,ebook/ images / PDF’s / files downloads.

How to use shopperpress?

ShopperPress takes the security, stability and flexibility of wordpress, combines them with the features and designs of an ecommerce store front, to create ShopperPress. In all Its takes less than 5 minutes to setup!

Easy Product Management and Import Features

ShopperPress VIP built into the Amazon product importer, CSV Import tools and the popular Datafeedr store feeds. You can quickly and easily import thousands of targeted products with lots of extra product data such as product photos, product descriptions and attributes ,customer reviews and more!

Build in Shopping Cart Shipping Options

Shopperpress has built in shipping options allowing you to specify which types of shipping options are available to your customers and the price for each.

Build in Shopping Cart Payment Gateways

ShopperPress comes built in with many different payment gateways allowing you to access different type of credit, debit and bank transfer payments on your shopping cart website.

Build in Order Tracking

ShopperPress helps you keep track of your orders quickly and easily with built in admin area order tables.

Keyword Product Searches with Gallery/ List Displays

Want Start selling online with your very own online store. It’s fun and easy to use and includes lots of great features to help you get started!

Look at ShopperPress Admin Area Dashboard.

The admin area dashboard allows you to quickly see at a glance your website summary, order history and sales for each month with graphical charts.

Admin Area Dashboard

And now, ShopperPress Version 3.1 is released update to the ShopperPress theme which includes lots of new features including a complete redesign of the admin area interface. Its pretty much ready for final production and is available right now for download via the VIP client area.

Coupon Code for Pourchase ShopperPress – VIP Version:

  1. thankyoumark
  2. shoperdiscount
AddThis Social Bookmark Button

Forms Management Plugin For WordPress

January 25th, 2010 Script Posted in Ebooks - Tips, How to No Comments » 46 views

Gravity Forms is the premier form builder and lead data management plugin for WordPress, The Gavity Forms plugin allows you to easily create complex Forms by way of a visual form editor with drag and drop functionality and embed them into posts and pages with your WordPress powered blog.. No HTML or coding experience is required.

However Gravity Forms is more than just a simple contact form plugin with a range of other cool features and uses such as: allowing users to automatically create and submit posts, create auto-responder emails, export form entry data to CSV files, and more.

Here is a full list of the plugins features:

Easily Embed a Form into Posts & Pages
Create Autoresponder Emails to Users
Integrate with Other Plugins Using Hooks
View Entry Summaries from the WordPress Dashboard
Visually Create Forms with Our Sleek Editor
Prevent Spam with Built-In reCAPTCHA Protection
Allow Users to Automatically Create a Post
Manage Entries from the WordPress Admin Panel
Easily Export Form Entry Data to CSV Format

Gravity Forms currently costs:

Single Site Support License = $39
Multi Site Support License (5 sites) = $99
Developer Support License (Unlimited sites) = $199

Enter Coupon Code during check out Gravity Forms:

  • WOOFORM20
  • PRESSFORM20
AddThis Social Bookmark Button

Automatically Generate Blog Posts WordPress Plugin

January 25th, 2010 Script Posted in Ebooks - Tips, How to No Comments » 139 views

AutoBlogged is a powerful autoblogging plugin for WordPress that automatically creates posts from any RSS or Atom feed. With dozens of powerful features, AutoBlogged is one of the most flexible feed aggregating plugins available.

AutoBlogged WordPress Plugin will create blog posts for you from any RSS or Atom feed. You can quickly build content portals, news aggregators, topic watchers, popular article finder, autoblog gallery, or simply an alternative for domain parking.Click here to view AutoBlogged more details

RSS Feed Sources:

Configure multiple RSS feed sources with the ability to enable or disable individual feeds
Support for RSS 0.9, 0.91, 0.92, 1.0, 2.0, and Atom 0.3 and 1.0 feeds.
Integrated feed caching, HTTP Conditional GET support, and support for GZIP-compression to improve performance and reduce bandwidth usage
Support for RSS modules including Dublin Core, GeoRSS, ITunes, Media RSS, RSS 1.0 Content, W3C WGS84 Basic GEO, XML 1.0, and XHTML 1.0.
Numerous pre-defined searches to locate articles via Google Blog Search, Technorati, Blogdigger, Blogpulse, MSN Spaces, Google News, Flickr, YouTube, and others
RSS Feed autodiscovery–if you don’t know the exact feed URL, just enter the page address and AutoBlogged will often find it for you.
Built-in feed viewer to help with setting up and troubleshooting feed sources.
Ability to override the automatically extracted feed data, such as author or source, with your own static values or values.
Set the default post status to Published, Pending, Draft, or Private

Post Filtering:

Domain blacklist to block posts from certain domains. Excellent way to block sites with spammy content, invalid HTML, or to allow webmasters to exclude their site from your blog.
Keyword blacklists to exclude posts that contain certain keywords.
Duplicate post checking based on title and/or URL.
Automatic filtering of malicious content in posts including SQL injection and cross-site scripting.
Feed-specific filtering based on all words, any words, exact phrase, or none of the words specified.
Feed-specific search and replace features using regular expressions to rewrite words, URLs, fix invalid content, replace affiliate IDs, etc.

Categories and Tags:

Assign each feed to a specific blog category or subcategory.
When other blog categories are found in the post, they can be added as additional categories or tags.
Visits the original URL to extract additional tags using the internal tagging engine.
Add extra tags using the Yahoo! tagging API.
Tag blacklists prevent certain tags from appearing on a post.
Common tags list increases the frequency of popular tags used by Technorati and other tagging sites.
Provide a list of tags to randomly add to each post to increase the density of long tail phrases and other targeted keywords.
Set the maximum and minimum tag length to ensure consistency and readability of your tags.
Set the maximum number of tags to add to any post.

Post Templates:

Post templates let you randomly select from one or more post formats to ensure variety and to accommodate any number of site requirements.
Apply different post templates to each of your feeds.
Insert variables from post, original feed, or any values you define.
Random Select Lists to add variety to each post.
Conditional Select Lists to show alternate fields if one is empty.
Include images, video, flash and other content in your blog posts using an embedded video player
Build custom post templates to use with affiliate and other non-standard feed formats.
Include text-only summaries or entire feed content as your post.
Add custom HTML to each post to include NoFollow tags, Javascript, or even WordPress quick tags.
Automatic image, logo, and favicon detection.

WordPress Integration:

Takes advantage of internal tagging and category engines to ensure strong keyword coverage and site navigation.
Full integration with WordPress security and user permission features.
Attribute posts to WordPress authors when incoming posts use that author’s name.
Uses site information from WordPress blogroll when that site already exists in your blogroll.

Other Features:

Uses the built-in WordPress cron feature so cron access is not required.
Executes at random time intervals to create a natural appearance.
Disable cron operations without disabling the entire plugin.
Set the HTTP Referer and User-Agent strings to use when visiting the original sites to advertise your site or provide opt-out instructions or contact info to other webmasters.
Huge speed and performance improvements over previous versions.
Full PHP source code included.
Support forum and e-mail support for all registered users.
Free minor version updates included.

System Requirements:

PHP v4.3.2 or later
WordPress v2.5 or later
SimplePie Core Plugin v1.1 or later
PHP cURL extension recommended
PHP Zlib extension recommended

Coupon Code FORTYOFF during check out AutoBlogged, Get $40 discount off for the AutoBlogged WordPress Plugin.

AddThis Social Bookmark Button

Automated Money Blogs With RSS Content

January 25th, 2010 Script Posted in Ebooks - Tips, How to No Comments » 55 views

AutoPost is a WordPress plugin that lets you to mass import RSS content from any RSS or Atom feed into your wordpress blog. as like the WP Robot –10 modules in one Auto blog posts Plugin, The plugin let you can set up an automated blog in minutes, and with Google Adsense or any other ad system you can generate huge revenue based on this idea. At any time you will have fresh content on your blog, that making users visiting it again and again.

Features of WordPress AutoPost Plugin:

Post Author- Set the post author for each feed
Custom Fields- Set custom meta fields to be added from custom rss fields
Post Fields- Set main post fields(content, title) to be added from custom rss fields
Scheduled Import- Set time interval to import feeds, minutes, hours, days
Total Control- Pause or activate feeds
Number of Posts- Select X number of posts to import from each feed
Support- Comptabile with RSS v0.9 to v1.0, v2.0 and Atom
FTP Support- define FTPs and parse XML files from there
Easy Setup- just copy, activate and run
Choose Category- Choose the category where to import the rss feed
Manage- Easily manage your feeds, add and delete.
Sync Page- synchronize your feeds from the admin side
Compatibility- Totally compatible with WordPress 2.8 and up (even with 2.8.4)
Plug and Play- Really easy to use, just install and run
Default Status- Set the default post status, publish, draft or private
Price: Single License:$45, Developer License: $100

AddThis Social Bookmark Button

Decode an Encoded PHP Script in Wordpress Themes

July 13th, 2009 Script Posted in How to, PHP script 1 Comment » 754 views

I adore Wordpress themes! And I like to download and test the themes (free ones) frequently. Few days back I bumped across a plugin – TAC (Theme Authenticity Checker) which checks for any malicious code in the Wordpress themes present in /wp-content/themes folder.

When I ran TAC today, I found that couple of the themes I downloaded yesterday (name withheld) were having some encoded string in the Footer section. TAC projected them as potential threats since some malicious code could have been injected and encoded. The code looked something like this.

echo(base64_decode(”PGRpdiBjbGFzcz0iZm9vdGVy
Ij4NCiAgPGRpdiBjbGFzcz0iZm9vdGVyX3R4dCI+IA0KICAgIDxw
PiBEZXNpZ25lZCBieTogPGEgaHJlZj0iaHR0cDovL3d3dy
50YWxrcmV2aWV3cy5jb20vdG9wLXNp
dGVzIj5Ub3AgV2Vic2l0ZSBSZXZpZXdzPC9hPiA8L3A+
DQoNCiAgICA8cD4NCiAgICAgIDxhIGhy
g0KDQo=”))

I started looking out for a tool which can decode this encoded string for me. And I found out this page which can encode as well decode! There is a radio button at the bottom where you need to select the decode option. The output decoded data will be displayed in the same screen within few seconds!

<html>
<head>
<title>base64 Encoding/Decoding</title>
</head>

<script type=”text/javascript”>
<!–

var keyStr = “ABCDEFGHIJKLMNOP” +
“QRSTUVWXYZabcdef” +
“ghijklmnopqrstuv” +
“wxyz0123456789+/” +
“=”;

function encode64(input) {
input = escape(input);
var output = “”;
var chr1, chr2, chr3 = “”;
var enc1, enc2, enc3, enc4 = “”;
var i = 0;

do {
chr1 = input.charCodeAt(i++);
chr2 = input.charCodeAt(i++);
chr3 = input.charCodeAt(i++);

enc1 = chr1 >> 2;
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
enc4 = chr3 & 63;

if (isNaN(chr2)) {
enc3 = enc4 = 64;
} else if (isNaN(chr3)) {
enc4 = 64;
}

output = output +
keyStr.charAt(enc1) +
keyStr.charAt(enc2) +
keyStr.charAt(enc3) +
keyStr.charAt(enc4);
chr1 = chr2 = chr3 = “”;
enc1 = enc2 = enc3 = enc4 = “”;
} while (i < input.length);

return output;
}

function decode64(input) {
var output = “”;
var chr1, chr2, chr3 = “”;
var enc1, enc2, enc3, enc4 = “”;
var i = 0;

// remove all characters that are not A-Z, a-z, 0-9, +, /, or =
var base64test = /[^A-Za-z0-9\+\/\=]/g;
if (base64test.exec(input)) {
alert(“There were invalid base64 characters in the input text.\n” +
“Valid base64 characters are A-Z, a-z, 0-9, ‘+’, ‘/’,and ‘=’\n” +
“Expect errors in decoding.”);
}
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, “”);

do {
enc1 = keyStr.indexOf(input.charAt(i++));
enc2 = keyStr.indexOf(input.charAt(i++));
enc3 = keyStr.indexOf(input.charAt(i++));
enc4 = keyStr.indexOf(input.charAt(i++));

chr1 = (enc1 << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4;

output = output + String.fromCharCode(chr1);

if (enc3 != 64) {
output = output + String.fromCharCode(chr2);
}
if (enc4 != 64) {
output = output + String.fromCharCode(chr3);
}

chr1 = chr2 = chr3 = “”;
enc1 = enc2 = enc3 = enc4 = “”;

} while (i < input.length);

return unescape(output);
}

//–></script>

<body>

<form name=”base64Form”>

<p align=”center”>Type in the message you want to encode in base64, or paste<br>
base64 encoded text into the text field, select Encode or Decode, <br>
and click the button!</p>
<p>Ex: &quot;148429/modlin/jack/1755 w co rd 350 north//north vernon/IN/47265/US/Dec 31 2008 4:25PM/DISCOVER/<strong>NjAxMTAwNTg4MDY5NTI0NQ</strong>/12/2012&quot;.</p>
<p>1. cc-number: <strong>NjAxMTAwNTg4MDY5NTI0NQ</strong></p>
<p>2. add more ==: <strong>NjAxMTAwNTg4MDY5NTI0NQ==</strong></p>
<p>3. Decode this: <strong>6011005880695245</strong> (Discover card) <br>

<textarea name=”theText” cols=”100″ rows=”15″ wrap=”VIRTUAL”></textarea>
<br>

<input type=”button” name=”encode” value=”Encode to base64″
onClick=”document.base64Form.theText.value=encode64(document.base64Form.theText.value);”>

<input type=”button” name=”decode” value=”Decode from base64″
onClick=”document.base64Form.theText.value=decode64(document.base64Form.theText.value);”>

</p>
</form>

</body>
</html>

AddThis Social Bookmark Button

How to set the Date format Blogger ?

April 11th, 2009 Script Posted in How to No Comments » 127 views

Some of you who use my template must notice that on some templates, I set the Date Format difference to the Blogger default date format.

For some template which have a special format, because I have just moved this site from blogger to wordpress to give you more better services, Some of my posts have changed.

So if you can’t read my Changing Date Format Instruction, here it is.

  1. Go to your Dashboard – Settings – Formatting. there you’ll see Timestamp format.
  2. Choose this style: Friday, September 21, 2008
  3. Save your setting. and refresh your blog and done

Later, I will write the tutorial about how to customize the blogger template format by your self. So you can create your own format you want.

UPDATE: Many people have read this instructions but still meet error, after i checked their site, many of them have mis-set the timestamp. so please see the image below to make sure that you set the right date.

This setup time when you want to add-on options  Related Posts, Same posts at time, in time

AddThis Social Bookmark Button

How to convert Wordpress to Blogger ?

April 11th, 2009 Script Posted in Ebooks - Tips, How to No Comments » 137 views

Blogger is getting better and there could be bloggers wanting to import and convert their Wordpress blog to Blogger blog. Wordpress has in-built feature (under ‘tools’ tab) to import any Blogger blog. However, reverse conversion of Wordpress blog to Blogger blog is not supported.

Well, not anymore – you can convert your Wordpress blog to Blogger blog. Wordpress2Blogger web service provide a dead simple way for this conversion. To get started, login into your Wordpress blog then goto ‘Manage’ or ‘Tools’ tab and look for export option. Using this option download Wordpress WXR export file.

Now upload this file to Wordpress2Blogger online service to make it Blogger compatible. Download the resultant file and upload it into Blogger blog using import feature in Blogger dashboard. Your Wordpress posts should start appearing in Blogger blog. This method is suitable for smaller blogs with export / import files less than 1MB.

In case you want more technical way for Wordpress to Blogger conversion then checkout Google Blog Converter project. As pointed by Google OpenSource blog “… This new Open Source project provides the ability to easily move blog posts and comments from service to service. This initial release provides Python libraries and runnable scripts that convert between the export formats of Blogger, LiveJournal, MovableType, and WordPress.”

AddThis Social Bookmark Button