
| | Article Tools | Display Modes |
| ||||
|
This area reserved.
|
|
#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
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: PHP Code: 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" /> Changed PHP Code: PHP Code: ---------------------------------------------------------------- /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: PHP Code: removed: HTML Code: {config_load file="/libs/lang.conf"} PHP Code: removed: HTML Code: {config_load file="/libs/lang.conf"} HTML Code: {#PLIGG_Visual_Comment_Rating#}: <a id="cvote-{$comment_id}" style='text-decoration: none;'>{$comment_votes}</a> HTML Code: <input type="hidden" name="randkey" value="{$rand}" /> 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"} removed: HTML Code: {config_load file="/libs/lang.conf"} 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"} HTML Code: (blank line here) HTML Code: <span id="linksummaryDiscuss"><a href="{$story_url}" class="comments">{#PLIGG_MiscWords_Discuss#}</a> </span> HTML Code: <span id="linksummaryHasComment"><a href="{$story_url}" class="comments2">{$story_comment_count} {#PLIGG_MiscWords_Comment#}</a> </span> HTML Code: (deleted this line) HTML Code: <span id="linksummaryHasComment"><a href="{$story_url}" class="comments2">{$story_comment_count} {#PLIGG_MiscWords_Comments#}</a> </span> HTML Code: (deleted this line) HTML Code: <span id="linksummaryAddLink"> 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> HTML Code: </span> 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> 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> correct image. changed 206 to: HTML Code: {if $Enable_Recommend eq 1 && $user_logged_in neq ""} HTML Code: <span id="linksummaryTellFriend"> HTML Code: <a href="javascript://" onclick="show_recommend({$link_shakebox_index}, {$link_id}, '{$instpath}');"> {#PLIGG_Visual_Recommend_Link_Text#}</a> HTML Code: </span> 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> HTML Code: </span> HTML Code: </span> removed: HTML Code: {config_load file="/libs/lang.conf"} 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"} replace HTML Code: {config_load file="/libs/lang.conf"} HTML Code: {config_load file="/languages/lang_".$pligg_language.".conf"} 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" /> 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]--> 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]--> 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} 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} HTML Code: <script src="{$my_pligg_base}/js/jspath.php" type="text/javascript"></script> removed: HTML Code: {config_load file="/libs/lang.conf"} HTML Code: <form method="POST" enctype="multipart/form-data" name="image_upload_form" action="{$form_action}"> HTML Code: {$hidden_token_profile_change} HTML Code: {$hidden_token_profile_change} 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"} HTML Code: {$link_summary_output} Code: < b r />< b r /> HTML Code: {$search_pagination} settemplate_center.tpl changed line 1: HTML Code: {$message} HTML Code: {include file="templates.tpl"} sidebar.tpl removed: HTML Code: {config_load file="/libs/lang.conf"} removed: HTML Code: {config_load file="/libs/lang.conf"} 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} HTML Code: {php}
Global $db, $main_smarty, $link;
$link->print_summary();
{/php} HTML Code: {$the_story} HTML Code: {php}
Global $db, $main_smarty, $current_user, $CommentOrder;
get_comments(); // the get_comments function is in the /story.php file
{/php} HTML Code: {$the_comments} removed: HTML Code: {config_load file="/libs/lang.conf"} removed: HTML Code: {config_load file="/libs/lang.conf"} removed: HTML Code: {config_load file="/libs/lang.conf"} HTML Code: <option value = "">{#PLIGG_Visual_Submit2_CatInstructSelect#} removed: HTML Code: {config_load file="/libs/lang.conf"} PHP Code: PHP Code: 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"} removed: HTML Code: {config_load file="/libs/lang.conf"} PHP Code: 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> HTML Code: <td>{$userlist[nr].public_email}</td> HTML Code: <a onclick="new Effect.toggle('search_users','appear', {ldelim}queue: 'end'{rdelim});">{#PLIGG_Visual_User_Search_Users#}</a> HTML Code: <a onclick="new Effect.toggle('search_users','appear', {ldelim}queue: 'end'{rdelim});">{#PLIGG_Visual_User_Search_Users#}</a> HTML Code: <a onclick="new Effect.toggle('search_users','appear', {ldelim}queue: 'end'{rdelim});">{#PLIGG_Visual_User_Search_Users#}</a> HTML Code: <a onclick="new Effect.toggle('search_users','appear', {ldelim}queue: 'end'{rdelim});">{#PLIGG_Visual_User_Search_Users#}</a> HTML Code: <a onclick="new Effect.toggle('search_users','appear', {ldelim}queue: 'end'{rdelim});">{#PLIGG_Visual_User_Search_Users#}</a> HTML Code: < b r />< b r /><b>{#PLIGG_Visual_User_Profile_The_Bookmarklet#}: { include file="bookmarklet.tpl" }</b> PHP Code: 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 /> 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> HTML Code: <a href="{$URL_story, $link_id}#c{$comment_id}">{if isset($comment_date)}{$comment_date}{/if}</a> <br/> added into line 1: HTML Code: {checkActionsTpl location="tpl_admin_modules_top"} PHP Code: PHP Code: changed 153 PHP Code: PHP Code: PHP Code: PHP Code: added before the ending {php} PHP Code: 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> changed line 5: HTML Code: {$hidden_token_admin_users_edit} 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> 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: /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} 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 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} 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 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} 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> 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} 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 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> 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;"> HTML Code: <div id="s2" style="margin: 5px 0 0 0; line-height: {$tags_max_pts_s}pt;">
| ||||
| 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 |


Linear Mode
