Results 1 to 4 of 4

Thread: Header Missing

  1. #1
    Casual Pligger denewman's Avatar
    Joined
    Dec 2010
    Posts
    40

    Header Missing

    I tried putting google analytics code in the header tpl, and when I did it the whole page disappeared. So I took it out and it was back. Tried in the pligg.tpl and the same thing happened. I tried slightly different position in the header and got the same result so removed the code but now it is all still missing.

    I do not think I accidently took any extra code out but cannot seem to get it working. The site is pipinews.com any help would be appreciated, I'm sure it will be something simple.

    Code: pligg.tpl
    Code:
    <!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" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    {checkActionsTpl location="tpl_pligg_head_start"}
    {if $request_category}
    <title>{$pretitle} {$meta_description} {if $pagename eq "upcoming"}| {$posttitle} {/if}| {#PLIGG_Visual_Name#}</title>
    {elseif $pagename eq "groups"}
    <title>{#PLIGG_Visual_Name#} | {#PLIGG_Visual_Groups#}</title>
    {elseif $pagename eq "group_story"}
    <title>{#PLIGG_Visual_Group#} | {$posttitle} | {#PLIGG_Visual_Name#}</title>
    {elseif $pagename eq "submit_groups"}
    <title>{#PLIGG_Visual_Name#} | {$posttitle}</title>
    {elseif $pagename eq "upcoming"}
    <title>{#PLIGG_Visual_Name#} | {#PLIGG_Visual_Pligg_Queued#}</title>
    {elseif $pagename eq "published"}
    <title>{#PLIGG_Visual_Name#}</title>
    {elseif $pagename eq "index"}
    <title>{#PLIGG_Visual_Name#} - {#PLIGG_Visual_RSS_Description#}</title>
    {elseif $pagename eq "story"}
    <title>{$pretitle} {$posttitle} | {#PLIGG_Visual_Name#}</title>
    {else}
    <title>{$pretitle} {#PLIGG_Visual_Name#} | {$posttitle}</title>
    {/if}
    {if $meta_description neq ""}
    <meta name="description" content="{$meta_description}" />
    {else}
    <meta name="description" content="{#PLIGG_Visual_Name#} is a social bookmarking site." />
    {/if}
    {if $meta_keywords neq ""}
    <meta name="keywords" content="{$meta_keywords}" />
    {else}
    <meta name="keywords" content="News,Stories,Articles,Vote,Publish,Social,Networking,Groups,Submit,Upcoming,Comments,Tags,Live" />
    {/if}
    <link rel="stylesheet" type="text/css" href="{$my_pligg_base}/templates/{$the_template}/css/style.css" title="AggrePressDefaultStyle" media="screen" />
    {checkForCss}
    <script type="text/javascript" src="{$my_pligg_base}/templates/{$the_template}/js/3rdparty/css_browser_selector/css_browser_selector.js"></script>
    {checkForJs}
    {if $pagename neq "published" && $pagename neq "upcoming"}
    {if $Spell_Checker eq 1}			
    <script src="{$my_pligg_base}/3rdparty/speller/spellChecker.js" type="text/javascript"></script>
    {/if}
    {/if}
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="{$my_base_url}{$my_pligg_base}/rss.php"/>
    <link rel="icon" href="{$my_pligg_base}/favicon.ico" type="image/x-icon"/>
    {checkActionsTpl location="tpl_pligg_head_end"}
    </head>
    <body {$body_args}>
    {checkActionsTpl location="tpl_pligg_body_start"}
    {include file=$tpl_header.".tpl"}
    <div id="maincol" class="columns">
    	{checkActionsTpl location="tpl_pligg_content_start"}
    	{checkActionsTpl location="tpl_pligg_above_center"}
    	{include file=$tpl_center.".tpl"}
    	{checkActionsTpl location="tpl_pligg_below_center"}
    	{checkActionsTpl location="tpl_pligg_content_end"}	
    </div>
    <div id="sidebar" class="columns">
    	{include file=$tpl_right_sidebar.".tpl"}
    </div>
    <div class="clear"></div>
    {include file=$tpl_footer.".tpl"}
    <script src="{$my_pligg_base}/templates/xmlhttp.php" type="text/javascript"></script>
    {checkActionsTpl location="tpl_pligg_body_end"}
    {if $pagename neq "live"}
    </body>
    </html>
    {/if}
    Code header.tpl
    Code:
    <a name="top"></a>
    <div id="topbar"><!-- //--></div>
    <div id="toplinks">
    	<a href="{$my_pligg_base}/page.php?page=about"><img src="{$my_pligg_base}/templates/{$the_template}/images/icon_about.gif" width="12" height="12" alt="{#PLIGG_Visual_What_Is_Pligg#}" /> About Us</a> &nbsp; &nbsp;
    	<a href="{$URL_rss_page}" target="_blank"><img src="{$my_pligg_base}/templates/{$the_template}/images/icon_rss.gif" width="12" height="12" alt="RSS" /> Subscribe To RSS</a> &nbsp; &nbsp;
    	<!-- AddThis Button BEGIN //-->
    	<script type="text/javascript">var addthis_pub="CHANGE_THIS";</script>
    	<a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="{$my_pligg_base}/templates/{$the_template}/images/icon_bookmark.gif" width="14" height="12" alt="Share" /> Bookmark</a>
    	<script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>
    	<!-- AddThis Button END -->
    </div>
    <div class="page">
    <div class="logo"><a href="{$my_base_url}{$my_pligg_base}"><img src="{$my_pligg_base}/templates/{$the_template}/images/logo.gif" alt="{#PLIGG_Visual_Name#}" /></a></div>
    <div id="navigation">
    	<div class="menu small_font">
    		<ul>
    			{checkActionsTpl location="tpl_pligg_navbar_start"}
    			<li><a href="{$my_base_url}{$my_pligg_base}"{if $pagename eq "index"} class="selected"{/if}>{#PLIGG_Visual_Breadcrumb_Home#}</a></li>
    			<li><a href="{$my_base_url}{$URL_base}"{if $pagename eq "published"} class="selected"{/if}>{#PLIGG_Visual_Published_News#}</a></li>
    			<li><a href="{$URL_upcoming}"{if $pagename eq "upcoming"} class="selected"{/if}>{#PLIGG_Visual_Pligg_Queued#}</a></li>
    			{if $enable_group eq "true"}
    			<li><a href="{$URL_groups}"{if $pagename eq "groups" || $pagename eq "submit_groups" || $pagename eq "group_story"} class="selected"{/if}>{#PLIGG_Visual_Groups#}</a></li>
    			{/if}
    			{if $Enable_Live}
    			<li><a href="{$URL_live}"{if $pagename eq "live"} class="selected"{/if}>{#PLIGG_Visual_Live#}</a></li>
    			{/if}
    			{if $Enable_Tags}
    			<li><a href="{$URL_tagcloud}"{if $pagename eq "cloud"} class="selected"{/if}>{#PLIGG_Visual_Tags#}</a></li>
    			{/if}
    			<li><a href="{$URL_topusers}"{if $pagename eq "topusers"} class="selected"{/if}>{#PLIGG_Visual_Top_Users#}</a></li>
    			{if $user_authenticated eq true}
    			<li><a href="{$URL_userNoVar}"{if $pagename eq "user"} class="selected"{/if}>{#PLIGG_Visual_Profile#}</a></li>
    			{else}
    			<li><a href="{$URL_register}"{if $pagename eq "register"} class="selected"{/if}>{#PLIGG_Visual_Register#}</a></li>
    			{/if}
    			{checkActionsTpl location="tpl_pligg_navbar_end"}
    		</ul>
    	</div>
    	<div class="search_wrap">
    		<div class="search_form">
    			{if isset($templatelite.get.search)}
    				{assign var=searchboxtext value=$templatelite.get.search|sanitize:2}
    			{else}
    				{assign var=searchboxtext value=#PLIGG_Visual_Search_SearchDefaultText#}			
    			{/if}
    			<form action="{$my_pligg_base}/search.php" method="get" name="thisform-search" id="thisform-search"
    			{php}
    			global $URLMethod, $my_base_url, $my_pligg_base;
    			if ($URLMethod==2) print "onsubmit='document.location.href="{$my_base_url}{$my_pligg_base}/search/"+encodeURIComponent(this.search.value); return false;'";
    			{/php}
    			>
    				<input type="text" name="search" id="searchsite" value="{$searchboxtext}" onfocus="if(this.value == '{$searchboxtext}') {ldelim}this.value = '';{rdelim}" onblur="if (this.value == '') {ldelim}this.value = '{$searchboxtext}';{rdelim}" />
    				<input type="submit" value=" " />
    				&nbsp;<span class="search_advanced small_font"><a href="{$URL_advancedsearch}">Advanced</a></span>
    			</form>
    		</div>
    	</div>
    </div>
    {assign var=sidebar_module value="categories"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
    {if $pagename ne "live" && $pagename ne "live_comments" && $pagename ne "live_published" && $pagename ne "live_unpublished" && $pagename ne "register" && $pagename ne "login"}
    <div id="subheader">
    <div id="subheader_wrap">
    	<div id="featured_wrapper">
    		<img src="{$my_pligg_base}/templates/{$the_template}/images/label_featured.gif" alt="featured news" id="featured_label" />
    		<div id="featured_wrap_t">
    		<div id="featured_wrap_b">
    			{$featurify}	
    		</div>
    		</div>
    	</div>
    	<div id="mpanel_wrapper">
    	{if $user_authenticated ne true}
    		{assign var=sidebar_module value="login"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
    	{else}
    		{assign var=sidebar_module value="loggedin"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
    	{/if}		
    		<a href="{$URL_submit}"><img src="{$my_pligg_base}/templates/{$the_template}/images/submit.gif" alt="{#PLIGG_Visual_Submit_A_New_Story#}" /></a>
    	</div>
    </div>
    </div>
    <div class="clear"></div>
    {/if}
    
    <!-- Start of StatCounter Code -->
    <script type="text/javascript">
    var sc_project=6581778; 
    var sc_invisible=1; 
    var sc_security="eb50fb72"; 
    </script>
    <script type="text/javascript"
    src="http://www.statcounter.com/counter/counter.js"></script>
    <noscript><div class="statcounter"><a title="tumblr visit
    counter" href="http://statcounter.com/tumblr/"
    target="_blank"><img class="statcounter"
    src="http://c.statcounter.com/6581778/0/eb50fb72/1/"
    alt="tumblr visit counter"></a></div></noscript>
    
    <!-- End of StatCounter Code -->

  2. #2
    Pligg Developer chuckroast's Avatar
    Joined
    Jun 2006
    Posts
    5,478
    upload the original template file again and then wrap the code in {literal} tags.

    {literal}
    <-----code here--->
    {/literal}

  3. #3
    Casual Pligger denewman's Avatar
    Joined
    Dec 2010
    Posts
    40
    Don't even know if I have the original template file. Have had 3 hdd failures in the last year and lost a lot of stuff. I did put the code in between the literal tags and it was back with the code showing instead of the pictures/background. I've changed the template for now but would still like a solution that works. I want to learn more about the coding so I can do more with it.

  4. #4
    New Pligger pokal's Avatar
    Joined
    Feb 2012
    Posts
    18
    its really nice.........................................

Similar Threads

  1. Admin Header Missing
    By sqlinjector in forum Questions & Comments
    Replies: 2
    Last Post: 07-25-2011, 05:06 PM
  2. Header may not contain more than a single header
    By jvalal in forum Questions & Comments
    Replies: 1
    Last Post: 12-23-2008, 10:03 PM
  3. 9.9.5 Upgrade is missing
    By bigjuice in forum Questions & Comments
    Replies: 3
    Last Post: 08-07-2008, 01:14 PM
  4. Replies: 0
    Last Post: 03-15-2008, 09:59 AM
  5. Re Missing File
    By neale in forum Questions & Comments
    Replies: 2
    Last Post: 09-26-2006, 08:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting