Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-19-2008, 04:59 PM
cmstheme's Avatar
Pligg Donor
Pligg Version: 9.9
Pligg Template: Squaretle
 
Join Date: Jan 2007
Posts: 248
Thanks: 28
Thanked 40 Times in 30 Posts
Smile Converting Pligg Template From 9.9.0 To 9.9.5 - Detailed Instructions

Step by step process on converting Pligg template From 9.9.0 To 9.9.5. The instructions below uses the default "yget" template.

/templates
  • Add no_database.tpl
/templates/yget
  • Add sidebar_comments.tpl and sidebar_comments_wrapper.tpl
  • template_details.php
    FIND:
    PHP Code:
    $template_info['version'] = 0.990;
    $template_info['designed_for_pligg_version'] = '9.9.0'
    REPLACE WITH:
    PHP Code:
    $template_info['version'] = 0.995;
    $template_info['designed_for_pligg_version'] = '9.9.5'
  • editlink_edit_center.tpl
    FIND:
    PHP Code:
    <br/><textarea name="bodytext" rows="10" cols="60" id="bodytext" WRAP=SOFT onkeyup="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 /> 
    REPLACE WITH:
    PHP Code:
    <br/><textarea name="bodytext" rows="10" cols="60" id="bodytext" WRAP=SOFT {if $SubmitSummary_Allow_Edit eq 1}onkeyup="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 /> 
  • footer.tpl
    FIND:
    PHP Code:
    <a href="https://sourceforge.net/project/showfiles.php?group_id=176676">Source</a
    REPLACE WITH:
    PHP Code:
    <a href="http://forums.pligg.com/current-version/">Source</a
  • link_summary.tpl
    FIND:
    PHP Code:
    <a href="{$url}" {if $open_in_new_window eq truetarget="_blank"{/if}>{$title_short}</a
    REPLACE WITH:
    PHP Code:
    <a href="{$url}" {if $open_in_new_window eq truetarget="_blank"{/if} rel="nofollow">{$title_short}</a
    -------------------------------------------------------------------------------------------
    -------------------------------------------------------------------------------------------
    FIND:
    PHP Code:
    <a href="{$story_url}">{$title_short}</a
    REPLACE WITH:
    PHP Code:
    <a href="{$story_url}" rel="nofollow">{$title_short}</a

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

    -------------------------------------------------------------------------------------------
    FIND:
    PHP Code:
    {if $isadmin eq "yes" || $user_logged_in eq $link_submitter}
        <
    span id="adminlinksbuttom"> | <a href="javascript://" onclick="var replydisplay=document.getElementById('ls_adminlinks-{$link_shakebox_index}').style.display ? '' : 'none';document.getElementById('ls_adminlinks-{$link_shakebox_index}').style.display = replydisplay;">{#PLIGG_Visual_Admin_Links#}</a></span>
    {/if} 
    AFTER THAT LINE, ADD:
    PHP Code:
    {if $isadmin eq "yes"}
        | <
    a href="{$my_pligg_base}/delete.php?link_id={$link_id}">Delete</a>
    {/if} 

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

    -------------------------------------------------------------------------------------------
    FIND:
    PHP Code:
    {if $pagename neq "story"} <a href="{$story_url}"#PLIGG_Visual_Read_More#}</a> &raquo; {/if}<br /> 
    REPLACE WITH:
    PHP Code:
    {if $pagename neq "story" && $pagename neq "submit"} <a href="{$story_url}">{#PLIGG_Visual_Read_More#}</a> &raquo; {/if}<br /> 

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

    -------------------------------------------------------------------------------------------
    FIND:
    PHP Code:
    &nbsp;&nbsp;<a title="submit '{$title_short}' to Pligg" href="http://pligg.com/submit.php?url={$enc_url}&amp;title={$title_short}"><img src="{$my_base_url}{$my_pligg_base}/templates/{$the_template}/images/pligg.png" border="0" alt="submit '{$title_short}' to Pligg" /></a
    REPLACE WITH:
    PHP Code:
    &nbsp;&nbsp;<a title="submit '{$title_short}' to Stumbleupon" href="http://www.stumbleupon.com/submit?url={$enc_url}&amp;title={$title_short}"><img src="{$my_base_url}{$my_pligg_base}/templates/{$the_template}/images/icon-stumbleupon.gif" border="0" alt="submit '{$title_short}' to Stumbleupon" /></a
  • live_comments_center.tpl
    FIND:
    PHP Code:
    <div class="live2-story"><a href="{$URL_storytitle, $live_items[live_item].comment_link_url}">{$live_items[live_item].comment_link_title}</a></div
    REPLACE WITH:
    PHP Code:
    <div class="live2-story"><a href="{$live_items[live_item].comment_link_url}">{$live_items[live_item].comment_link_title}</a></div
  • live_pubslihed_center.tpl
    FIND:
    PHP Code:
    <div class="live2-ts" style="width:50%"><a href="{$URL_storytitle, $live_items[live_item].link_url}">{$live_items[live_item].link_title}</a></div
    REPLACE WITH:
    PHP Code:
    <div class="live2-ts" style="width:50%"><a href="{$live_items[live_item].link_url}">{$live_items[live_item].link_title}</a></div
  • live_unpublished_center.tpl
    FIND:
    PHP Code:
    <div class="live2-ts" style="width:50%"><a href="{$URL_storytitle, $live_items[live_item].link_url}">{$live_items[live_item].link_title}</a></div
    REPLACE WITH:
    PHP Code:
    <div class="live2-ts" style="width:50%"><a href="{$live_items[live_item].link_url}">{$live_items[live_item].link_title}</a></div
/templates/yget/images
  • Add icon-sumbleupon.gif
__________________
Join our Pligg Template Club now while prices are still cheap!

Last edited by cmstheme; 08-19-2008 at 05:08 PM.. Reason: Add dividers on file edits for visibility
Reply With Quote
The Following 4 Users Say Thank You to cmstheme For This Useful Post:
  #2 (permalink)  
Old 08-19-2008, 05:35 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,818
Thanks: 110
Thanked 182 Times in 128 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Thanks, big help for those who don't want to use file comparison software.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #3 (permalink)  
Old 08-22-2008, 09:13 AM
ovd ovd is offline
New Pligger
 
Join Date: Oct 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
is this working with other templates too? or only with yget? thanks
Reply With Quote
  #4 (permalink)  
Old 08-22-2008, 09:33 AM
cmstheme's Avatar
Pligg Donor
Pligg Version: 9.9
Pligg Template: Squaretle
 
Join Date: Jan 2007
Posts: 248
Thanks: 28
Thanked 40 Times in 30 Posts
Quote:
Originally Posted by ovd View Post
is this working with other templates too? or only with yget? thanks
I base the changes on yGet template. However, on custom templates, those lines above are rarely changed. Thus, it might be applicable too on custom templates. Anyway, you now have the overview on what templates should be change.
__________________
Join our Pligg Template Club now while prices are still cheap!
Reply With Quote
  #5 (permalink)  
Old 09-08-2008, 10:57 PM
New Pligger
Pligg Version: 9,9,5
 
Join Date: Aug 2008
Location: Winnipeg Manitoba Canada
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via AIM to konvictcollin Send a message via Yahoo to konvictcollin Send a message via Skype™ to konvictcollin
Well

Quote:
Originally Posted by cmstheme View Post
I base the changes on yGet template. However, on custom templates, those lines above are rarely changed. Thus, it might be applicable too on custom templates. Anyway, you now have the overview on what templates should be change.
I tired everything above and it didn't fix my theme
maybe the garrX9 theme is just broken
Reply With Quote
  #6 (permalink)  
Old 09-09-2008, 12:13 AM
Casual Pligger
 
Join Date: May 2007
Posts: 73
Thanks: 6
Thanked 3 Times in 2 Posts
Hi cmstheme,
all those step also can be apply to your previous pu**** template right?
__________________
Submit Your Pligg Site to Pligg Directory
Reply With Quote
  #7 (permalink)  
Old 09-09-2008, 02:18 AM
cmstheme's Avatar
Pligg Donor
Pligg Version: 9.9
Pligg Template: Squaretle
 
Join Date: Jan 2007
Posts: 248
Thanks: 28
Thanked 40 Times in 30 Posts
Quote:
Originally Posted by konvictcollin View Post
I tired everything above and it didn't fix my theme
maybe the garrX9 theme is just broken
Have you followed all the instructions, i.e. adding the additional templates like no_database.tpl, sidebar_comments.tpl, etc.? What's the error that comes out?

Quote:
Originally Posted by onlinebisnes View Post
Hi cmstheme,
all those step also can be apply to your previous pu**** template right?
Yes, but the "REPLACE" part only because the "FIND" instructions may not be found anymore on the "Push It" template since it was modified. Email me to get the changes of the "Push It" template to be compatible with Beta 9.9.5.
__________________
Join our Pligg Template Club now while prices are still cheap!
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Pligg integration with SMF Forum autoinc Modification Tutorials 64 05-19-2008 02:22 AM
MoreNews December 2007 New Pligg Template grusha Template Sales 6 01-10-2008 09:52 AM
siChunk Series of Templates for pligg Adaman Template Sales 1 10-02-2007 10:17 PM
Nominate an Open Source Template for Pligg Yankidank Template Support 8 07-21-2007 07:12 PM


Search Engine Friendly URLs by vBSEO 3.2.0