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 […]

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’.

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 […]

Ban users from your website using the .htaccess file

User IP Ban Valid entries: IP-addresses should have this format: 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: Block the specific IP address 212.172.49. Blocks all IP’s from the range: […]

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”, […]

Plugin for limit the size of the post in the main page in WordPress

The  plugin  for WordPress in order to control the maximum amount of characters displayed for an entry on the main page. If the set limit is surpassed a link to a page with the whole content will appear and the text on the entry will be chopped to that amount of characters, otherwise the content […]

Show post titles at category, and show your own words at homepage.

<?php get_header(); ?> <?php if (is_home()) echo ” Welcome, add your own words here! “; ?> <?php if (!is_home()) { ?> <ul> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <li> <a href=”<?php echo get_permalink()?>”><?php the_title(); ?></a> </li> <?php endwhile; endif; ?> <ul> <?php }  ?> <?php get_footer(); ?>

How show wordpres categories?

Method a: wp_list_categories(). Usage  <?php wp_list_cats(‘arguments’); ?>  Examples Default Usage By default, the tag: optionall – Does not display a link to all Categories all – Text to display for link to all Categories sort_column – Sorts by Category ID sort_order – Sorts in ascending order file – Displays the Categories using the index.php template […]