1

(2 replies, posted in PunBB 1.2 troubleshooting)

I'm pretty sure, I have the

define('PUN_ROOT', './forum/');                             /* Where the root folder is */
require PUN_ROOT.'include/common.php';                      /* Get the file "include/common.php" */

on the top of my index.php page too.

I have no idea why it's doing it but the g_id just will not recognise the change when someone is logged in, it just remains at 3.
It worked on index.php, all i did was to copy it and move it to user_panel.php which is what you see above ^ and i included the user_panel to where the old code was.

Goto your root folder, find 'Include' then goto 'Template'. There will be a few .tpl files.
Edit the 'main.tpl' file.

You will need to remove the following:

<pun_title>
<pun_desc>

3

(2 replies, posted in PunBB 1.2 troubleshooting)

Hey,
my site: www.the44th.co.uk

If you look in the bottom right hand corner of both the index.php and members.php page. You will notice a 'User Panel'.

This panel is a simple if-else statement checking if the user is a guest or not and then a switch within the else to define different access.

I originally had this hard-coded into the index.php page, but as I recently added it to the members.php page so I saw the benefits of using an include instead to help with editing.

The problem I now have it that the panel does not want to recognise when people are logged in. I've printed the variable $pun_user['g_id']; which you can see is "3" (Guest) and it does not change even when people are logged in and their g_id should be different.




<?php


define('PUN_ROOT', './forum/');                             /* Where the root folder is */
require PUN_ROOT.'include/common.php';                      /* Get the file "include/common.php" */

                   
                       
                          /* Logged in / Logged out section */


   print $pun_user['g_id'];

   if ( $pun_user['g_id'] == 3 ) { 

         ?>
       
          /* Some HTML */

        <?

  }

   else {
    
      ?>

         /* HTML & Switch */

       <?

 }

                          /* End of Logged in / logged out section */

?>

Any help will be much appreciated. Thanks.

On another note, there are a few problems with the index.php when it's viewed in firefox atm, i'll be fixing that soon.

Nix.

Hey, i've done quite a lot since i last posted.

- I've intergrated into the site (mainly on www.the44th.co.uk/index.php).
- Created my own basic login feature (uses pun variables). With a basic options panel (edit profile, logout and group ID specific 'admin panel') etc.
- Added latest topics list.
- Added 'Announcements' and 'News'.
- Created new links above the forum (Forum Rules, FAQ, Disclaimer)
- Installed and configed the coloured usergroups mod. (User list remains plain)

- On top of all that, i've edited the site quite a bit.

I'd love to know what you think. Thanks alot.

Nix.

6

(1 replies, posted in PunBB 1.2 show off)

hey, my forum: http://www.the44th.co.uk.
you can still see the site is a work in progress, let me know what you think smile

I think i've got it now dunno where it went wrong, but tried it again (3rd time) and all is well, been editing the css for some time now, check out my forum if you want. http://www.the44th.co.uk/forum

I tried to set the new theme in the admin options but it still kept reverting. Hence why i decided to edit over the oxygen.css etc/

I've already changed the imports.

I just don't understand why the tables that the forum sits in just disappear when i change the colours.
I'm not tampering with the css at all. Just changing colour codes and it kills the forum template?

My site: http://www.the44th.co.uk/

Hey, i've installed my forum and created a template in the main.tcl file. This all works.
The next step i wanted to was to change the 'style'.
I figured out that this was done with the stylesheets (.css)...

The first thing i did was to create my 'own' .css files "44thER.css" & "44thER_cs.css" etc.
I tried loading the template from the admin panel, this worked but caused problems as the forum seems to like to revert back to the default theme.

The next step i took was to basically, edit over the default "Oxygen" .css files (i make backups). I ONLY changed the colour's i.e. F1F1F1 became: 202020 etc.

I uploaded into the right directories on my website, and refreshed. The colour's i had specified worked, the problem i have is that the table-style template the forum works from had disappeared. It looked like a site-map... I have no idead why this was as i only edited the colour codes and didn't interfer with the .css itself with anyway.

At the moment, i've reverted back to default .css sheets and now i'm posting here... any help would be great.