Upgrading a 9.8.2 template to 9.9

Register an Account
 
 
Article Tools Display Modes
  #1 (permalink)  
Old 01-01-2008, 01:45 PM
AshDigg's Avatar
Mayor of PliggVille/Coder
 
Join Date: Dec 2005
Posts: 1,515
This area reserved.
Reply With Quote
  #2  

Upgrading a 9.8.2 template to 9.9

There were a number of template changes from 9.8.2 to 9.9. The main reasons for these changes are
  • Remove PHP code from the TPL files
  • Prepare them for 1.0 which will allow multiple languages

Many of the changes were done to help eliminate the need for the developers to force template changes in the future.

It is recommended you use a program like WinMerge to compare your template to the yget 9.9 template.

----------------------------------------------------------------

The most important changes are the ones that have to do with the lang.conf file.

EXAMPLE:
template_name.tpl
Changed
PHP Code:
{config_load file="/libs/lang.conf"
to
PHP Code:
{config_load file="/languages/lang_".$pligg_language.".conf"
EXAMPLE:
template_name.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}


----------------------------------------------------------------
/templates folder
----------------------------------------------------------------

meta.tpl
added
HTML Code:
<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="expires" content="0" />
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
blank.tpl
Changed
PHP Code:
{config_load file="/libs/lang.conf"
to
PHP Code:
{config_load file="/languages/lang_".$pligg_language.".conf"


----------------------------------------------------------------
/templates/yourtemplate/
----------------------------------------------------------------

template_details.php
Added a file containing information about your template.

404error.tpl
Moved to /templates

faq-en_center.tpl
Moved to /templates

bookmarklet.tpl
added to /templates

blank.tpl
Changed
PHP Code:
{config_load file="/libs/lang.conf"
to
PHP Code:
{config_load file="/languages/lang_".$pligg_language.".conf"
comment_form.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
changed line 5 to:
PHP Code:
<textarea name="comment_content" id="comment" rows="6" cols="60"/>{if isset($TheComment)}{$TheComment}{/if}</textarea
comment_show.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
line 11: Notice the location of the last ;
HTML Code:
{#PLIGG_Visual_Comment_Rating#}: <a id="cvote-{$comment_id}" style='text-decoration: none;'>{$comment_votes}</a>
line 43:
HTML Code:
<input type="hidden" name="randkey" value="{$rand}" />
edit_comment_center.tpl
Many changes. You'll probably be able to replace your file with the new one.

editlink_edit_center.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
header.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
index_center.tpl
Many changes. You'll probably be able to replace your file with the new one.

link_summary.tpl
added to line 137:
HTML Code:
{checkActionsTpl location="tpl_link_summary_admin_links"}
changed 178 to:
HTML Code:
(blank line here)
changed 179 to:
HTML Code:
<span id="linksummaryDiscuss"><a href="{$story_url}" class="comments">{#PLIGG_MiscWords_Discuss#}</a>  </span>
changed 182 to:
HTML Code:
<span id="linksummaryHasComment"><a href="{$story_url}" class="comments2">{$story_comment_count} {#PLIGG_MiscWords_Comment#}</a>  </span>
changed 183 to:
HTML Code:
(deleted this line)
changed 185 to:
HTML Code:
<span id="linksummaryHasComment"><a href="{$story_url}" class="comments2">{$story_comment_count} {#PLIGG_MiscWords_Comments#}</a>  </span>
changed 186 to:
HTML Code:
(deleted this line)
changed 190 to:
HTML Code:
<span id="linksummaryAddLink">
changed 191 to:
HTML Code:
<a href="javascript://" onclick="var replydisplay=document.getElementById('addto-{$link_shakebox_index}').style.display ? '' : 'none';document.getElementById('addto-{$link_shakebox_index}').style.display = replydisplay;"> {#PLIGG_Visual_LS_AddThisLinkTo#}</a> 
added line 192:
HTML Code:
</span>
changed 198 to:
HTML Code:
<span id="linksummarySaveLink"><a target="add_stories" href="{$user_url_add_links}" onclick="show_hide_user_links(document.getElementById('stories-{$link_shakebox_index}'));">{#PLIGG_MiscWords_Save_Links_Save#}</a> 
changed 201 to:
HTML Code:
<span id="linksummaryRemoveLink"><a target="add_stories" href="{$user_url_remove_links}" onclick="show_hide_user_links(document.getElementById('stories-{$link_shakebox_index}'));">{#PLIGG_MiscWords_Save_Links_Remove#}</a> 
The changed above are the result of taking multiple images, combining them into 1 image, and using CSS to show the
correct image.

changed 206 to:
HTML Code:
{if $Enable_Recommend eq 1 && $user_logged_in neq ""}
changed 208 to:
HTML Code:
<span id="linksummaryTellFriend">
added line 209:
HTML Code:
<a href="javascript://" onclick="show_recommend({$link_shakebox_index}, {$link_id}, '{$instpath}');"> {#PLIGG_Visual_Recommend_Link_Text#}</a>  
added line 210:
HTML Code:
</span>
changed 215 to:
HTML Code:
<span id="xreport-{$link_shakebox_index}"><span id="linksummaryBury"><a href="javascript:{$link_shakebox_javascript_report}">{#PLIGG_Visual_Vote_Bury#}</a></span></span>
removed line 234:
HTML Code:
</span>
added line 236:
HTML Code:
</span>
live_center.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
live_comments_center.tpl
Many changes. You'll probably be able to replace your file with the new one.

live_published_center.tpl
Many changes. You'll probably be able to replace your file with the new one.

live_unpublished_center.tpl
Many changes. You'll probably be able to replace your file with the new one.

login_center.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
pligg.tpl
replace
HTML Code:
{config_load file="/libs/lang.conf"}
with
HTML Code:
{config_load file="/languages/lang_".$pligg_language.".conf"}
remove
HTML Code:
<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="expires" content="0" />
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
changed
HTML Code:
<!--[if lte IE 6]>
		<script src="{$my_pligg_base}/js/jspath.php" type="text/javascript"></script>
		<link rel="stylesheet" type="text/css" href="{$my_pligg_base}/templates/{$the_template}/css/ie6.css" media="screen" />
	    <script type="text/javascript">
			if (typeof blankImg == 'undefined') var blankImg = my_pligg_base + '/templates/{$the_template}/images/blank.gif';
		</script>
	    <style type="text/css" media="screen">
		    body {literal}{{/literal}behavior:url({$my_pligg_base}/templates/{$the_template}/css/iehfix.htc); {literal}}{/literal}
			img {literal}{{/literal}behavior:url({$my_pligg_base}/templates/{$the_template}/css/iepngfix.htc); {literal}}{/literal}
	    </style>	
    <![endif]-->
to
HTML Code:
{* this is an IE6 specific 'hack' for the yget template *}
		<!--[if lte IE 6]>
			<link rel="stylesheet" type="text/css" href="{$my_pligg_base}/templates/{$the_template}/css/ie6.css" media="screen" />
			<script type="text/javascript">
				if (typeof blankImg == 'undefined') var blankImg = '{$my_pligg_base}/templates/{$the_template}/images/blank.gif';
			</script>
			<style type="text/css" media="screen">
				body {ldelim}behavior:url({$my_pligg_base}/templates/{$the_template}/css/iehfix.htc); {rdelim}
				img {ldelim}behavior:url({$my_pligg_base}/templates/{$the_template}/css/iepngfix.htc); {rdelim}
			</style>	
		<![endif]-->
removed
HTML Code:
{literal}
		<script language="javascript" type="text/javascript">
			function openSpellChecker(commentarea) {
				var txt = document.getElementById(commentarea);
				var speller = new spellChecker( txt );
				speller.openChecker();
			}
		</script>
		{/literal}
removed
HTML Code:
{if $pagename eq "story"}
		{literal}
			<style type="text/css">
			  /* allow room for 3 columns */
			  div#idwhovotedwrapper ol {width: 35em; list-style-type: none; }
			  div#idwhovotedwrapper ol li {float: left; width: 10em; }
			  div#idwhovotedwrapper br { clear: left; }
			  div#idwhovotedwrapper div.whovotedwrapper { margin-bottom: 1em; }
			</style>
		{/literal}
	{/if}
removed (at the end of the file)
HTML Code:
<script src="{$my_pligg_base}/js/jspath.php" type="text/javascript"></script>
profile_center.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
changed line 10:
HTML Code:
<form method="POST" enctype="multipart/form-data" name="image_upload_form" action="{$form_action}">
added line 13:
HTML Code:
{$hidden_token_profile_change}
changed line 20:
HTML Code:
{$hidden_token_profile_change}
register_center.tpl
Many changes. You'll probably be able to replace your file with the new one.

register_error.tpl
Removed

register_step_1.tpl
Removed

register_step_2.tpl
Removed

search_center.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
changed line 24:
HTML Code:
{$link_summary_output}
changed line 25: remove the extra spaces
Code:
< b r />< b r />
changed line 26:
HTML Code:
{$search_pagination}
removed lines 27, 28 & 29

settemplate_center.tpl
changed line 1:
HTML Code:
{$message}
changed line 2:
HTML Code:
{include file="templates.tpl"}
removed the rest of the lines in the file

sidebar.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
story_center.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
added into line 1:
HTML Code:
{literal}
	<style type="text/css">
		/* allow room for 3 columns */
		div#idwhovotedwrapper ol {width: 35em; list-style-type: none; }
		div#idwhovotedwrapper ol li {float: left; width: 10em; }
		div#idwhovotedwrapper br { clear: left; }
		div#idwhovotedwrapper div.whovotedwrapper { margin-bottom: 1em; }
	</style>
{/literal}
replaced
HTML Code:
{php}
	Global $db, $main_smarty, $link;
	$link->print_summary();
{/php}
with
HTML Code:
{$the_story}
replaced
HTML Code:
{php}
	Global $db, $main_smarty, $current_user, $CommentOrder;
	get_comments();	// the get_comments function is in the /story.php file
{/php}
with
HTML Code:
{$the_comments}
submit_errors.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
submit_step_1.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
submit_step_2.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
added into line 73:
HTML Code:
<option value = "">{#PLIGG_Visual_Submit2_CatInstructSelect#}
submit_step_3.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
replaced
PHP Code:
{php}
        Global 
$db$main_smarty$dblang$the_template$linkres$current_user;

        
$linkres=new Link;

        
$linkres->id=$link_id $_POST['id'];
        
        if(!
$linkres->verify_ownership($current_user->user_id)){
            die(
$main_smarty->get_config_vars('PLIGG_Visual_Submit2Errors_NoAccess'));
        }
        
        
$linkres->read(FALSE);

        if(
$linkres->votes($current_user->user_id) == && auto_vote == true) {
            
$linkres->insert_vote($current_user->user_id'10');
            
$linkres->store_basic();
            
$linkres->read(FALSE); 
        }
        
        
$linkres->category=$_POST['category'];
        
$linkres->title strip_tags(trim($_POST['title']));
        
$linkres->title_url makeUrlFriendly($linkres->title);
        
$linkres->tags tags_normalize_string(strip_tags(trim($_POST['tags'])));
        
$linkres->content strip_tags(trim($_POST['bodytext']), Story_Content_Tags_To_Allow);
        
$linkres->content str_replace("\n"""$linkres->content);
    
// Steef 2k7-07 security fix start ----------------------------------------------------------
      
if(isset($_POST['link_field1'])){$linkres->link_field1 strip_tags(trim($_POST['link_field1']), Story_Content_Tags_To_Allow);}
      if(isset(
$_POST['link_field2'])){$linkres->link_field2 strip_tags(trim($_POST['link_field2']), Story_Content_Tags_To_Allow);}
      if(isset(
$_POST['link_field3'])){$linkres->link_field3 strip_tags(trim($_POST['link_field3']), Story_Content_Tags_To_Allow);}
      if(isset(
$_POST['link_field4'])){$linkres->link_field4 strip_tags(trim($_POST['link_field4']), Story_Content_Tags_To_Allow);}
      if(isset(
$_POST['link_field5'])){$linkres->link_field5 strip_tags(trim($_POST['link_field5']), Story_Content_Tags_To_Allow);}
      if(isset(
$_POST['link_field6'])){$linkres->link_field6 strip_tags(trim($_POST['link_field6']), Story_Content_Tags_To_Allow);}
      if(isset(
$_POST['link_field7'])){$linkres->link_field7 strip_tags(trim($_POST['link_field7']), Story_Content_Tags_To_Allow);}
      if(isset(
$_POST['link_field8'])){$linkres->link_field8 strip_tags(trim($_POST['link_field8']), Story_Content_Tags_To_Allow);}
      if(isset(
$_POST['link_field9'])){$linkres->link_field9 strip_tags(trim($_POST['link_field9']), Story_Content_Tags_To_Allow);}
      if(isset(
$_POST['link_field10'])){$linkres->link_field10 strip_tags(trim($_POST['link_field10']), Story_Content_Tags_To_Allow);}
      if(isset(
$_POST['link_field11'])){$linkres->link_field11 strip_tags(trim($_POST['link_field11']), Story_Content_Tags_To_Allow);}
      if(isset(
$_POST['link_field12'])){$linkres->link_field12 strip_tags(trim($_POST['link_field12']), Story_Content_Tags_To_Allow);}
      if(isset(
$_POST['link_field13'])){$linkres->link_field13 strip_tags(trim($_POST['link_field13']), Story_Content_Tags_To_Allow);}
      if(isset(
$_POST['link_field14'])){$linkres->link_field14 strip_tags(trim($_POST['link_field14']), Story_Content_Tags_To_Allow);}
      if(isset(
$_POST['link_field15'])){$linkres->link_field15 strip_tags(trim($_POST['link_field15']), Story_Content_Tags_To_Allow);}
    
// Steef 2k7-07 security fix end --------------------------------------------------------------
    
        
if(!isset($_POST['summarytext'])){
            
$linkres->link_summary utf8_substr(strip_tags(trim($_POST['bodytext']), Story_Content_Tags_To_Allow), 0StorySummary_ContentTruncate 1);
            
$linkres->link_summary str_replace("\n"""$linkres->link_summary);        
        } else {
            
$linkres->link_summary strip_tags(trim($_POST['summarytext']), Story_Content_Tags_To_Allow);
            
$linkres->link_summary str_replace("\n"""$linkres->link_summary);
            if(
strlen($linkres->link_summary) > StorySummary_ContentTruncate){
                
loghack('SubmitAStory-SummaryGreaterThanLimit''username: ' $_POST["username"].'|email: '.$_POST["email"], true);
                
$linkres->link_summary utf8_substr($linkres->link_summary0StorySummary_ContentTruncate 1);
                
$linkres->link_summary str_replace("\n"""$linkres->link_summary);
            }
        }
        
        if (
link_errors($linkres)) {
            return;
        }

        
$linkres->store();
        
tags_insert_string($linkres->id$dblang$linkres->tags);
        
check_actions('submit_step_3_after_first_store');
        
$linkres->read(FALSE);
        
$edit true;
        
$link_title $linkres->title;
        
$link_content $linkres->content;
        
$link_title stripslashes(strip_tags(trim($_POST['title'])));
        
$linkres->print_summary();
        
        
$main_smarty->assign('tags'$linkres->tags);
        if (!empty(
$linkres->tags)) {
            
$tags_words str_replace(","", "$linkres->tags);
            
$tags_url urlencode($linkres->tags);
            
$main_smarty->assign('tags_words'$tags_words);
            
$main_smarty->assign('tags_url'$tags_url);
        }

        if(isset(
$url)){
            
$main_smarty->assign('submit_url'$url);
        } else {
            
$main_smarty->assign('submit_url''');
        }
        
$main_smarty->assign('submit_url_title'$linkres->url_title);
        
$main_smarty->assign('submit_id'$linkres->id);
        
$main_smarty->assign('submit_type'$linkres->type());
        
$main_smarty->assign('submit_title'$link_title);
        
$main_smarty->assign('submit_content'$link_content);
        if(isset(
$trackback)){
            
$main_smarty->assign('submit_trackback'$trackback);
        } else {
            
$main_smarty->assign('submit_trackback''');
        }
            
{/
php
with
PHP Code:
{$the_story
topusers_center.tpl
Many changes. You'll probably be able to replace your file with the new one.

topusers_data.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
upcoming_center.tpl
removed:
HTML Code:
{config_load file="/libs/lang.conf"}
replace
PHP Code:
{php}
    global 
$db$dblang$globals$main_smarty$search$offset$from_where$page_size$link_id$linksum_sql$linksum_count;
    include(
'./libs/link_summary.php'); // this is the code that show the links / stories
    
echo '<br/><br/>';    
    
do_pages($rows$page_size"upcoming"); // show the "page" buttons at the bottom 
{/php
with (remove the extra spaces in the BR's)
Code:
{$link_summary_output}
< b r />< b r />
{$link_pagination}

user_center.tpl
changed line 77:
HTML Code:
<tr><th>{#PLIGG_Visual_Login_Username#}</th><th>{#PLIGG_Visual_User_Profile_Joined#}</th><th>{#PLIGG_Visual_User_Profile_Homepage#}</th><th>Add/Remove</th></tr>
removed line 81:
HTML Code:
<td>{$userlist[nr].public_email}</td>
changed line 105:
HTML Code:
<a onclick="new Effect.toggle('search_users','appear', {ldelim}queue: 'end'{rdelim});">{#PLIGG_Visual_User_Search_Users#}</a>
changed line 130:
HTML Code:
<a onclick="new Effect.toggle('search_users','appear', {ldelim}queue: 'end'{rdelim});">{#PLIGG_Visual_User_Search_Users#}</a>
changed line 162:
HTML Code:
<a onclick="new Effect.toggle('search_users','appear', {ldelim}queue: 'end'{rdelim});">{#PLIGG_Visual_User_Search_Users#}</a>
changed line 192:
HTML Code:
<a onclick="new Effect.toggle('search_users','appear', {ldelim}queue: 'end'{rdelim});">{#PLIGG_Visual_User_Search_Users#}</a>
changed line 247:
HTML Code:
<a onclick="new Effect.toggle('search_users','appear', {ldelim}queue: 'end'{rdelim});">{#PLIGG_Visual_User_Search_Users#}</a>
changed line 416: (remove the extra spaces in the BR's)
HTML Code:
< b r />< b r /><b>{#PLIGG_Visual_User_Profile_The_Bookmarklet#}: { include file="bookmarklet.tpl" }</b>
replace
PHP Code:
{php}
Global 
$db$main_smarty$view$user$rows$page_size$offset;
$the_page 'profile';
switch (
$view) {
    case 
'history':
        
do_history();
        
do_pages($rows$page_size$the_page);        
        break;
    case 
'published':
        
do_published();
        
do_pages($rows$page_size$the_page); 
        break;
    case 
'shaken':
        
do_shaken();
        
do_pages($rows$page_size$the_page);
        break;    
    case 
'commented':
        
do_commented();
        
do_pages($rows$page_size$the_page);
        break;
    case 
'voted':
        
do_voted();
        
do_pages($rows$page_size$the_page);
        break;    
    case 
'saved':
        
do_stories();
        
do_pages($rows$page_size$the_page);
        break;  
    case 
'removefriend':
        
do_removefriend();
        break;
    case 
'addfriend':
        
do_addfriend();
        break;
    case 
'viewfriends':
        
do_viewfriends();
        break;
    case 
'viewfriends2':
        
do_viewfriends2();
        break;
    case 
'sendmessage':
        
do_sendmessage();
        break;
}
{/
php
with
HTML Code:
{if isset($user_page)}{$user_page}{/if}
{if isset($user_pagination)}{$user_pagination}{/if}




/admin_templates/admin_main_center.tpl
added into line 6:(remove extra spaces from the BR)
HTML Code:
<img src="{$my_pligg_base}/templates/{$the_template}/images/cart.png" align="absmiddle"/> <a href="http://www.pligg.com/pro/" target="_blank">{#PLIGG_Visual_Header_AdminPanel_Shop#}</a>< b r />
changed line 16:
HTML Code:
<img src="{$my_pligg_base}/templates/{$the_template}/images/paypal.gif" align="absmiddle"/> <a href="http://forums.pligg.com/donate.php" target="_blank">{#PLIGG_Visual_Header_AdminPanel_Donate#}</a>
changed line 44:
HTML Code:
<a href="{$URL_story, $link_id}#c{$comment_id}">{if isset($comment_date)}{$comment_date}{/if}</a> <br/>
/admin_templates/admin_modules_center.tpl
added into line 1:
HTML Code:
{checkActionsTpl location="tpl_admin_modules_top"}
changed 141
PHP Code:
$db->query("INSERT INTO " table_modules " (`name`, `version`, `folder`, `enabled`) values ('".$name."', '" $version "', '".$module."', 1);");
        
header('Location: admin_modules.php'); 
to
PHP Code:
$db->query("INSERT INTO " table_modules " (`name`, `version`, `folder`, `enabled`) values ('".$name."', '" $version "', '".$module."', 1);");

        
clear_module_cache();

        
header('Location: admin_modules.php'); 

changed 153
PHP Code:
$db->query($sql);
        
header('Location: admin_modules.php'); 
to
PHP Code:
$db->query($sql);

        
clear_module_cache();

        
header('Location: admin_modules.php'); 
changed 177
PHP Code:
$db->query($sql);
        
header('Location: admin_modules.php'); 
to
PHP Code:
$db->query($sql);

        
clear_module_cache();

        
header('Location: admin_modules.php'); 

added before the ending {php}
PHP Code:
    function clear_module_cache () {
        global 
$db;
        if(
caching == 1){
            
// this is to clear the cache and reload it for settings_from_db.php
            
$db->cache_dir mnmpath.'cache';
            
$db->use_disk_cache true;
            
$db->cache_queries true;
            
$db->cache_timeout 0;
            
// if this query is changed, be sure to also change it in modules_init.php
            
$modules $db->get_results('SELECT * from ' table_modules ' where enabled=1;');
            
$db->cache_queries false;
        }
    } 
/admin_templates/user_disable_step1_center.tpl
changed line 4:
HTML Code:
<tr><td> <a href = "admin_users.php?mode=yesdisable&user={$user}{$uri_token_admin_users_disable}">Yes, disable this user.</a>   |    <a href="javascript: history.go(-1)">No, cancel</a></td></tr>
/admin_templates/user_edit_center.tpl
changed line 5:
HTML Code:
{$hidden_token_admin_users_edit}
/admin_templates/user_killspam_step1_center.tpl
changed line 4:
HTML Code:
<tr><td><a href = "{$my_pligg_base}/admin_users.php?mode=yeskillspam&user={$user}&id={$id}{$uri_token_admin_users_killspam}">{#PLIGG_Visual_Ban_Link_Yes#}</a>   |    <a href="javascript:history.back()">{#PLIGG_Visual_Ban_Link_No#}</a></tr></td>
/admin_templates/user_show_center.tpl
changed line 21:
HTML Code:
<tr><td><img src="{$my_pligg_base}/templates/{$the_template}/images/user_reset.png" align="absmiddle"/> <a href="?mode=resetpass&user={$userdata[nr].user_login}{$uri_token_admin_users_resetpass}" onclick="return confirm('{#PLIGG_Visual_View_User_Reset_Pass_Confirm#}')">{#PLIGG_Visual_View_User_Reset_Pass#}</a></td></tr>




/css/main.css
added to the end of the file
PHP Code:
#linksummaryDiscuss{
 
padding2px 0px 0px 20px;
 
backgroundurl("../images/19de38d03fe7db3b5a64386eb392320b.gif") -8px -8px no-repeat;

#linksummaryHasComment{
 
padding2px 0px 0px 20px;
 
backgroundurl("../images/19de38d03fe7db3b5a64386eb392320b.gif") -8px -167px no-repeat;

#linksummaryAddLink{
 
padding3px 0px 0px 20px;
 
backgroundurl("../images/19de38d03fe7db3b5a64386eb392320b.gif") -8px -40px no-repeat;

#linksummarySaveLink{
 
padding2px 0px 0px 20px;
 
backgroundurl("../images/19de38d03fe7db3b5a64386eb392320b.gif") -8px -104px no-repeat;

#linksummaryRemoveLink{
 
padding2px 0px 0px 20px;
 
backgroundurl("../images/19de38d03fe7db3b5a64386eb392320b.gif") -8px -199px no-repeat;

#linksummaryTellFriend{
 
padding2px 0px 0px 20px;
 
backgroundurl("../images/19de38d03fe7db3b5a64386eb392320b.gif") -8px -135px no-repeat;
}
#linksummaryBury{
 
padding2px 0px 0px 20px;
 
backgroundurl("../images/19de38d03fe7db3b5a64386eb392320b.gif") -8px -7px no-repeat;


/images
added
19de38d03fe7db3b5a64386eb392320b.gif
cart.png

Update (change) 's1' on your id .

/sidebar_modules/about_box.tpl (remove extra spaces in the IMG tags)
changed
HTML Code:
{php}
		echo "<span><a onclick=\"new Effect.toggle('s1','blind', {queue: 'end'}); \"> <i m g src=\"".my_pligg_base."/templates/".The_Template."/images/expand.png\" alt=\"expand\" /></a></span>";
	{/php}
to
HTML Code:
<span><a onclick="new Effect.toggle('s1','blind', {ldelim}queue: 'end'{rdelim});"> <i m g src="{$my_pligg_base}/templates/{$the_template}/images/expand.png" alt="expand" /></a></span>
/sidebar_modules/categories.tpl (remove extra spaces in the IMG tags)
changed
HTML Code:
{php}
		echo "<span><a onclick=\"new Effect.toggle('cats','blind', {queue: 'end'}); \"> <i m g src=\"".my_pligg_base."/templates/".The_Template."/images/expand.png\" alt=\"expand\" /></a></span>";
	{/php}
to
HTML Code:
<span><a onclick="new Effect.toggle('s1','blind', {ldelim}queue: 'end'{rdelim});"> <i m g src="{$my_pligg_base}/templates/{$the_template}/images/expand.png" alt="expand" /></a></span>
/sidebar_modules/login.tpl (remove extra spaces in the IMG tags)
changed line 8-10
HTML Code:
{php}
			echo "<span><a onclick=\"new Effect.toggle('s3','blind', {queue: 'end'}); \"> <i m g src=\"".my_pligg_base."/templates/".The_Template."/images/expand.png\" alt=\"expand\" /></a></span>";
		{/php}
to
HTML Code:
<span><a onclick="new Effect.toggle('s1','blind', {ldelim}queue: 'end'{rdelim});"> <i m g src="{$my_pligg_base}/templates/{$the_template}/images/expand.png" alt="expand" /></a></span>
changed line 30-32
HTML Code:
{php}
			echo "<span><a onclick=\"new Effect.toggle('s4','blind', {queue: 'end'}); \"> <i m g src=\"".my_pligg_base."/templates/".The_Template."/images/expand.png\" alt=\"expand\" /></a></span>";
		{/php}
to
HTML Code:
<span><a onclick="new Effect.toggle('s1','blind', {ldelim}queue: 'end'{rdelim});"> <i m g src="{$my_pligg_base}/templates/{$the_template}/images/expand.png" alt="expand" /></a></span>
/sidebar_modules/tags.tpl (remove extra spaces in the IMG tags)
changed
HTML Code:
<div class="tlb">{php}
	echo "<span><a onclick=\"new Effect.toggle('s2','blind', {queue: 'end'}); \"> <img src=\"".my_pligg_base."/templates/".The_Template."/images/expand.png\" alt=\"expand\" /></a></span>";
	{/php}<a href="{$URL_tagcloud}">{#PLIGG_Visual_Top_5_Tags#}</a>
</div>
to
HTML Code:
<div class="tlb">
	<span><a onclick="new Effect.toggle('s2','blind', {ldelim}queue: 'end'{rdelim});"> <i m g src="{$my_pligg_base}/templates/{$the_template}/images/expand.png" alt="expand" /></a></span>
	<a href="{$URL_tagcloud}">{#PLIGG_Visual_Top_5_Tags#}</a>
</div>

changed
HTML Code:
<div id="s2" style="margin: 5px 0 0 0; line-height: {php} echo tags_max_pts_s; {/php}pt;">
to
HTML Code:
<div id="s2" style="margin: 5px 0 0 0; line-height: {$tags_max_pts_s}pt;">


Contributors: catchpen, AshDigg, grusha
Created by AshDigg, 01-01-2008 at 01:45 PM
Last edited by catchpen, 03-05-2008 at 10:58 AM
10 Comments , 12004 Views
 

Article Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
New 9.8.2 Free Template! GarrX !! Have a Look! auctionguy Free Templates 305 03-03-2009 04:20 AM
MacBlue Free Pligg Template by Yankidank Yankidank Free Templates 18 01-20-2009 03:05 PM
Template Files Yankidank Wiki Articles 1 12-06-2008 03:14 PM
New "Vera" template 9.8.2 mightyb Free Templates 33 05-09-2008 06:57 AM
Parse error: syntax error in class.template.php(745) - bug after upgrading to 9.8.2 Tomek Wlodarek Questions and Comments 0 12-25-2007 05:20 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