Sticky Records

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
cozbaldwin
Posts: 52
Joined: Wed Mar 08, 2006 3:24 pm

Sticky Records

Post by cozbaldwin »

Hello,

After upgrading to 2.5 Final, I see there's been some template changes. As you may know, I customize the hell out of the templates. I am pretty sure I updated all the headers and elements, tags, etc... but I'm having issues with the Sticky Records box.

The thing that's messing it up is this unusual tag, along with it's closing tag: [stickyRecordsList]
When I take out that whole tag, with the list items, the page loads properly. But when I put that in, my page loads funny. It strips out all the middle of my page, plus a little bit of my footers. Any idea why this is happening? I thought it updated all the necessary, usual files. The square bracket is new, so maybe that is playing a part in it?
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Sticky Records

Post by Thorsten »

HI,

could you please post your template file with the sticky records stuff here?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
cozbaldwin
Posts: 52
Joined: Wed Mar 08, 2006 3:24 pm

Re: Sticky Records

Post by cozbaldwin »

Code: Select all


<!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" xml:lang="{metaLanguage}" lang="{metaLanguage}">
<head>
    <title>{title} - Hidden In The Sand's Ultimate Tally Hall FAQ</title>
	<base href="{baseHref}" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset={metaCharset}" />
    <meta name="title" content="{metaTitle}" />
		<meta name="description" content="The Ultimate Tally Hall Fan Headquarters.  Videos, images, faq, fan contributions, news feeds, and much more!" />
    	<meta name="keywords" content="tally, hall, tally hall, tallyhall, fan, fans, fansite, fan site, fanpage, fan page, hidden in the sand, indie, michigan, u of m, university, beatles, queen, barenaked ladies, they might be giants, ween, sufjan stevens, blind pig, detroit, ann arbor, joe hawley, rob cantor, andrew horowitz, zubin sedghi, ross federman, pingry, banana man, videos, music, funny, humorous, humourous, humor, wonk, wonky, rock, ruler of everything, bidding, good day, bmi, john lennon, scholarship, songwriting, award, mmmm, marvins, marvelous, mechanical, museum, detroit, mancow, kcrw, wxpn, atlantic, records, viral, video," />    
    <meta name="author" content="{metaPublisher}" />
    <meta name="publisher" content="{metaPublisher}" />
    <meta name="copyright" content="(c) 2001 - 2009 phpMyFAQ Team" />
    <meta name="generator" content="phpMyFAQ {phpmyfaqversion}" />
    <meta name="Content-Language" content="{metaCharset}" />
    <meta name="robots" content="INDEX, FOLLOW" />
    <meta name="revisit-after" content="7 days" />
    <meta name="MSSmartTagsPreventParsing" content="true" />    
    	<style type="text/css" media="screen">@import url(template/styles_FAQCOZ.css);</style>
    	<style type="text/css" media="print">@import url(template/print.css);</style>
    <script type="text/javascript" src="inc/js/functions.js"></script>
    <script type="text/javascript" src="inc/js/jquery.min.js"></script>
    	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    	<link rel="icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="alternate" title="News RSS Feed" type="application/rss+xml" href="feed/news/rss.php" />
    <link rel="alternate" title="TopTen RSS Feed" type="application/rss+xml" href="feed/topten/rss.php" />
    <link rel="alternate" title="Latest FAQ Records RSS Feed" type="application/rss+xml" href="feed/latest/rss.php" />
    <link rel="alternate" title="Open Questions RSS Feed" type="application/rss+xml" href="feed/openquestions/rss.php" />
    <link rel="microsummary" href="microsummary.php?action={action}" />
    <link rel="search" type="application/opensearchdescription+xml" title="{metaTitle}" href="{opensearch}" />
			
			  
			
			
			
			
			
			<link href="/hits2_styles.css" rel="stylesheet" type="text/css" />
			<link rel="shortcut icon" href="http://www.hiddeninthesand.com/favicon.ico" type="image/x-icon">
			
			
			
			
			<!-- ***** This is the section of code you need to paste into your web pages ***** -->
			<SCRIPT type="text/javascript" src="http://www.hiddeninthesand.com/milonic_src-2.js"></SCRIPT>
			<param copyright="JavaScript Menu by Milonic http://www.milonic.com" />
			<script type="text/javascript">
			
			if(ns4)_d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=http://www.hiddeninthesand.com/mmenuns4-2.js><\/SCR"+"IPT>");
			else _d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=http://www.hiddeninthesand.com/mmenudom-2.js><\/SCR"+"IPT>");
			
			</SCRIPT>
			<SCRIPT type="text/javascript" src="http://www.hiddeninthesand.com/menu_data-2.js"></SCRIPT> 
			
			
			
			
			<link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
			<script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
			<script type="text/javascript">var TabbedPanels1 = new Spry.Widget.TabbedPanels("Feeds");</script>
			
			<script language="JavaScript" type="text/JavaScript">
			<!--
			function MM_openBrWindow(theURL,winName,features) { //v2.0  ** THIS IS USED FOR OPENING TALLYCALL
			  window.open(theURL,winName,features);
			}
			//-->
			</script>
			
			
			</head>
			
			
			
			<body dir="{dir}" onload="javascript:focusOnSearchField();">
			
			
			
				
				<table id="table1" width="100%" border="0" cellspacing="0" cellpadding="0">
				 <tr> 
				<td width="478"><img src="/images/design_files/HITS2_headerLeft.jpg" width="478" height="232" /></td>
					<td width="100%" class="table1_spacerCell" valign="top">&nbsp;</td>
					<td width="537"><img src="/images/design_files/HITS2_headerRight_icons.gif" width="537" height="232" border="0" usemap="#map1" /></td></tr></table><map name="map1" id="map1">
				  <area shape="rect" coords="433,56,449,82" href="#" alt="TALLY CALL!" onClick="MM_openBrWindow('/tallycall.htm','tallycall','width=400,height=420')">
				<area shape="rect" coords="409,207,425,228" href="http://www.twitter.com/hiddeninthesand" target="_blank" />
				<area shape="rect" coords="431,211,445,227" href="http://www.facebook.com/hiddeninthesand" target="_blank" />
				<area shape="rect" coords="450,209,468,226" href="http://www.myspace.com/hitsdotcom" target="_blank" />
				<area shape="rect" coords="472,209,489,228" href="http://www.youtube.com/hitsdotcom" target="_blank" />
				</map>
				
				
				
				
				
				<table id="table2" width="100%" border="0" cellspacing="0" cellpadding="0">
				  <tr>
					<td width="42px" class="table2_leftCell">&nbsp;</td>
					<td valign="top" class="table2_centerCell">
					
					
					 <table id="menu" width="100%" border="0" cellspacing="0" cellpadding="0">
					 <tr align="center">
					 <td width="100%" class="menuCell">   
						  <SCRIPT type="text/javascript" src="http://www.hiddeninthesand.com/embedded_main_menu-2.js"></SCRIPT> 
					 </td>
					 </tr>
					 </table>
					 
					 
					 
				
				
				
				
				
					 <table id="contentTable" width="100%" border="0" cellspacing="0" cellpadding="0">
					 <tr>
					 <td colspan="3">
				 
				 
				 <table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
			  
				<tr align="center">
				 <td width="100%" id="twitter_div">   
			
			
			
			
			<div class="twitter-title">
			<!-- Include the Google Friend Connect javascript library. -->
			<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
			<!-- Define the div tag where the gadget will be inserted. -->
			<div id="div-6946308635660999705" style="width:282px;"></div>
			<!-- Render the gadget into a div. -->
			<script type="text/javascript">
			var skin = {};
			skin['FONT_FAMILY'] = 'trebuchet ms,sans-serif';
			skin['BORDER_COLOR'] = 'transparent';
			skin['ENDCAP_BG_COLOR'] = 'transparent';
			skin['ENDCAP_TEXT_COLOR'] = '#333333';
			skin['ENDCAP_LINK_COLOR'] = '#0000cc';
			skin['ALTERNATE_BG_COLOR'] = 'transparent';
			skin['CONTENT_BG_COLOR'] = 'transparent';
			skin['CONTENT_LINK_COLOR'] = '#cccccc';
			skin['CONTENT_TEXT_COLOR'] = '#333333';
			skin['CONTENT_SECONDARY_LINK_COLOR'] = '#cccccc';
			skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
			skin['CONTENT_HEADLINE_COLOR'] = '#333333';
			skin['ALIGNMENT'] = 'left';
			google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
			google.friendconnect.container.renderSignInGadget(
			 { id: 'div-6946308635660999705',
			   site: '15614757545697516350' },
			  skin);
			</script>
			
			
			</div>
			
			
			<!--<h2 class="twitter-title">
			--><!--HITS Tweets:-->
			<!--Try <a href="http://www.hiddeninthesand.com/mobile/">HITS Mobile!</a> For HITS on the go.-->
			<!--<ul id="twitter_update_list"></ul>-->    
			<!--</h2>  
			--></td>
				 </tr>
				 </table>	 </td>
				 </tr>
     
     
     




<tr>

	 <td width="170" valign="top" class="sidebar">
	
    




 <br />
 
 
 
 
 
 
 
 
 
 


 <div class="content_light">
                <!-- start categories -->
              <h1>FAQ Navigation</h1>
                  <div id="categories">
                    <ul>
					 
						<li>{backToHome}</li>
						<hr />
						  <li>{showInstantResponse}</li>
                        <hr />
                       <!-- <li>{allCategories}</li>-->
                        <h3>Categories</h3>
						{showCategories}
                     <hr />
                        <li>{showSitemap}</li>
                    </ul>
                  </div> 
   </div>
             
                <!-- end categories -->

  

              
             
			  
			    <span id="adsense_sidebar"> 

        <script type="text/javascript"><!--
google_ad_client = "pub-2368016260872721";
/* 160x600, created 4/29/08 */
google_ad_slot = "4322371343";
google_ad_width = 160;
google_ad_height = 600;
//-->
        </script>
        <script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
        </script>


    </span>     
	
	
	<br /><br />

      

 <a id="chgLink" href="">
 <img id="chgImg" src="" border="0"/>
 </a>




  <!-- start language selection box -->
                <div class="content">
                            <h1>Switch Languages</h1>

                    <div id="langform">
                    <form action="{writeLangAdress}" method="post">
<!--                    <label for="language">{languageBox}</label>
-->                
    {switchLanguages}<br />
                    <input type="hidden" name="action" value="" />
                    </form>
                    </div>
                </div>
                <!-- end language selection box -->




  <!-- start login box -->
                <div class="content">
                 <h1>FAQ Control Panel</h1>
                 
                    <div id="loginform">
                    {loginBox}
                    </div>
                </div>
                <!-- end login box -->



 
	
        <!-- end left sidebar -->



</td>

<td width="*" class="mainBodyCell" valign="top">


	
    
    
    
<h3>The Official HITS Tally Hall FAQ!</h3>
		
        <br />






    <!-- start headers -->
    <div class="header" id="header">
<!--        <h1><a title="{header}" href="{faqHome}">{header}</a></h1>
-->        
        
              
      <div id="faqTopNav">
            {msgContact}&nbsp;&nbsp;|&nbsp;
            {msgHelp}&nbsp;&nbsp;|&nbsp;
            <!--{msgOpenQuestions}--><b><a href="http://www.hiddeninthesand.com/faq/index.php?action=open">Pending Questions</a></b>&nbsp;&nbsp;|&nbsp;
            {msgQuestion}&nbsp;&nbsp;|&nbsp;
            {msgAddContent}&nbsp;&nbsp;|&nbsp;
            {msgSearch}       </div>
            
            
    </div>
    <!-- end headers -->



  <!-- start main content -->
        <div class="centercolumn">
            <div class="centerpadding">
                <div class="main-content" id="main">
                {writeContent}
                </div>
            </div>
        </div>
        <!-- end main content -->









</td>
   
    
<td width="170" valign="top" class="sidebar" align="center">
 
	
    
    
		{rightBox}
                
            <div class="content">
                <div id="stickyrecords">
                <h3>{stickyRecordsHeader}</h3>
                <ul>
                    [stickyRecordsList]
                    <li><a href="{stickyRecordsUrl}">{stickyRecordsTitle}</a></li>
                    [/stickyRecordsList]
                </ul>
                </div>
           </div>



   
      </td>
           
  </tr>


   
 
 
<tr>
<td colspan="3">


 <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
   


<td width="20%" align="right" class="footer_left">   
    <a href="http://www.firefox.com"><img src="http://www.hiddeninthesand.com/images/design_files/firefox-48.png" border="0" align="middle" /></a> got firefox?    </td>
   <td width="40%" align="right" class="footer"> 



   
   <!-- Include the Google Friend Connect javascript library. -->
<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
<!-- Define the div tag where the gadget will be inserted. -->
<div id="div-6155748400526185159" style="width:300px;border:0px solid #868573;"></div>
<!-- Render the gadget into a div. -->
<script type="text/javascript">
var skin = {};
skin['HEIGHT'] = '50';
skin['WIDTH'] = '200';
skin['BORDER_COLOR'] = 'transparent';
skin['ENDCAP_BG_COLOR'] = '#868573';
skin['ENDCAP_TEXT_COLOR'] = '#333333';
skin['BUTTON_STYLE'] = 'modular';
skin['BUTTON_TEXT'] = 'Recommend it!';
skin['BUTTON_ICON'] = 'default';
skin['BUTTON_MODULE_PROMO_TEXT'] = 'Did you find this page interesting?';
google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
google.friendconnect.container.renderOpenSocialGadget(
 { id: 'div-6155748400526185159',
   url:'http://www.google.com/friendconnect/gadgets/recommended_pages.xml',
   height: 50, width: 200, 
   site: '15614757545697516350',
   'view-params':{"pageUrl":location.href,"pageTitle":(document.title ? document.title : location.href),"docId":"recommendedPages"}
 },
  skin);
</script>



  </td>  
   <td width="40%" align="right" class="footer">
   
     &copy;2006-2009 hiddeninthesand.com<br />a project of [ <a href="http://www.thecarpetedwall.com" target="_blank">the carpeted wall</a> ]
	 
	 </td>
  </tr>
</table>



    
     <p>&nbsp;</p>  
   </td></tr>
</table>
    
    
    
    
    
    
    
    </td>
    <td width="43px" class="table2_rightCell">&nbsp;
    


</td>
  </tr>
</table>




    <!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
<!-- 
var sc_project=1436683; 
var sc_invisible=1; 
var sc_partition=13; 
var sc_security="e2750050"; 
var sc_remove_link=1; 
//-->
</script>

<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><img  src="http://c14.statcounter.com/counter.php?sc_project=1436683&java=0&security=e2750050&invisible=1" alt="counter customizable free hit" border="0"> </noscript>
<!-- End of StatCounter Code -->




<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2664114-2");
pageTracker._initData();
pageTracker._trackPageview();
</script> 




<script src="http://www.hiddeninthesand.com/imageChanger.js" type="text/javascript"></script>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/hiddeninthesand.json?callback=twitterCallback2&count=1"></script>



</body>
</html>


Its currently producing this result: http://www.hiddeninthesand.com/faq/
Without the Stickys tag, it loads fully, though.
cozbaldwin
Posts: 52
Joined: Wed Mar 08, 2006 3:24 pm

Re: Sticky Records

Post by cozbaldwin »

By the way, I've only tried viewing it with FF 3.5 and Safari 4.0.2 on Mac.
Its strange, it seems like it loads the header and half of the footer. Nothing in between... almost as if I have some inproper div tags but I dont think so, because it works fine except when using that solid bracket [ ] tag.
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Sticky Records

Post by Thorsten »

Hi,

your embedded JavaScript is broken.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
cozbaldwin
Posts: 52
Joined: Wed Mar 08, 2006 3:24 pm

Re: Sticky Records

Post by cozbaldwin »

Thanks for taking the time to look.
I know this isn't your job, but could you point me in the direction of the specific broken code? Since it works on all other pages, I can't locate where the trouble may be.
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Sticky Records

Post by Thorsten »

Hi,

Firebug, a Firefox extension shows various problems:

Code: Select all

Spry is not defined
http://www.hiddeninthesand.com/faq/
Line 34

Code: Select all

unterminated regular expression literal
http://www.hiddeninthesand.com/faq/
Line 138

Code: Select all

document.getElementById("twitter_update_list") is null
http://twitter.com/javascripts/blogger.js
Line 12
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
cozbaldwin
Posts: 52
Joined: Wed Mar 08, 2006 3:24 pm

Re: Sticky Records

Post by cozbaldwin »

Thanks - well, just so you know, the scripts that are ultimately causing this and not playing well with your code is a script direct from Google.

It's for their Google Friend Connect login

Code: Select all

		<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
			<!-- Define the div tag where the gadget will be inserted. -->
			<div id="div-6946308635660999705" style="width:282px;"></div>
			<!-- Render the gadget into a div. -->
			<script type="text/javascript">
		    var skin = {};
			skin['FONT_FAMILY'] = 'trebuchet ms,sans-serif';
			skin['BORDER_COLOR'] = 'transparent';
			skin['ENDCAP_BG_COLOR'] = 'transparent';
			skin['ENDCAP_TEXT_COLOR'] = '#333333';
			skin['ENDCAP_LINK_COLOR'] = '#0000cc';
			skin['ALTERNATE_BG_COLOR'] = 'transparent';
			skin['CONTENT_BG_COLOR'] = 'transparent';
			skin['CONTENT_LINK_COLOR'] = '#cccccc';
			skin['CONTENT_TEXT_COLOR'] = '#333333';
			skin['CONTENT_SECONDARY_LINK_COLOR'] = '#cccccc';
			skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
			skin['CONTENT_HEADLINE_COLOR'] = '#333333';
			skin['ALIGNMENT'] = 'left';
			google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
			google.friendconnect.container.renderSignInGadget(
			 { id: 'div-6946308635660999705',
			   site: '15614757545697516350' },
			  skin);
			</script>
I see in Firebug that it is causing a lot of errors, specifically
"onreadystatechange FAILS Error: Permission denied for <http://iqavu79a908u5vcecp0pq80hhbhkv33b ... odules.com> to create wrapper for object of class UnnamedClass"
But, since it works well in all my other pages on my site, but not with the faq sticky tag code, I figure you may want to look into it. Or not, since not a lot of people are using this Google code.
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Sticky Records

Post by Thorsten »

Hi,

please take a look into your current HTML source code. Something is broken in it:

Code: Select all

<script type="text/javascript">
			// var skin = {};
			skin
                </ul>
This breaks the page.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
cozbaldwin
Posts: 52
Joined: Wed Mar 08, 2006 3:24 pm

Re: Sticky Records

Post by cozbaldwin »

That's some more Google FriendConnect code, direct from Google.
It also works like a charm when I don't have the Sticky Records tags in there.
cozbaldwin
Posts: 52
Joined: Wed Mar 08, 2006 3:24 pm

Re: Sticky Records

Post by cozbaldwin »

One more glitch...

In my own footer, i use the following:
a project of [ The Carpeted Wall ]
(except I use HTML and not BBCode of course)

But because I'm using those flat brackets (for aesthetic purposes only), they weren't displaying and neither was the link inside. So it seems anywhere, at least on the index.tpl page, if you have brackets for any reason, theyre going to disappear.

All of MY problems, at least, seem to be related to these new flat brackets you're using in the Sticky Records tag. What was the reason for this new type of tag? Is it necessary? (i'm not trying to be a pain, i really am curious.)
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Sticky Records

Post by Thorsten »

Hi,

ahh.... this is the problem. We're using brackets for template blocks. phpMyFAQ tries to parse your stuff with brackets and breaks the page... damn.

I'll think about a solution.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply