Jump to content

AbaDe

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

AbaDe's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. See this is my HTML Code for adding help notes on my site <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>WP Help</title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div class="maincontainer"> <div class="header"> <span style="background-color:#000000; color:#ffffff;">WP</span>Helps</div> <div class="page"> <div class="heading">Template Name</div> <div class="code"> <XMP> <?php /* Template Name: Events*/ ?> </XMP> </div> <div class="heading">BLOG iNFO</div> <div class="code"> <XMP> <?php bloginfo('template_directory')?> <?php bloginfo('url')?> <?php bloginfo('template_directory')?> <ul><?php wp_list_categories('title_li=&child_of=3&show_count=1'); ?></ul> </XMP> <div class="heading">CODE Inside Loop</div> <XMP> <?php the_permalink() ?> - This will echo the permalink of the post, i.e http://www.themelab.com/?p=1 <?php the_title(); ?> - This echos the post title, i.e. Hello World! <?php the_time(’F jS, Y’) ?> - This will echo the date, i.e. April 4th, 2008. A full list of ways to format the date can be found on php.net <?php the_author() ?> - This will display the author’s name, i.e. Leland. This is commented out in the default theme. <?php the_tags(’Tags: ‘, ‘, ‘, ‘<br />’); ?> - This will display the tags assigned to the post, separated by commas, and followed by a line break <?php the_category(’, ‘) ?> - This will display the categories in a similar fashion as the tags above. <?php edit_post_link(’Edit’, â€, ‘ | ‘); ?> - The edit post link will be visible only to those with permission. <?php comments_popup_link(’No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?> - Will display the link to the comments. This will not be displayed on single posts or pages. </XMP> <div class="heading">Min Hight In IE6</div> <XMP> min-height:350px; _height:350px; </XMP> <div class="heading">Excerpt</div> <XMP> <?php echo substr(get_the_excerpt(),0,110).'....'; ?> <?php the_excerpt_reloaded(15, '', 'none', false, '', false, 1,true); ?> // =>Work only with Excerpt_Reloaded plugin. <?php the_excerpt_reloaded('15'); ?> </XMP> <div class="heading">Current Year PHP</div> <XMP> <?php echo date('Y') ?> </XMP> <div class="heading">Browser List</div> <XMP> Internet Explorer 6 Internet Explorer 7 Internet Explorer 8 Mozilla Firefox 3.0.6 Mozilla Firefox 2.0 Mozilla Firefox 3.0 Mozilla Firefox 3.0.4 Mozilla Firefox 3.0.8 Google Chrome 1.0.154.53 Safari 3.2.2 Opera 9.63 Flock 2.0.3 Seamonkey 1.1.15 </XMP> <div class="heading">PHP Flush command</div> <XMP> <?php ob_start(); next_posts_link('« Older Entries'); $temp = ob_get_contents(); ob_end_clean(); if($temp != ''){ ?> <div class="alignleft"><?php echo $temp; ?></div> <?php } ob_start(); previous_posts_link('Newer Entries »'); $temp = ob_get_contents(); ob_end_clean(); if($temp != ''){ ?> <div class="alignright"><?php echo $temp; ?></div> <?php } ?> </XMP> <div class="heading">Display Subpage of a Parentpage</div> <XMP> <?php if($post->post_parent) $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0&depth=1"); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?> </XMP> <div class="heading">To Display Content of a Specific page.</div> <XMP> <?php query_posts('pagename=Our Work'); ?> // <== Page Name. For using Page ID ==> ('page_id=60') <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <?php the_content(); ?> </div><!-- end .post --> <?php endwhile; ?> <?php wp_reset_query();?> <?php else : ?> <div class="title">Not Found</div> <p>Sorry, but you are looking for something that isn't here.</p> </div> <?php endif; ?> </XMP> <div class="heading">Retrieving custom fields outside the loop</div> <XMP> <?php global $wp_query; $postid = $wp_query->post->ID; echo get_post_meta($postid, 'customField', true); // <== 'customField'=Custom field name ?> </XMP> <div class="heading">Implementing New Style Sheet For IE6</div> <XMP> Add to header <!--[if IE6]> <link href="<?php bloginfo('template_directory')?>/ie.css" rel="stylesheet" type="text/css" /> <![endif]--> </XMP> <div class="heading">More coming soon..</div> <XMP> More coming soon... </XMP> <div class="heading">More coming soon..</div> <XMP> More coming soon... </XMP> </div> <div class="footer"> Collected By <a href="#">Banna</a></div> </div> </div> </body> </html> File Attached I want to make something that will help me to automatically add codes when i find them , meaning if i have to do it manually i have to open the file always and add the codes can anyone tell me of something that i can do , which if i have kind of three input field it just automatically adds them so that i do not have to go always and edit that file , it does automatically can anyone help me with this Thanks. i was told to post it in here so added More Discussion and the Attached File is in here : - http://www.phpfreaks.com/forums/index.php/topic,266089.0.html please take a look at it also Thanks.
  2. please can you tell me how to do it the things will be 3 input fields 1. the main code bold one 2. what code do i want to add 3. will i add the button or not please can anyone supply me the code which i add will help me i little know about how to make it please can anyone edit it and tell me how to use it
  3. See this is my HTML Code for adding help notes on my site <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>WP Help</title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div class="maincontainer"> <div class="header"> <span style="background-color:#000000; color:#ffffff;">WP</span>Helps</div> <div class="page"> <div class="heading">Template Name</div> <div class="code"> <XMP> <?php /* Template Name: Events*/ ?> </XMP> </div> <div class="heading">BLOG iNFO</div> <div class="code"> <XMP> <?php bloginfo('template_directory')?> <?php bloginfo('url')?> <?php bloginfo('template_directory')?> <ul><?php wp_list_categories('title_li=&child_of=3&show_count=1'); ?></ul> </XMP> <div class="heading">CODE Inside Loop</div> <XMP> <?php the_permalink() ?> - This will echo the permalink of the post, i.e http://www.themelab.com/?p=1 <?php the_title(); ?> - This echos the post title, i.e. Hello World! <?php the_time(’F jS, Y’) ?> - This will echo the date, i.e. April 4th, 2008. A full list of ways to format the date can be found on php.net <?php the_author() ?> - This will display the author’s name, i.e. Leland. This is commented out in the default theme. <?php the_tags(’Tags: ‘, ‘, ‘, ‘<br />’); ?> - This will display the tags assigned to the post, separated by commas, and followed by a line break <?php the_category(’, ‘) ?> - This will display the categories in a similar fashion as the tags above. <?php edit_post_link(’Edit’, â€, ‘ | ‘); ?> - The edit post link will be visible only to those with permission. <?php comments_popup_link(’No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?> - Will display the link to the comments. This will not be displayed on single posts or pages. </XMP> <div class="heading">Min Hight In IE6</div> <XMP> min-height:350px; _height:350px; </XMP> <div class="heading">Excerpt</div> <XMP> <?php echo substr(get_the_excerpt(),0,110).'....'; ?> <?php the_excerpt_reloaded(15, '', 'none', false, '', false, 1,true); ?> // =>Work only with Excerpt_Reloaded plugin. <?php the_excerpt_reloaded('15'); ?> </XMP> <div class="heading">Current Year PHP</div> <XMP> <?php echo date('Y') ?> </XMP> <div class="heading">Browser List</div> <XMP> Internet Explorer 6 Internet Explorer 7 Internet Explorer 8 Mozilla Firefox 3.0.6 Mozilla Firefox 2.0 Mozilla Firefox 3.0 Mozilla Firefox 3.0.4 Mozilla Firefox 3.0.8 Google Chrome 1.0.154.53 Safari 3.2.2 Opera 9.63 Flock 2.0.3 Seamonkey 1.1.15 </XMP> <div class="heading">PHP Flush command</div> <XMP> <?php ob_start(); next_posts_link('« Older Entries'); $temp = ob_get_contents(); ob_end_clean(); if($temp != ''){ ?> <div class="alignleft"><?php echo $temp; ?></div> <?php } ob_start(); previous_posts_link('Newer Entries »'); $temp = ob_get_contents(); ob_end_clean(); if($temp != ''){ ?> <div class="alignright"><?php echo $temp; ?></div> <?php } ?> </XMP> <div class="heading">Display Subpage of a Parentpage</div> <XMP> <?php if($post->post_parent) $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0&depth=1"); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?> </XMP> <div class="heading">To Display Content of a Specific page.</div> <XMP> <?php query_posts('pagename=Our Work'); ?> // <== Page Name. For using Page ID ==> ('page_id=60') <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <?php the_content(); ?> </div><!-- end .post --> <?php endwhile; ?> <?php wp_reset_query();?> <?php else : ?> <div class="title">Not Found</div> <p>Sorry, but you are looking for something that isn't here.</p> </div> <?php endif; ?> </XMP> <div class="heading">Retrieving custom fields outside the loop</div> <XMP> <?php global $wp_query; $postid = $wp_query->post->ID; echo get_post_meta($postid, 'customField', true); // <== 'customField'=Custom field name ?> </XMP> <div class="heading">Implementing New Style Sheet For IE6</div> <XMP> Add to header <!--[if IE6]> <link href="<?php bloginfo('template_directory')?>/ie.css" rel="stylesheet" type="text/css" /> <![endif]--> </XMP> <div class="heading">More coming soon..</div> <XMP> More coming soon... </XMP> <div class="heading">More coming soon..</div> <XMP> More coming soon... </XMP> </div> <div class="footer"> Collected By <a href="#">Banna</a></div> </div> </div> </body> </html> File Attached I want to make something that will help me to automatically add codes when i find them , meaning if i have to do it manually i have to open the file always and add the codes can anyone tell me of something that i can do , which if i have kind of three input field it just automatically adds them so that i do not have to go always and edit that file , it does automatically can anyone help me with this Thanks. [attachment deleted by admin]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.