PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#1 2009-07-23 10:14:14

Ricky
New member
Registered: 2009-07-23
Posts: 6

Integration with Magento Store

Hi there,

I design, develop and manage the Website which we have for the Company I work for.
I would like to integrate this page: http://www.pgbranding.com/forum/ (Where the PunBB forum is set-up)
into this page: http://www.pgbranding.com/forums/ (A page created within the Magento CMS)

Does anyone have any idea or suggestions as to how I can do this?

Thanks very much,

Ricky

Offline

 

#2 2009-07-23 10:43:44

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 415

Re: Integration with Magento Store

http://wiki.punres.net/PunBB_FAQ#How_do … website.3F

With regards to your other question regarding the fancy URL's, btw, you're running 1.3. That has support for URL rewriting built in. You just need to enable it in the admin section and enable rewriting in your webserver.

Offline

 

#3 2009-07-23 10:49:45

Ricky
New member
Registered: 2009-07-23
Posts: 6

Re: Integration with Magento Store

Thanks Matt,

How do I enable rewriting in my webserver?

Cheers

Edit
I've sorted the URL Re-write, cheers.

I still don't understand the integration. I tried to add a header script, which our Website uses, within the main.tpl file using:

Code:

<pun_include "http://pgbranding.com/var/www/html/app/design/frontend/default/pgbranding/template/page/header.phtml">

(phtml is the file extension of the script)
But it didn't work.

Last edited by Ricky (2009-07-23 11:16:33)

Offline

 

#4 2009-07-23 13:55:59

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 415

Re: Integration with Magento Store

<pun_include is the old 1.2* style syntax. Check over on the PunBB site for the new 1.3* syntax. I can't remember what exactly it is, offhand.

Offline

 

#5 2009-07-24 09:40:17

Ricky
New member
Registered: 2009-07-23
Posts: 6

Re: Integration with Magento Store

Ok, I've had a few problems with this, some of which I have overcome by searching for snippets of PHP (I don't know PHP very well at all, but understand it's functionality and where to place it etc - I just can't write it).

I had to put this in the main.tpl file, because any file I forum_include has to be located in the include/user/ directory.
<!-- forum_include "include.php" -->

Within the include.php file, located in the include/user/ directory, I put:
<?php
include_once ".../../../app/design/frontend/default/pgbranding/template/page/html/header.phtml"; //
include_once ".../../../app/design/frontend/default/pgbranding/template/page/header.phtml"; //
?>


This then integrates the files which I am trying to use with main.tpl. However, header.phtml relies on other php files within the website's file directories in order for it to work.
Currently, the files which header.phtml relies on aren't being found or used when integrated with main.tpl, and therefore header.phtml isn't working when integrated with the forum.

I hope someone understands my problem, and can forward me in another direction!

Thanks a lot,

Ricky

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.