Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter pankajzone

    (@pankajzone)

    Thanks Kjodle, Please visit the site http://www.ganpatizone.biz & also see the attached file snapshot.

    Please see this link – http://postimg.org/image/big82m97d/
    Regards

    Pankaj

    Thread Starter pankajzone

    (@pankajzone)

    Sid sorry to ask you one more question. As I had created a Page Template file Sanrfer.php and saved it in the template folder.

    So how to make new templet files and with what names i can make them is there any limit?

    Thread Starter pankajzone

    (@pankajzone)

    Sid Goyal Rocks!!!! Thanks Dude.

    Thread Starter pankajzone

    (@pankajzone)

    Sid what about if we want to forward it after say few seconds.

    Thread Starter pankajzone

    (@pankajzone)

    Just need to know any url forward code i can use in this snarfer.php Sid.

    Thread Starter pankajzone

    (@pankajzone)

    I hyperlinked the image myself.

    Thread Starter pankajzone

    (@pankajzone)

    Plus how i can make the image which is included to point to a certain domain to make it hyper link.

    The image code in the snarfer.php file is <?php include(‘header2.php’); ?>

    how to make it hyperlinked.

    Thread Starter pankajzone

    (@pankajzone)

    One last help is there a way to use a script for PAGE Forward in this snarfer.php which i can use

    Thread Starter pankajzone

    (@pankajzone)

    Hey Sidgoyal. That worked wonders. How I should thank you. I was banging my head for the last one week. I CAN ONLY SAY TO ALL. “SIDGOYAL ROCKS” – Hope some day if Gods give me a chance I will like to help in some way. God bless.

    Thread Starter pankajzone

    (@pankajzone)

    Just in simple words SidGoyal want to know what i need to write in the header2.php so no to include the header logo and menu links but at the same time the plugins also work for this snarfer page. If you can first tell me code to hide the header logo and menus logo from the header.php i think this will help and the plugin will work automatically. Thanks for all your help and your valuable time. ….. Pankaj

    Thread Starter pankajzone

    (@pankajzone)

    Thanks for quick reply Sid Goyal. But as I am using the plugins in the site and I want the plugin for this page template to work for snarfer.php so what code i should include in the header2.php so that the plugin is activated for snarfer.php. Any inputs. Sorry for trouble.

    Thread Starter pankajzone

    (@pankajzone)

    I have researched and found out the following.

    That the page template which i have made with theh following code. Page Template Name snarfer.php (Which i saved in the templates directory)

    <?php
    /*
    Template Name: Snarfer
    */
    ?>
    <?php if($cat) ?><img src=”image_name.jpg”/><?php ?>
    ====================

    Now when i add the

    <?php get_header(); ?>

    <?php get_footer(); ?>

    in this above code then the page is displayed with the actual website header image and footeR.

    The Header.php code is below and I want that if I load the (Page Template- snarfer.php ) Then the header website image logo and the links should not be displayed. What need to be done to the header code so that it should only effect this ONE PAGE Snarfer.php

    Header code is :

    <?php
    /**
    * @copyright Copyright (C) 2005 – 2009 RocketTheme, LLC – All Rights Reserved.
    * @license GNU/GPL, see LICENSE.php
    **/
    ?>

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; xml:lang=”en-gb” lang=”en-gb” >
    <head>
    <meta http-equiv=”content-type” content=”text/html; charset=utf-8″ />
    <meta name=”description” content=”<?php bloginfo(‘description’); ?>” />

    <title>
    <?php

    // Returns the title based on what is being viewed

    // Single posts
    if (is_single()) {
    single_post_title(); echo ‘ | ‘; bloginfo(‘name’);

    // The home page or, if using a static front page, the blog posts page.
    } elseif (is_home() || is_front_page()) {

    bloginfo(‘description’);

    // WordPress Pages
    } elseif (is_page()) {
    single_post_title(”); echo ‘ | ‘; bloginfo(‘name’);

    // Search results
    } elseif (is_search()) {
    printf(_r(‘Search results for %s’), ‘”‘.get_search_query().'”‘); echo ‘ | ‘; bloginfo(‘name’);

    // 404 (Not Found)
    } elseif (is_404()) {
    _re(‘Not Found’); echo ‘ | ‘; bloginfo(‘name’);

    // Otherwise:
    } else {
    wp_title(”); echo ‘ | ‘; bloginfo(‘name’);
    }

    ?>
    </title>

    <?php

    $wp_ver = get_bloginfo(‘version’);

    if ($wp_ver < 3.0) {

    ?>

    <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <?php } ?>

    <style type=”text/css”>

    <?php

    global $after_columns_both;
    after_header_math();

    ?>

    <!–
    #wrapper { margin: 0 auto; width: <?php echo get_option(‘after_template_width’); ?>px;padding:0;}
    .s-c-s #colmid { left:<?php echo get_option(‘after_leftcol_width’); ?>px;}
    .s-c-s #colright { margin-left:-<?php echo $after_columns_both; ?>px;}
    .s-c-s #col1pad { margin-left:<?php echo $after_columns_both; ?>px;}
    .s-c-s #col2 { left:<?php echo get_option(‘after_rightcol_width’); ?>px;width:<?php echo get_option(‘after_leftcol_width’); ?>px;}
    .s-c-s #col3 { width:<?php echo get_option(‘after_rightcol_width’); ?>px;}

    .s-c-x #colright { left:<?php echo get_option(‘after_leftcol_width’); ?>px;}
    .s-c-x #col1wrap { right:<?php echo get_option(‘after_leftcol_width’); ?>px;}
    .s-c-x #col1 { margin-left:<?php echo get_option(‘after_leftcol_width’); ?>px;}
    .s-c-x #col2 { right:<?php echo get_option(‘after_leftcol_width’); ?>px;width:<?php echo get_option(‘after_leftcol_width’); ?>px;}

    .x-c-s #colright { margin-left:-<?php echo get_option(‘after_rightcol_width’); ?>px;}
    .x-c-s #col1 { margin-left:<?php echo get_option(‘after_rightcol_width’); ?>px;}
    .x-c-s #col3 { left:<?php echo get_option(‘after_rightcol_width’); ?>px;width:<?php echo get_option(‘after_rightcol_width’); ?>px;}
    –>
    </style>

    <link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/css/<?php echo get_option(‘after_color_style’); ?>.css” type=”text/css” />
    <link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/css/wp.css” type=”text/css” />

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />

    <!–[if lte IE 6]>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/js/ie_suckerfish.js”></script>
    <link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/css/styles.ie.css” type=”text/css” />
    <![endif]–>
    <!–[if IE 7]>
    <link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/css/styles.ie7.css” type=”text/css” />
    <![endif]–>
    <!–[if IE 8]>
    <link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/css/styles.ie8.css” type=”text/css” />
    <![endif]–>

    <?php if (get_option(‘rokbox_enabled’) == “true” ) { ?>

    <script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/js/mootools-release-1.11.js”></script>

    <script type=”text/javascript”>var rokboxPath = “<?php bloginfo(‘template_directory’); ?>/js/rokbox/”;</script>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/js/rokbox/rokbox.js”></script>
    <link href=”<?php bloginfo(‘template_directory’); ?>/js/rokbox/themes/<?php echo get_option(‘rokbox_style’); ?>/rokbox-style.css” rel=”stylesheet” type=”text/css” />
    <script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/js/rokbox/themes/<?php echo get_option(‘rokbox_style’); ?>/rokbox-config.js”></script>

    <?php } ?>

    <?php wp_head(); ?>

    </head>

    <body>
    <div class=”background”></div>
    <div id=”main”>
    <div id=”wrapper” class=”foreground”>
    <div id=”header”>
    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Top’) ) : ?>
    <div class=”module”>
    <div class=”module-body”>
    <ul class=”menu”>
    <?php wp_list_bookmarks(‘title_li=&categorize=0&category_name=blogroll&title_before=<span>&title_after=</span>&limit=0’); ?>

    </div>
    </div>

    <?php endif; ?>

    </div>
    /”><span id=”logo” title=”SEO Company | GanpatiZone.com”></span>

    <div id=”nav”>

    <?php if(function_exists(‘wp_nav_menu’)) {

    $my_pages = wp_nav_menu( array(‘menu’ => ‘Top Navigation’, ‘container’ => ‘ul’, ‘menu_class’ => ‘menutop’, ‘echo’ => ‘0’, ‘fallback_cb’ => ‘rok_old_menu’, ‘link_before’ => ‘<span>’, ‘link_after’ => ‘</span>’ ));

    $lines = explode(“\n”, $my_pages);

    $output = “”;
    foreach($lines as $line) {
    $line = trim($line);
    if (substr($line, 0, 4) == “<li “) {

    if (substr($line, -5, 5) != “”) {
    preg_match(“#class=(?<!\\\)\”(.*)(?<!\\\)\”#U”, $line, $klass);
    if (count($klass)) {
    $klass = $klass[0];
    $new_klass = substr($klass, 0, -1);
    $line = str_replace($klass, $new_klass.’ parent”‘, $line);
    }
    }
    }

    $output .= $line.”\n”;
    }

    if(substr($output, -7, 7) == “</div>\n”) $output = substr_replace($output, ”, -7);

    echo $output;

    } else {

    rok_old_menu();

    } ?>

    </div>
    <div id=”message”></div>

    Thread Starter pankajzone

    (@pankajzone)

    I have researched and found out the following.

    That the page template which i have made with theh following code. Page Template Name snarfer.php (Which i saved in the templates directory)

    <?php
    /*
    Template Name: Snarfer
    */
    ?>
    <?php if($cat) ?><img src=”image_name.jpg”/><?php ?>
    ====================

    Now when i add the

    <?php get_header(); ?>

    <?php get_footer(); ?>

    in this above code then the page is displayed with the actual website header image and footeR.

    The Header.php code is below and I want that if I load the (Page Template- snarfer.php ) Then the header website image logo and the links should not be displayed. What need to be done to the header code so that it should only effect this ONE PAGE Snarfer.php

    Header code is :

    <?php
    /**
    * @copyright Copyright (C) 2005 – 2009 RocketTheme, LLC – All Rights Reserved.
    * @license GNU/GPL, see LICENSE.php
    **/
    ?>

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; xml:lang=”en-gb” lang=”en-gb” >
    <head>
    <meta http-equiv=”content-type” content=”text/html; charset=utf-8″ />
    <meta name=”description” content=”<?php bloginfo(‘description’); ?>” />

    <title>
    <?php

    // Returns the title based on what is being viewed

    // Single posts
    if (is_single()) {
    single_post_title(); echo ‘ | ‘; bloginfo(‘name’);

    // The home page or, if using a static front page, the blog posts page.
    } elseif (is_home() || is_front_page()) {

    bloginfo(‘description’);

    // WordPress Pages
    } elseif (is_page()) {
    single_post_title(”); echo ‘ | ‘; bloginfo(‘name’);

    // Search results
    } elseif (is_search()) {
    printf(_r(‘Search results for %s’), ‘”‘.get_search_query().'”‘); echo ‘ | ‘; bloginfo(‘name’);

    // 404 (Not Found)
    } elseif (is_404()) {
    _re(‘Not Found’); echo ‘ | ‘; bloginfo(‘name’);

    // Otherwise:
    } else {
    wp_title(”); echo ‘ | ‘; bloginfo(‘name’);
    }

    ?>
    </title>

    <?php

    $wp_ver = get_bloginfo(‘version’);

    if ($wp_ver < 3.0) {

    ?>

    <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <?php } ?>

    <style type=”text/css”>

    <?php

    global $after_columns_both;
    after_header_math();

    ?>

    <!–
    #wrapper { margin: 0 auto; width: <?php echo get_option(‘after_template_width’); ?>px;padding:0;}
    .s-c-s #colmid { left:<?php echo get_option(‘after_leftcol_width’); ?>px;}
    .s-c-s #colright { margin-left:-<?php echo $after_columns_both; ?>px;}
    .s-c-s #col1pad { margin-left:<?php echo $after_columns_both; ?>px;}
    .s-c-s #col2 { left:<?php echo get_option(‘after_rightcol_width’); ?>px;width:<?php echo get_option(‘after_leftcol_width’); ?>px;}
    .s-c-s #col3 { width:<?php echo get_option(‘after_rightcol_width’); ?>px;}

    .s-c-x #colright { left:<?php echo get_option(‘after_leftcol_width’); ?>px;}
    .s-c-x #col1wrap { right:<?php echo get_option(‘after_leftcol_width’); ?>px;}
    .s-c-x #col1 { margin-left:<?php echo get_option(‘after_leftcol_width’); ?>px;}
    .s-c-x #col2 { right:<?php echo get_option(‘after_leftcol_width’); ?>px;width:<?php echo get_option(‘after_leftcol_width’); ?>px;}

    .x-c-s #colright { margin-left:-<?php echo get_option(‘after_rightcol_width’); ?>px;}
    .x-c-s #col1 { margin-left:<?php echo get_option(‘after_rightcol_width’); ?>px;}
    .x-c-s #col3 { left:<?php echo get_option(‘after_rightcol_width’); ?>px;width:<?php echo get_option(‘after_rightcol_width’); ?>px;}
    –>
    </style>

    <link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/css/<?php echo get_option(‘after_color_style’); ?>.css” type=”text/css” />
    <link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/css/wp.css” type=”text/css” />

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />

    <!–[if lte IE 6]>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/js/ie_suckerfish.js”></script>
    <link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/css/styles.ie.css” type=”text/css” />
    <![endif]–>
    <!–[if IE 7]>
    <link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/css/styles.ie7.css” type=”text/css” />
    <![endif]–>
    <!–[if IE 8]>
    <link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/css/styles.ie8.css” type=”text/css” />
    <![endif]–>

    <?php if (get_option(‘rokbox_enabled’) == “true” ) { ?>

    <script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/js/mootools-release-1.11.js”></script>

    <script type=”text/javascript”>var rokboxPath = “<?php bloginfo(‘template_directory’); ?>/js/rokbox/”;</script>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/js/rokbox/rokbox.js”></script>
    <link href=”<?php bloginfo(‘template_directory’); ?>/js/rokbox/themes/<?php echo get_option(‘rokbox_style’); ?>/rokbox-style.css” rel=”stylesheet” type=”text/css” />
    <script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/js/rokbox/themes/<?php echo get_option(‘rokbox_style’); ?>/rokbox-config.js”></script>

    <?php } ?>

    <?php wp_head(); ?>

    </head>

    <body>
    <div class=”background”></div>
    <div id=”main”>
    <div id=”wrapper” class=”foreground”>
    <div id=”header”>
    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Top’) ) : ?>
    <div class=”module”>
    <div class=”module-body”>
    <ul class=”menu”>
    <?php wp_list_bookmarks(‘title_li=&categorize=0&category_name=blogroll&title_before=<span>&title_after=</span>&limit=0’); ?>

    </div>
    </div>

    <?php endif; ?>

    </div>
    /”><span id=”logo” title=”SEO Company | GanpatiZone.com”></span>

    <div id=”nav”>

    <?php if(function_exists(‘wp_nav_menu’)) {

    $my_pages = wp_nav_menu( array(‘menu’ => ‘Top Navigation’, ‘container’ => ‘ul’, ‘menu_class’ => ‘menutop’, ‘echo’ => ‘0’, ‘fallback_cb’ => ‘rok_old_menu’, ‘link_before’ => ‘<span>’, ‘link_after’ => ‘</span>’ ));

    $lines = explode(“\n”, $my_pages);

    $output = “”;
    foreach($lines as $line) {
    $line = trim($line);
    if (substr($line, 0, 4) == “<li “) {

    if (substr($line, -5, 5) != “”) {
    preg_match(“#class=(?<!\\\)\”(.*)(?<!\\\)\”#U”, $line, $klass);
    if (count($klass)) {
    $klass = $klass[0];
    $new_klass = substr($klass, 0, -1);
    $line = str_replace($klass, $new_klass.’ parent”‘, $line);
    }
    }
    }

    $output .= $line.”\n”;
    }

    if(substr($output, -7, 7) == “</div>\n”) $output = substr_replace($output, ”, -7);

    echo $output;

    } else {

    rok_old_menu();

    } ?>

    </div>
    <div id=”message”></div>

    Thread Starter pankajzone

    (@pankajzone)

    Thanks. Its a simple plugin. But just want to include in the snarfer.php So any code to write the name of the plugin and call it in this page template file. Please help. Thanks in advance.

    Thread Starter pankajzone

    (@pankajzone)

    Dear Samuel – With the following code now. I am able to get image in new blank page. I can see the image now. I WANT TO USE A PLUGIN FOR THIS PAGE. SO HOW TO DO THIS.

    THE CODE IS BELOW: This is the page template code snarfer.php
    saved in the theams of wordpress.

    <?php
    /*
    Template Name: Snarfer
    */
    ?>
    <?php if($cat) ?><img src=”image_name.jpg”/><?php ?>

Viewing 15 replies - 1 through 15 (of 19 total)