You are here:  » Wordpress or Joomla as a shell around PT

Support Forum



Wordpress or Joomla as a shell around PT

Submitted by Al on Fri, 2009-01-30 16:59 in

Hello everyone,

As I am not an expert on programming, I would like to know the following. There are some topics about this in the forum, however, they do not answer all my questions.

I am looking for a fool proof 'shell' (or wrapping) around PT.

With programms like Wordpress it is easy to make menu's and layouts for a website, by adding modules. But when I read this forum, I see a lot of snacks, implementing PT in Wordpress. I have tried it, but it comes up with error messages, like conflicts in 'translate' or 'javascript pointing'...etc.
Maybe Joomla works better?
(I know about the PT templates, but they do not contain what I want.)

I would like to easily change the layout of my site. PT in the middle, left and right columns, which I can fill in with ads or a menu structure.

I did not try Joomla yet, would that be a solution? Or does it require a lot of editing in PT?

Best regards,
Al

Submitted by support on Fri, 2009-01-30 18:21

Hello Al,

I can understand various other reasons why you might want the features of a CMS for your main site; however if you are more interested in just being able to add your own content left and right; it is quite easy to do this just by adding 2 files to the /html/ folder of your site. These files - user_header_after.php and user_footer_before.php can be setup to create a table layout that will let you add content to the left and right; with the main Price Tapestry content in the middle. Start with this:

html/user_header_after.php

<table width='100%'>
  <tr>
    <td valign='top' width='150'>
      <!-- insert your left column HTML here, you can use PHP tags -->
    </td>
    <td valign='top'>

html/user_footer_before.php

    </td>
    <td valign='top' width='150'>
      <!-- insert your right column HTML here, you can use PHP tags -->
    </td>
  </tr>
</table>

Hope this helps!

Cheers,
David.

Submitted by Al on Fri, 2009-01-30 19:43

I already have a user_footer_before.php in use... Modified, also in the header.php
It shows the latest reviews at the bottem of my page.
Any other way to show left and/or right columns?

<hr />
  <div class='beoordeeld'>
 <p align='center' ><a><b>Latest reviews:</b></a></p><br/>
 </div>
 <?php
  //reviews
 $sql = "SELECT * FROM `".$config_databaseTablePrefix."reviews` WHERE approved > 0 ORDER BY created DESC LIMIT 7";
  if (database_querySelect($sql,$rows))
  {
    foreach($rows as $review)
    {
      print "<p>";
      if ($config_useRewrite)
      {
        $href = $config_baseHREF."product/".tapestry_hyphenate($review["product_name"])."/";
      print tapestry_stars($review["rating"]);
        }
      else
      {
        $href = $config_baseHREF."products.php?q=".urlencode($review["product_name"]);
        print tapestry_stars($review["rating"]);
      }
      print "<a href='".$href."'>".$review["product_name"]."</a>";
      print "<br />";
      print $review["comments"];
      print "</p>";
    }
  }
  //einde productbeoordeling
  ?>
<br /><br />
<hr />
    </td>
  </tr>
    </table>

Submitted by support on Sat, 2009-01-31 09:03

Hello Al,

There's no reason why you couldn't modify these files further to create the columns and keep the reviews part of user_footer_before.php in place. If you're not sure; feel free to email me your existing user_header_after.php and user_footer_before.php (also header.php if you have modified it) and i'll take a look for you...

Cheers,
David.