| | LinkBack | Article Tools | Display Modes |
| Sponsored Links |
|
#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: |


