i'm building pages that will go outside the forum and so far not having luck including the punbb header and footer on pages that are outside the root folder.

the code i'm using i found here.

this is what i have:

<?php
 
define('PUN_ROOT', 'http://www.theplatoon.com/drj/');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
 
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / Rules';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';
 
?>
    

Rules go here


<?php
 
require PUN_ROOT.'footer.php';

i'm assuming it has something to do with

define('PUN_ROOT', 'http://www.theplatoon.com/drj/');

what do i need to change it to in order for my links to be correct and for the page to display correctly?

using the unmodified code the pages work great inside the forum root folder.

1,002

(1 replies, posted in PunBB 1.2 show off)

http://punbb.org/forums/viewtopic.php?id=9051

yes they have it integrated very nicely with the rest of the site.

1,003

(4 replies, posted in PunBB 1.2 show off)

very nice. big_smile

1,004

(2 replies, posted in Feature requests)

http://www.wellstyled.com/tools

like the Pseudo-Czech Dummy Text Generator?

1,005

(1 replies, posted in PunBB 1.2 discussion)

http://punbb.org/downloads.php

in there is a Russian language pack. i think you will have to install your forums in English first and then turn on the Russian pack afterwards. not 100% positive on this so hopefully someone with better knowledge can correct me if i'm wrong.

good luck.

1,006

(1 replies, posted in PunBB 1.2 show off)

interesting color combonation. nice.

1,007

(3 replies, posted in General discussion)

404 error. Page not found.

1,008

(10 replies, posted in Programming)

i use snif also, just in dirs i don't need to control leeching more. both are great scripts.

1,009

(10 replies, posted in Programming)

while browsing some of my old hangouts i came across a script i just had to test out. it's called Autoindex. it's a, for lack of better terms, file manager. you'll just have to install it and give it a try.

http://autoindex.sourceforge.net/

Legend:
(+) Added feature
(!) Security bug fixed
(-) Bug fixed
(*) Improved/changed feature
( ) Non-code change



Version 2.1.2 (2005-Aug-11)
(-) Fixed bug when editing descriptions of filenames that have special characters
( ) Added Czech and Slovak translations

Version 2.1.1 (2005-Jul-06)
(!) Fixed bug with search box
( ) Added Swedish translation

Version 2.1.0 (2005-Feb-14)
(+) Added a .htaccess parser
(+) Added an FTP browser
(+) Added moderator and banned account levels
(+) Added a feature to let moderators/admins change their own password

Version 2.0.7 (2005-Jan-14)
(-) Fixed file_description feature

Version 2.0.6 (2005-Jan-04)
(+) Admins are able to copy files from other servers (similar to "wget")
( ) Added Thai and Arabic translations

Version 2.0.5 (2004-Sep-02)
(+) When force_download is on, the MIME-type sent depends on the file extension
(*) Using hidden_files to only show certain files no longer restricts directories

Version 2.0.4 (2004-Aug-17)
(*) When reconfiguring the script, the current settings are selected instead of the defaults
( ) Added Polish translation

Version 2.0.3 (2004-Jul-26)
(*) Nested if-statements can be used in the template files
(*) Folders do not have to be empty to be deleted

Version 2.0.2 (2004-Jul-13)
(*) All output is XHTML 1.1 compliant
(*) The do_every template command now does not include the last file listed

Version 2.0.1 (2004-Jul-05)
(+) Added directory cache feature
(*) Added include command to the template system
(-) Fixed search page bug when download_count was on

Version 2.0.0 (2004-Jun-24)

Complete rewrite from version 1.0:

    * Now uses PHP 5. PHP version 5.0 or higher is required.
    * All the features of version 1, plus:
      (+) Has a template system for all HTML output
      (+) Tar archives of directories can be downloaded
      (+) Each user account can have its own home directory
      (*) Passwords are stored as a sha-1 hash rather than md5 (this is slightly more secure)

i guess it wasn't that hard. big_smile

http://www.mysblog.com/

1,011

(3 replies, posted in PunBB 1.2 bug reports)

if you post a screenshot we could help you better since punbb does, by default, render just fine in all majot browsers including ie.

1,012

(11 replies, posted in PunBB 1.2 discussion)

nice write up.

1,013

(6 replies, posted in PunBB 1.2 show off)

suggestion: make it so the header and navbar don't have to refresh each and every page view. other than that you're golden.

1,014

(2 replies, posted in General discussion)

now that is a kick in the pants. nice find.

Connorhd wrote:

Depends, if its all database for storage then its easy, the more stuff it saves to files the harder as you obviously have to watch for conflicts. What CMS are you thinking of?

either sBlog, XOOPS or Frontpage PunBB, depends on the functionality i want my users to have. i meant to say cms/blog in my previous post. so it doesn't have to be just a cms.

@N!cklas: thanks! i'll check those out. BUT, i tend to stay clear of *nuke based stuff.

@Connorhd: how difficult would it be to create something like mypunbb for a cms instead of a forum?

1,017

(10 replies, posted in PunBB 1.2 discussion)

you have to use php includes not html but a part of the html you use for your homepage. just read the comments inside extern.php and it will explain it all.

example:

<html>
<head>
<title></title>
</head>

<body>
<?php include('http://domain.com/forums/extern.php?action=active'); ?>
</body>
</html>

1,018

(10 replies, posted in General discussion)

thank you.

Edit: He uses PunBB btw smile

i thought you meant the smiley guy... tongue

1,019

(10 replies, posted in General discussion)

that is some funny stuff.

side note: where do you find the user agent extension for ff 1.07?

side note 2: Rickard, you're a bit out of date here
http://www.foruminsider.com/index.php?a … mp;board=9

1,020

(121 replies, posted in PunBB 1.2 discussion)

morepork wrote:

I like the idea of calling them "pun-ins". smile

i like that.

1,021

(5 replies, posted in Feature requests)

http://punbb.org/forums/viewtopic.php?id=7293

accidents DO happen Connor, but i do agree that people need to read instructions a bit more than the norm. maybe a warning page to pop up and ask if you are sure you want to log out.

1,023

(2 replies, posted in PunBB 1.2 discussion)

you could install 1.2.9 and then upgrade from that to 1.3. i'm positive Rickard will make an upgrade script or you could, depending on your skill, apply the changes yourself using the hdiff.

1,024

(121 replies, posted in PunBB 1.2 discussion)

AWSOME!

very nice indeed. *thumbs*