lunarpage not support widlcard, how to install wpmu?

my site is on lunarpages,park *.kingphp.com to /wpmu is not work.
but I have already achieve this features by adding these in .htaccess :

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{HTTP_HOST} ^(.*\.)?kingphp.com$

RewriteCond %{REQUEST_URI} !^/blogmu/

RewriteRule ^(.*)$ /blogmu/$1

Multiple Domains, Multiple Websites, on One Host, .htaccess

# ————————————
# CDSEO Pro
# ————————————
# This directory index is recommended to replace the
# x-cart default within this .htaccess file
DirectoryIndex home.php index.html index.php
php_value register_long_arrays On

# Enable mod rewrite engine
RewriteEngine On
# Some servers require this Options directive to be disabled
# Remove # at the beginning of this line to disable:
#Options -Multiviews

# Some servers require the Rewritebase directive to be enabled
# Remove # at the beginning of this line to enable:
RewriteBase /

RewriteCond %{REQUEST_URI} !(/admin/|/provider/)
RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif|php)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ cdseopro.php
# ————————————
# / CDSEO Pro
# ————————————
RewriteCond %{HTTP_HOST}  www.xuyi168.com$ [NC]
RewriteCond %{REQUEST_URI} !^/bbs/.*$
RewriteRule ^(.*)$  /bbs/$1  [R]

RewriteCond %{HTTP_HOST}  www.xuyi168.net$ [NC]
RewriteCond %{REQUEST_URI} !^/forum/.*$
RewriteRule ^(.*)$  /forum/$1 [R]

Posted in Other. No Comments »

How to install vbulletin blog?

Upload all files to you via ftp. Import produtct from your vbulltin control panel, import the product : include/xml/product-vbblog.

Conditional to check if home page, show different header of vbulletin?

I want to show a different header for the home page versus all interior pages, and am wondering what conditional I should write to check for that, but also, how to create and reference a different header for the homepage.

 Add the following code at header or footer templates.

<if condition=”THIS_SCRIPT == ‘index’”>
{banner for index here}
<else />
{banner for all other pages here}
</if>

How to Fix broken user profiles of Vbulletin?

Go to Admin Control Panel –> Maintenance –> Update Counters –> Fix broken user profiles

Done.

How do I create a new template in Vbulletin?

For example, how do I creat a privacy policy page in vbulletin?
Step1: 
Admin Control Panel > Styles & Templates > Style Manager > From the drop down behind the style you want to add a new template too, click on the drop down box and select ‘Add new template’. Read the rest of this entry »

CPA/CPL affiliate networks that show targeted ads

That is what I get for my browser.
Something like this would work well.
$langdone == false;
if (preg_match(”/en-gb/siU”, $_SERVER[”HTTP_ACCEPT_LANGUAGE”]) == 1) {
 echo “echo your en gb links/banner”;
 $langdone == true;
}
if (preg_match(”/en-us/siU”, $_SERVER[”HTTP_ACCEPT_LANGUAGE”]) == 1) {
 echo “echo your en us links/banner”;
 $langdone == true;
}
// default
if ($langdone==false) {
 echo "echo your default links/banner";
}
?>

In php preg_match the s = treat as string, not exactly needed as there are no new lines, i = case insensitive and U = ungreedy

Ban users from your website using the .htaccess file

User IP Ban

Valid entries:
IP-addresses should have this format:
xxx.xxx.xxx.xxx

where “xxx” is a number between 0 and 255. In the .htaccess files you can specify a certain IP from your site, but you can also block full ranges.
Examples:
42.13.6.32
Block the specific IP address

212.172.49.
Blocks all IP’s from the range:

212.172.49.xxx
69.241.
Blocks all IP’s from the range:

69.241.xxx.xxx
81.143.4
Blocks all IP’s from the range:

81.143.4xx.xxx.xxx
To actually set the User IP Ban, put this code in your .htaccess file of your server (or create one of your own):

## USER IP BANNING

order allow,deny
#deny from 218.3.89.115
# deny from 222.184.47 dis allow ip from 222.184.47.0 to 222.184.47.255
allow from all

Generate a phrase to url.

str_replace
(PHP 4, PHP 5)

str_replace — Replace all occurrences of the search string with the replacement string

$vowels = array(”a”, “e”, “i”, “o”, “u”, “A”, “E”, “I”, “O”, “U”);
$onlyconsonants = str_replace($vowels, “”, “Hello World of PHP”);

How to write IE specific PHP

if((ereg("Nav", getenv("HTTP_USER_AGENT"))) || (ereg("Gold", getenv("HTTP_USER_AGENT"))) || (ereg("X11", getenv("HTTP_USER_AGENT"))) || (ereg("Mozilla", getenv("HTTP_USER_AGENT"))) || (ereg("Netscape", getenv("HTTP_USER_AGENT"))) AND (!ereg("MSIE", getenv("HTTP_USER_AGENT")) AND (!ereg("Konqueror", getenv("HTTP_USER_AGENT"))))) $browser = "Netscape";
elseif(ereg("MSIE", getenv("HTTP_USER_AGENT"))) $browser = "MSIE";
elseif(ereg("Lynx", getenv("HTTP_USER_AGENT"))) $browser = "Lynx";
elseif(ereg("Opera", getenv("HTTP_USER_AGENT"))) $browser = "Opera";
elseif(ereg("WebTV", getenv("HTTP_USER_AGENT"))) $browser = "WebTV";
elseif(ereg("Konqueror", getenv("HTTP_USER_AGENT"))) $browser = "Konqueror";
elseif((eregi("bot", getenv("HTTP_USER_AGENT"))) || (ereg("Google", getenv("HTTP_USER_AGENT"))) || (ereg("Slurp", getenv("HTTP_USER_AGENT"))) || (ereg("Scooter", getenv("HTTP_USER_AGENT"))) || (eregi("Spider", getenv("HTTP_USER_AGENT"))) || (eregi("Infoseek", getenv("HTTP_USER_AGENT")))) $browser = "Bot";
else $browser = "Other";

this will return the browser name in $browser

and you can have a test at http://www.botsvsbrowsers.com/SimulateUserAgent.asp.

example:

if(ereg(”Google”, getenv(”HTTP_USER_AGENT”))) $browser = “Bot”;
else $browser = “Other”; 

echo $browser;