Wistie Column Changes Tutorial

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-22-2009, 04:26 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Here are some tutorials for customizing the layout and style of the Wistie template. First is a tutorial for changing the order of the columns so that the 2 sidebars are to the left of the main story content. Then is a tutorial for changing Wistie into a 2 column template. Both of these probably have some bugs, but they should offer you guidance if you are interested in customizing Wistie.
______________________________________

Reverse Columns Tutorial
These changes will reverse the order of the columns so that you have a small left column, medium middle column and large right column with the news. Click here for an example screenshot.

Open up /css/style.css
Code:
 #leftcol {
width: 550px;
float: right;
overflow: hidden;
 }

 #leftcol-wide {
width: 790px;
float: right;
overflow: hidden;
 }

 #midcol {
width: 220px;
margin-right: 20px;
float: right;
overflow:hidden;
font-size: 12px;
}

 #rightcol {
width: 150px;
margin-right: 20px;
float: left;
 }
______________________________________

2 Column Tutorial
To combine the middle column and right column into one column so that Wistie becomes a 2 column template, follow this guide. This will need some additional tweaking, but it covers the basics. Here is a screenshot example of the result.

----------------
Open /pligg.tpl and Find:
Code:
    {if $pagename eq "submit"}
    {elseif $pagename neq "story" && $pagename neq "user" && $pagename neq "profile" && $pagename neq "login" && $pagename neq "register" }
        <div id="leftcol">
    {else}
        <div id="leftcol-wide">
    {/if}
Replace with:
Code:
    {if $pagename eq "submit"}
    {else}
        <div id="leftcol">
    {/if}
Find:
Code:
        </div>
<!-- END MIDDLE COLUMN -->
Replace with:
Code:
<!-- END MIDDLE COLUMN -->
Find:
Code:
<!-- START RIGHT COLUMN -->
        <div id="rightcol">
Replace with:
Code:
<!-- START RIGHT COLUMN -->
----------------
Open /sidebar.tpl
Replace line 1 with:
Code:
{if $pagename eq "story" || $pagename eq "login" || $pagename eq "register"}<div id="midcol">{/if}
----------------
Open /css/style.css and replace all instances of 550px with 660px.

Also Replace:
Code:
#midcol {
width: 220px;
with:
Code:
#midcol {
width: 280px;
Attached Thumbnails
Wistie Column Changes Tutorial-reversed.png   Wistie Column Changes Tutorial-2-column.png  

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!

Last edited by Yankidank; 06-26-2009 at 12:00 PM.
Reply With Quote
  #2 (permalink)  
Old 06-02-2009, 12:02 AM
New Pligger
 
Join Date: Jun 2009
Posts: 3
On the 2-column tutorial, I can't find the code in my pligg.tpl. There aren't any <div> tags in it at all. I haven't modified that file at all myself. Am I missing something? Thanks!
Reply With Quote
  #3 (permalink)  
Old 06-02-2009, 10:56 AM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Quote:
Originally Posted by GoPliggure View Post
On the 2-column tutorial, I can't find the code in my pligg.tpl. There aren't any <div> tags in it at all. I haven't modified that file at all myself. Am I missing something? Thanks!
What version of Wistie are you using (what version of Pligg did it come with)? I believe the Wistie pligg.tpl file hasn't had many changes since RC1.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #4 (permalink)  
Old 06-02-2009, 04:29 PM
New Pligger
 
Join Date: Jun 2009
Posts: 3
Quote:
Originally Posted by Yankidank View Post
What version of Wistie are you using (what version of Pligg did it come with)? I believe the Wistie pligg.tpl file hasn't had many changes since RC1.
I'm not sure where to find my version (RC1-RC5) but I just downloaded it all from the main Pligg page 2 or 3 days ago, so I'm assuming it's the latest one. This is my site. Here's the untouched pligg.tpl from the Wistie folder. Thanks for the help!!

Code:
{checkActionsTpl location="tpl_pligg_head_start"} {include file="meta.tpl"} {if $pagename eq "submit"}{/if} {if $Voting_Method eq 2} {/if} {checkForCss} {checkForJs} {if $pagename neq "published" && $pagename neq "upcoming"} {if $Spell_Checker eq 1} {/if} {/if} {if $request_category} {elseif $pagename eq "groups"} {elseif $pagename eq "group_story"} {elseif $pagename eq "submit_groups"} {elseif $pagename eq "upcoming"} {elseif $pagename eq "published"} {elseif $pagename eq "index"} {elseif $pagename eq "story"} {else} {/if} {checkActionsTpl location="tpl_pligg_head_end"} {checkActionsTpl location="tpl_pligg_body_start"}
{literal} {/literal} {checkActionsTpl location="tpl_pligg_banner_top"} {include file=$tpl_header.".tpl"} {if $pagename eq "submit"} {elseif $pagename neq "story" && $pagename neq "user" && $pagename neq "profile" && $pagename neq "login" && $pagename neq "register" }
{else}
{/if} {if $pagename eq "group_story"}

{/if} {checkActionsTpl location="tpl_pligg_content_start"} {checkActionsTpl location="tpl_pligg_above_center"} {include file=$tpl_center.".tpl"} {checkActionsTpl location="tpl_pligg_below_center"} {checkActionsTpl location="tpl_pligg_content_end"}
{if $pagename neq "story" && $pagename neq "submit" && $pagename neq "user" && $pagename neq "profile" && $pagename neq "login" && $pagename neq "register"}
{include file=$tpl_second_sidebar.".tpl"}
{/if}
{include file=$tpl_right_sidebar.".tpl"}
{checkActionsTpl location="tpl_pligg_banner_bottom"} {include file=$tpl_footer.".tpl"}
{* this line HAS to be towards the END of pligg.tpl *} {checkActionsTpl location="tpl_pligg_body_end"}
Reply With Quote
  #5 (permalink)  
Old 06-02-2009, 06:04 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
You are only quoting part of the code from pligg.tpl. There's a lot more to it:
{$pretitle} {$meta_description} {if $pagename eq "upcoming"}| {$posttitle} {/if}| {#PLIGG_Visual_Name#}

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #6 (permalink)  
Old 06-02-2009, 10:06 PM
New Pligger
 
Join Date: Jun 2009
Posts: 3
Oh, wow! I was opening and editing the .tpl files in a text editor; I just opened pligg.tpl in Dreamweaver and there was the rest. Do you know why that wouldn't show up in a text editor? (Sorry, I'm a noob.)
Reply With Quote
  #7 (permalink)  
Old 06-23-2009, 04:14 PM
Casual Pligger
Pligg Version: 1.0.0
Pligg Template: wistie
 
Join Date: Jun 2009
Location: Greece
Posts: 68
it didn't work for me, i think there are some faults on your changes, are you sure it's ok?
Reply With Quote
  #8 (permalink)  
Old 06-26-2009, 10:57 AM
New Pligger
 
Join Date: Feb 2009
Posts: 2
doesn't work!

When people post up tutorials why can they work and I walways have to be scratching my head figuring the bugs of other people

thanks anyway!
Reply With Quote
  #9 (permalink)  
Old 06-26-2009, 10:58 AM
New Pligger
 
Join Date: Feb 2009
Posts: 2
here is an example

find this:

</div>
<!-- END MIDDLE COLUMN -->


replace it with this:

</div>
<!-- END MIDDLE COLUMN -->

thanks man!
Reply With Quote
  #10 (permalink)  
Old 09-26-2009, 04:49 AM
New Pligger
 
Join Date: Sep 2009
Posts: 29
Quote:
Originally Posted by Yankidank View Post
Open /sidebar.tpl
Replace line 1 with:
Code:
{if $pagename eq "story" || $pagename eq "login" || $pagename eq "register"}<div id="midcol">{/if}
----------------
when I did the replacement above, I got the errors like below:
----------------
Parse error: syntax error, unexpected ')' in /opt/lampp/htdocs/class.template.php(745) : eval()'d code on line 3
----------------

could you help me?

thanks.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wistie tempate plafon Questions and Comments 3 03-31-2009 09:55 PM
3 Column Professional template needed knight01 Templates for Sale 0 03-19-2008 08:40 PM
Can someone suggest me a 3 column template MMArise Questions and Comments 1 12-17-2007 12:47 AM
Tutorial: Understanding Pligg Template Files Futurosity Questions and Comments 3 01-27-2007 03:22 AM
Upgrade issue? "duplicate column name" cryptkeeper Questions and Comments 0 01-13-2006 08:18 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