The following are the template changes for Wistie made between versions 1.0 RC4 and 1.0 RC5. If you need to manually upgrade your template for whatever reason, this can be used as a guide to make the edits so that you continue to get all of the Pligg features and bug fixes from the latest version.
Removed /sidebar_modules/sidebar_comments.tpl
Removed /sidebar_modules/sidebar_stories.tpl
Removed /sidebar_modules/sidebar_stories_u.tpl
Removed /sidebar_modules/sidebar_topcontributors.inc
Removed /sidebar_comments
Removed /sidebar_comments_wrapper.tpl
Removed /sidebar_stories.tpl
Removed /sidebar_stories_wrapper.tpl
Removed /sidebar_stories_wrapper_top_today.tpl
Changed /css/style.css line 89 to:
Code:
.search {position:absolute; margin-top:8px; margin-left: 770px;width:190px;}
.edit {
border:1px solid #d9d9d9;
padding: 5px 5px 5px 10px;
background: #ededed;
}
.edit-image {float:left;}
a .edit-image img{border:0px;} Changed /js/wick.js line 218 to:
Code:
var content = getSmartInputBoxContent();
Changed /sidebar_modules/about_box.tpl line 3 to:
Code:
<div class="sectiontitle"><a href="{$my_pligg_base}/page.php?page=about">{#PLIGG_Visual_What_Is_Pligg#}</a></div> Changed /sidebar_modules/tags.tpl replace lines 21-33 with:
Code:
<span style="font-size: {$tag_size[customer]}pt">
<a href="{$tag_url[customer]}">{$tag_name[customer]}</a>
</span> Changed /edit_group_center.tpl line 20 to:
Code:
<select name="group_privacy" onchange="document.getElementById('group_email').style.display=this.selectedIndex==0 ? 'none' : 'block';"> Add after line 24:
Code:
<div id='group_email' {if $group_privacy eq 'public'}style="display:none;"{/if}>
<input type="checkbox" id="group_notify_email" size="4" name="group_notify_email" value="1" {if $group_notify_email}checked{/if}>
<label>{#PLIGG_Visual_Submit_Group_Notify#}</label>
<br /><br />
</div> Changed /editlink_edit_center.tpl line 39 to:
Changed line 53 to:
Code:
<br/><textarea name="bodytext" rows="10" cols="60" id="bodytext" WRAP=SOFT {if $SubmitSummary_Allow_Edit eq 1}onkeyup="if(!this.form.summarycheckbox || !this.form.summarytext) return; if(this.form.summarycheckbox.checked == false) {ldelim}this.form.summarytext.value = this.form.bodytext.value.substring(0, {$StorySummary_ContentTruncate});{rdelim}textCounter(this.form.summarytext,this.form.remLen, {$StorySummary_ContentTruncate});"{/if}>{$submit_content}</textarea><br /> Changed /footer.tpl copyright year to 2009.
Changed /group_center.tpl add after line 3:
Code:
{if $group_allow eq "1"}
<br /><br />
<h2><a href="{$URL_submit_groups}"><span>{#PLIGG_Visual_Submit_A_New_Group#}</span></a></h2>
{/if} Changed /header.tpl replace lines 18-62 with:
Code:
<form action="{$my_pligg_base}/search.php" method="get" name="thisform-search" id="thisform-search"
{php}
global $URLMethod, $my_base_url, $my_pligg_base;
if ($URLMethod==2) print "onsubmit='document.location.href=\"{$my_base_url}{$my_pligg_base}/search/\"+encodeURIComponent(this.search.value); return false;'";
{/php}
>
<input type="text" size="20" class="searchfield" name="search" id="searchsite" value="{$searchboxtext}" onfocus="if(this.value == '{$searchboxtext}') {ldelim}this.value = '';{rdelim}" onblur="if (this.value == '') {ldelim}this.value = '{$searchboxtext}';{rdelim}"/>
<input type="submit" value="{#PLIGG_Visual_Search_Go#}" class="searchbutton" />
</form>
<div class="clear"></div>
</div>
<!-- END SEARCH -->
<!-- START NAVBAR -->
<ul id="nav">
{checkActionsTpl location="tpl_pligg_navbar_start"}
<li {if $pagename eq "published" || $pagename eq "index"}class="current"{/if}><a href='{$my_base_url}{$URL_base}'>{#PLIGG_Visual_Published_News#}</a></li>
<li {if $pagename eq "upcoming"}class="current"{/if}><a href="{$URL_upcoming}">{#PLIGG_Visual_Pligg_Queued#}</a></li>
<li {if $pagename eq "submit"}class="current"{/if}><a href="{$URL_submit}">{#PLIGG_Visual_Submit_A_New_Story#}</a></li>
{if $enable_group eq "true"}
<li {if $pagename eq "groups" || $pagename eq "submit_groups" || $pagename eq "group_story"}class="current"{/if}><a href="{$URL_groups}"><span>{#PLIGG_Visual_Groups#}</span></a></li> Changed /link_summary.tpl line 106 to:
Code:
<a target="story_status" href="{$group_story_links_publish}" onclick="show_hide_user_links(document.getElementById('story_status_success-{$link_shakebox_index}'))">{#PLIGG_Visual_AdminPanel_Published#}</a> Line 229 to:
Changed /page_center.tpl, replace whole file.
Changed /search_advanced_center.tpl replace whole file.
Changed /search_center.tpl replace whole file.
Changed /sidebar.tpl replace lines 37-40 with:
Code:
<div class="sectiontitle">{if $Enable_Tags}<a href="{$URL_tagcloud}">{#PLIGG_Visual_Tags#}</a>{/if}</div>
</div>
<div class="links">
<div class="sectiontitle">{if $Enable_Live} <a href='{$URL_live}'> {#PLIGG_Visual_Live#}</a>{/if}</div> Changed /sidebar2.tpl replace lines 123-129 with:
Code:
{checkActionsTpl location="tpl_pligg_sidebar_stories_u"}
{checkActionsTpl location="tpl_pligg_sidebar_stories"}
{checkActionsTpl location="tpl_pligg_sidebar_comments"}
{if $Enable_Tags} {assign var=sidebar_module value="tags"}{include file=$the_template_sidebar_modules."/wrapper.tpl"} {/if} Changed /story_center.tpl replace liens 23-34 with:
Code:
{if count($related_story) neq 0}
<div id="related">
<h2>{#PLIGG_Visual_Story_RelatedStory#}</h2>
{checkActionsTpl location="tpl_pligg_story_related_start"}
<ol>
{section name=nr loop=$related_story}
<li><a href = "{$related_story[nr].url}">{$related_story[nr].link_title}</a><br/></li>
{/section}
</ol>
{checkActionsTpl location="tpl_pligg_story_related_end"}
</div>
{/if} Changed /submit_errors.tpl replace whole file.
Changed /submit_groups.tpl replace lines 16-21 with:
Code:
<select name="group_privacy" onchange="document.getElementById('group_email').style.display=this.selectedIndex==0 ? 'none' : 'block';">
<option value = "public">{#PLIGG_Visual_Submit_Group_Public#}</option>
<option value = "private">{#PLIGG_Visual_Submit_Group_Private#}</option>
<option value = "restricted">{#PLIGG_Visual_Submit_Group_Restricted#}</option>
</select>
<br/>{#PLIGG_Visual_Group_Submit_PrivacyInstruction#}<br/>
<div id='group_email' style="display:none;">
<label>{#PLIGG_Visual_Submit_Group_Notify#}:</label>
<input type="checkbox" id="group_notify_email" size="4" name="group_notify_email" value="1"><br /><br />
</div> Changed /submit_step_2.tpl remove " eq 'true' " from lines 58 and 68. Replace line 85 with:
Code:
<br/><textarea name="bodytext" class="bodytext" rows="40" cols="80" id="bodytext" WRAP=SOFT onkeyup="if(!this.form.summarycheckbox || !this.form.summarytext) return; if(this.form.summarycheckbox.checked == false) {ldelim}this.form.summarytext.value = this.form.bodytext.value.substring(0, {$StorySummary_ContentTruncate});{rdelim}textCounter(this.form.summarytext,this.form.remLen, {$StorySummary_ContentTruncate});">{$submit_content}</textarea><br /> Changed /tag_cloud_center.tpl replace whole file.