Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
Confused about installing template
Posted: 16 November 2005 12:01 PM   [ Ignore ]  
Summer Student
Total Posts:  2
Joined  2005-11-16

Greetings

I am new to pM… installed it about 10 minutes ago smile

I found a template I like, however I am confused as to how to install and activate it on the blog.I searched and found no how to manual or anything.

Any help in getting my template installed would be most appreciated.

Thank you smile

Profile
 
 
Posted: 16 November 2005 12:03 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32909
Joined  2004-05-14

Are you using pMachine Pro, or ExpressionEngine?  You mention pM but are posting in an EE forum… =)

 Signature 
Profile
 
 
Posted: 16 November 2005 12:11 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  2
Joined  2005-11-16

I’m using pMachine Free installed via Fantastico in my cpanel.This is the link that was provided for support.

smile

Profile
 
 
Posted: 16 November 2005 02:59 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12416
Joined  2002-04-29

First things first.

pMachine Free is no longer available. Please update to pMachine Pro 2.4.

Then we’ll be able to help you more.

You can download it here.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
 
 
Posted: 24 November 2005 01:34 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  2
Joined  2005-11-24

Sue, I’ve updated to 2.4 and I need help installing templates.  Can you help?

-Jazhawk

Profile
 
 
Posted: 24 November 2005 05:04 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12416
Joined  2002-04-29
Jazhawk - 24 November 2005 01:34 AM

Sue, I’ve updated to 2.4 and I need help installing templates.  Can you help?

-Jazhawk

pMachine comes with a standard template that you can use as a guide for putting in pMachine tags. What you need to do is find which tags you want to use, then add them to your design.

Quoting from the docs:

You'll be surprised to find that all of the pMachine pages that make up your site — the weblog and member pages — are strikingly similar to standard HTML pages you are familiar with. In fact, you'll find that these pages are cleaner looking than normal HTML pages, since some aspects are created with templates in the control panel.

In this sense, pMachine is a hybrid system; there are both traditional HTML pages, as well as dynamically generated page elements. This is an important concept in pMachine:

The HTML pages contain the static elements of your site — the stuff that doesn't change. All of the dynamic stuff — weblog entries, comments, etc., as well as the formatting and presentation of those elements is managed in the control panel through templates and preference settings.

You'
ll code your static HTML pages using your favorite HTML editor, like "Dreamweaver", or by hand. These pages may contain any web-enabling elements you normally use: HTML, JavaScript, Flash, scripting elements, etc. There are only two requirements that pMachine pages must meet:

   
1. They must have a PHP suffix. Similar to HTML pages, which must end in .html, PHP pages must end in .php
   2. On the very first line of each page
, before any HTML, you must place the following PHP tag: <?php include("pm_inc.php"); ?> This tag allows the page to communicate with pMachine.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
 
 
Posted: 24 November 2005 05:55 AM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12416
Joined  2002-04-29

Here’s an example page:

Turkey

It uses a css template loosely based on the Butterfly template for ExpressionEngine.

In order for the Thanksgiving entry to appear here, I did the following at the top if the page:

<?php include(“pm_inc.php”);
$id=“P5”;
?>

*All* pMachine pages need the include line to work.

$id= referrs to entry #5.

So when I put in

<?php weblog_entries($id,“weblog”); ?>

It becomes

<?php weblog_entries(“P5”,“weblog”); ?>

pMachine knows what to do with that tag.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
 
 
Posted: 24 November 2005 09:20 AM   [ Ignore ]   [ # 7 ]  
Summer Student
Total Posts:  2
Joined  2005-11-24

Thanx Sue.  I’ll see if I can plug in something using this example.  I notice a lot of threads talking about the wonders of this ExpressionEngine.  Is that some kind of web tool for plugging in these downloadable themes?  Is it imperative to use that ExpressionEngine for those themes or can they plug in without it?

-Jazhawk

Profile
 
 
Posted: 24 November 2005 09:54 AM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12416
Joined  2002-04-29
Jazhawk - 24 November 2005 09:20 AM

Thanx Sue.  I’ll see if I can plug in something using this example.  I notice a lot of threads talking about the wonders of this ExpressionEngine.  Is that some kind of web tool for plugging in these downloadable themes?  Is it imperative to use that ExpressionEngine for those themes or can they plug in without it?

-Jazhawk

ExpressionEngine is the replacement for pMachine. It is completely different from pMachine and very powerful.

If you download the EE themes, they won’t work with pMachine.

What I did to get that sample page to work was to view the renderd template on a test site, and plug in the pMachine tags where appropriate.

With EE, I take a rendered page, put it into EE’s template system and start taking apart the design to work the way I want it to work.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
title>Testing</title>

<
meta http-equiv="Content-Type" content="text/html; charset={charset}" />

<
link rel='stylesheet' type='text/css' media='all' href='{stylesheet=2col/site_css}' />
<
style type='text/css' media='screen'>@import "{stylesheet=2col/site_css}";</style>

</
head>

<
body>


<
div id="wrapper">
<
div id="navcontainer">

<
ul id="navlist">
<
li id="active"><a href="{homepage}">Home</a></li>
<
li><a href="{path=weblog/info/about-us}">About Sue</a></li>
<
li><a href="#" title="Go to archives">Archives</a></li>
<
li><a href="{path=weblog/feedback}" title="Contact Page">Contact</a></li>
<
li><a href="http://www.pmachinehowto.com/index.php/forums">Forum</a></li>
</
ul>
</
div>
<
div id="block_1">
<
img src="/images/happythanks.jpg">
<
div class="pad5">
{exp:weblog:entries weblog="testing"}
<div class=title>{title}</div>
<
span class=subtitle>{subtitle}</span>
{page_content}
<br />
Author: {author}
{
/exp:weblog:entries}
</div>

</
div>
<
div id="block_2">
{embed=2col/rightnav}
</div>
<
div id="footer">
Footer goes here.
</
div>
</
div>
</
body>
</
html>

See how different this is from the source you see on my test turkey page?

It’s the same design.

I’m embedding a template called rightnav for the rightnav part of the design.

95% of my clients use EE, only 5% use pMachine.  It just depends on what you want to do.

Did that make any sense, or confuse you more?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
 
 
Posted: 27 November 2005 09:53 PM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  303
Joined  2003-10-01
Sue - 24 November 2005 05:55 AM

Here’s an example page:

Turkey

It uses a css template loosely based on the Butterfly template for ExpressionEngine.

In order for the Thanksgiving entry to appear here, I did the following at the top if the page:

<?php include(“pm_inc.php”);
$id=“P5”;
?>

*All* pMachine pages need the include line to work.

$id= referrs to entry #5.

So when I put in

<?php weblog_entries($id,“weblog”); ?>

It becomes

<?php weblog_entries(“P5”,“weblog”); ?>

pMachine knows what to do with that tag.

Sue - I am a bit confused. How does pM know that your entry is #5?? 

And is this the basic premise to use in embedding an html page into a pM weblog entry? What i am thinking of doing is: A) to have a newsletter weblog as a pM page eg. newsletter.php. B) Do up an HTML newsletter outside of pM.. ie as standalone webpage eg. news.html >> which i wish to include into the WEBLOG portion of the php page. And also to be able to have users view jsut a simple html file. or to print it out… any advice appreciated

Profile
 
 
Posted: 28 November 2005 04:27 AM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12416
Joined  2002-04-29
giovanni - 27 November 2005 09:53 PM

Sue - I am a bit confused. How does pM know that your entry is #5?? 

When I created the post, I was able to see that the entry number is 5. This process is to create single pages based on a single weblog entry. For instance, entry #5 could be “About Us”, entry #6 could be “Terms of Use”, Entry #7 could be “Contact Us”.

And is this the basic premise to use in embedding an html page into a pM weblog entry? What i am thinking of doing is: A) to have a newsletter weblog as a pM page eg. newsletter.php. B) Do up an HTML newsletter outside of pM.. ie as standalone webpage eg. news.html >> which i wish to include into the WEBLOG portion of the php page. And also to be able to have users view jsut a simple html file. or to print it out… any advice appreciated

In the case of a Newsletter, you’ll want something that doesn’t use a single entry, but does use more than one.

Looking at my turkey template, I created recipes.php - it uses

<?php weblog_entries($id,$weblog); ?>

I pass the $weblog value using:

$weblog = “recipes”;

And you get:

Recipes Weblog

As far as printing out goes, you can use CSS for presentation. It’s been a while since I did that.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
 
 
Posted: 28 November 2005 02:45 PM   [ Ignore ]   [ # 11 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  303
Joined  2003-10-01
Sue - 28 November 2005 04:27 AM
giovanni - 27 November 2005 09:53 PM

In the case of a Newsletter, you’ll want something that doesn’t use a single entry, but does use more than one.

Looking at my turkey template, I created recipes.php - it uses

<?php weblog_entries($id,$weblog); ?>

I pass the $weblog value using:

$weblog = “recipes”;

And you get:

Recipes Weblog

As far as printing out goes, you can use CSS for presentation. It’s been a while since I did that.

Hi - i think i may not have explained myself correctly. based on the HTML emails that i get, i notice that they are all basically a _standalone_ html page. i can do that! But what i also want to have the very same page as $weblog= “newsletter” where i am just including the normal, sans-pmcode,  news1.html page into my $weblog =newsletter. next month i’ll have news2.html and will want to have it as an entry in my $weblog= “newsletter” section to be sure….but how do would i do this? Strip out the begining <html> and ending </html> from the news1.html file?  and include the striped down html file ? Include the whole page as is?
My thinking is that I can then mail out the stand-alone file : news1.html etc, and have a pM version archived on the pM site, and is therefore searchabe etc. Hope this all makes sense…

(ps i have not been able to get unsubsribe/subscribe functions to appear in my test emails out of the pM emailer option)

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 65019 Total Logged-in Users: 0
Total Topics: 82106 Total Anonymous Users: 0
Total Replies: 441242 Total Guests: 17
Total Posts: 523348    
Members ( View Memberlist )
Active Members: