Twittrblog
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Cannot modify headerssorry for the bump, but I have been waiting for a response and resolution, I have followed the codex to a tee is there ANY thing else that it can be?
Forum: Fixing WordPress
In reply to: Cannot modify headersHere is my index page with the prologue Twitter like feature. I removed a comment within that called the header but still this doesn’t solve the problem
<?php get_header(); ?> <div id="content"> <div id="postform"> <?php if( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'post' ) { if ( ! is_user_logged_in() ) auth_redirect(); if( !current_user_can( 'publish_posts' ) ) { wp_redirect( get_bloginfo( 'url' ) . '/' ); exit; } check_admin_referer( 'new-post' ); $user_id = $current_user->user_id; $post_content = $_POST['posttext']; $tags = $_POST['tags']; $char_limit = 40; $post_title = strip_tags( $post_content ); if( strlen( $post_title ) > $char_limit ) { $post_title = substr( $post_title, 0, $char_limit ) . ' ... '; } $post_id = wp_insert_post( array( 'post_author' => $user_id, 'post_title' => $post_title, 'post_content' => $post_content, 'tags_input' => $tags, 'post_status' => 'publish' ) ); wp_redirect( get_bloginfo( 'url' ) . '/' ); exit; } if( current_user_can( 'publish_posts' ) ) { require_once dirname( __FILE__ ) . '/post-form.php'; } ?> </div> <div id="column"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post"> <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="postinfo"> <div class="info">Posted by <?php the_author_posts_link(); ?> on <?php the_time('j F, Y'); ?></div> <div class="commentnum"><?php comments_popup_link('No comments yet', '1 comment so far', '% Comments'); ?></div><div class="clear"></div> </div> <div class="category">This item was filled under <?php the_category(', '); ?></div> <div class="entry"> <?php the_content('Continue reading...'); ?><div class="clear"></div> </div> <?php the_tags('<div class="tags">Tagged with: ', ', ', '</div><div class="clear"></div>'); ?> </div> <?php endwhile; ?> <!-- Plugin Navigation --> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> <!-- End --> <?php else : ?> <div class="post"> <h1>No posts were found.</h1> Sorry! the page you are looking for does not exist. <h3>Blog Search</h3> <?php include(TEMPLATEPATH."/searchform.php"); ?> </div> <?php endif; ?> </div> <?php get_sidebar(); ?> <div class="clear"></div> </div> <?php get_footer(); ?>
—————————————-
and my newest header.php
—————————————-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head profile="https://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>"> <title><?php bloginfo('name'); ?> <?php if(is_home()) { ?> - <?php bloginfo('description'); ?> <?php } ?> <?php if(is_single()) { ?> <?php wp_title(); ?> <?php } ?> <?php if(is_404()) { ?> - Page Not Found <?php } ?> <?php if(is_search()) { ?> - Search Results for: <?php echo wp_specialchars($s, 1); ?> <?php } ?> </title> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <script src="<?php bloginfo('template_directory'); ?>/js/heightMatch.js" type="text/javascript"></script> <script src="<?php bloginfo('template_directory'); ?>/js/topmenudynamic.js" type="text/javascript"></script> <script src="<?php bloginfo('template_directory'); ?>/js/dropdown.js" type="text/javascript"></script> <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> <?php wp_head(); ?> <?php if ( strstr( $_SERVER['HTTP_USER_AGENT'], 'iPhone' ) ) { ?> <meta name="viewport" content="width=320" /> <style type="text/css"> #header_img, #sidebar, #postbox .avatar { display: none; } #wrapper, #main { width: 320px; padding: 0; float: none; margin-left: 3px; } h1 { font-size: 2em; font-family: Georgia, "Times New Roman", serif; margin-left: 0; margin-top: 5px; margin-bottom: 10px; } h2 { font-size: 1.2em; font-weight: bold; color: #555; } #postbox form { padding: 5px; } #postbox textarea#posttext { width: 300px; height: 50px; border: 1px solid #c6d9e9; margin-bottom: 10px; padding: 2px; font: 1.4em/1.2em "Lucida Grande",Verdana,"Bitstream Vera Sans",Arial,sans-serif; } #postbox input#tags, #commentform #comment { font-size: 1.2em; padding: 2px; border: 1px solid #c6d9e9; width: 300px; margin-left: 0; } #postbox label { color: #333; display: block; font-size: 1.2em; margin-bottom: 4px; margin-left: 0; font-weight: bold; } #postbox input#submit { font-size: 1.2em; margin-left: 250px; margin-top: 5px; } #main ul { list-style: none; margin-top: 16px; margin-left: 0; } #wpcombar { display: none; } body { padding-top: 0; } </style> <?php } ?> </head> <body> <div id="container"> <!-- Include the Google Friend Connect javascript library. --> <script type="text/javascript" src="https://www.google.com/friendconnect/script/friendconnect.js"></script> <!-- Define the div tag where the gadget will be inserted. --> <div id="div-1234521535868"></div> <!-- Render the gadget into a div. --> <script type="text/javascript"> var skin = {}; skin['BORDER_COLOR'] = '#cccccc'; skin['ENDCAP_BG_COLOR'] = '#e0ecff'; skin['ENDCAP_TEXT_COLOR'] = '#333333'; skin['ENDCAP_LINK_COLOR'] = '#0000cc'; skin['ALTERNATE_BG_COLOR'] = '#ffffff'; skin['CONTENT_BG_COLOR'] = '#ffffff'; skin['CONTENT_LINK_COLOR'] = '#0000cc'; skin['CONTENT_TEXT_COLOR'] = '#333333'; skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc'; skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666'; skin['CONTENT_HEADLINE_COLOR'] = '#333333'; skin['POSITION'] = 'top'; skin['DEFAULT_COMMENT_TEXT'] = '- add your comment here -'; skin['HEADER_TEXT'] = 'Comments'; google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */); google.friendconnect.container.renderSocialBar( { id: 'div-1234521535868', site: '06099073935428622981', 'view-params':{"scope":"SITE","features":"video,comment","showWall":"true"} }, skin); </script> <!-- header --> <div id="header"> <div id="header_logo"> <h1 class="blogtitle"><a href="<?php bloginfo('home'); ?>/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1> <div class="description"><?php bloginfo('description'); ?></div> </div> <div id="header_ad"> <?php include (TEMPLATEPATH . "/468_60.php"); ?> </div> <div class="clear"></div> </div> <!-- end --> <!-- page menu and search --> <div id="top"> <ul id="pagemenu"> <?php wp_list_pages('sort_column=post_date&title_li=&depth=1'); ?> <li><a href="https://www.twittrblog.com/forum">Forums</a></li> </ul> <div id="searchbar"> <form method="get" action="<?php bloginfo('url'); ?>/" class="searchform" style="float: right;"> <fieldset> <label class="searchlabel"><?php _e('Search Blog'); ?></label> <input type="text" value="<?php the_search_query(); ?>" name="s" class="searchterm" /> <input type="submit" value="Search" class="searchbutton" /> </fieldset> </form> </div> <div class="clear"></div> </div> <!-- end --> <div class="clear"></div> <!-- category menu --> <div id="bar"> <ul id="catmenu"> <li<?php if(!is_category() && !is_page()) { ?> class="current-cat"<?php } ?>><a href="<?php bloginfo('home'); ?>/">Home</a></li> <?php wp_list_categories('hide_empty=0&depth=1&title_li='); ?> </ul> <div id="toprss"><a href="<?php bloginfo('rss2_url'); ?>">SUBSCRIBE TO RSS FEED</a></div> <div class="clear"></div> </div>
Forum: Fixing WordPress
In reply to: Cannot modify headersSamboll.. I did this…. i stated this in my post….
try going to my site https://www.twittrblog.com and try to register… I am using part of prologue theme (automattic) in the top of the index… this is when i get the error when i try to post from this
Forum: Fixing WordPress
In reply to: Whole site is suddenly blank!actually, I was trying a plugin called featurific-for-wordpress and it asked me to modify the permissions of the wp-content folder to auto add the code… and well… now.. my backadmin is “blank” and the content section is down but side bars are there…sans a few plugins that havent loaded… i am assuming its permissions.. but thats reset… and a few of the plugins before the admin went blank said fatal error on reactivate