What goes with what in this code?

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-18-2007, 06:14 PM
jrothra's Avatar
Constant Pligger
Pligg Version: 9.9.5
Pligg Template: Silverbullet
 
Join Date: Apr 2007
Location: Fort Worth, TX
Posts: 179
I've got a question of association. I'm trying to, somehow, get a template I created to work with Pligg.

Anyway, in the pligg.tpl of my redo this info is found between the lines calling for the stylesheets and the title:
Code:
	{checkActionsTpl location="tpl_pligg_pre_title_thickbox"}
	
	{checkForCss}
	{checkForJs}		
	
	{checkActionsTpl location="tpl_pligg_pre_title_lightbox"}

	{if $pagename neq "published" && $pagename neq "upcoming"}
		{if $Spell_Checker eq 1}			
		<script src="{$my_pligg_base}/3rdparty/speller/spellChecker.js{if $enable_gzip_files eq 'true'}.gz{/if}" type="text/javascript"></script>
		{literal}
		<script language="javascript" type="text/javascript">
			function openSpellChecker(commentarea) {
				var txt = document.getElementById(commentarea);
				var speller = new spellChecker( txt );
				speller.openChecker();
			}
		</script>
		{/literal}
		{/if}
	{/if}
When I look at the source using the browser, it shows this stuff appearing in the same exact area:
Code:
<script language="JavaScript">
<!--

function SymError()
{
  return true;
}

window.onerror = SymError;

function SymInitWinOpen()
{
  if (SymRealWinOpen == null)
     SymRealWinOpen = window.open;
  return SymWinOpen;
}

function SymWinOpen(url, name, attributes)
{
  return (new Object());
}

var SymRealWinOpen;
window.open = SymInitWinOpen();

//-->
</script>

<script src="/modules/scriptaculous/js/prototype.js" type="text/javascript"></script><script src="/modules/scriptaculous/js/EditInPlace.js" type="text/javascript"></script><script src="/modules/scriptaculous/js/scriptaculous.js" type="text/javascript"></script><script src="/modules/scriptaculous/js/dragdrop.js" type="text/javascript"></script><script src="/modules/scriptaculous/js/effects.js" type="text/javascript"></script>		
	
	
						
		<script src="/3rdparty/speller/spellChecker.js" type="text/javascript"></script>
		
		<script language="javascript" type="text/javascript">
			function openSpellChecker(commentarea) {
				var txt = document.getElementById(commentarea);
				var speller = new spellChecker( txt );
				speller.openChecker();
			}
		</script>
The problem: the pligg.tpl file seems to show 4 items/sections... the source code shows three.

So, what corresponds with what?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Licensing tbronson Wiki Articles 0 10-28-2007 12:55 AM
Problem with adbrite code empollon Questions and Comments 2 07-03-2007 06:57 AM
SuperGu Attempting to Copyright Pligg Code, Sends C&D Yankidank Questions and Comments 30 04-29-2007 11:33 AM
new category code - improvements? cruci Questions and Comments 4 01-06-2007 02:35 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development