How would one go about changing the color of the text for the "There are new messages" that show up in the header?

I tried doing this in css, but it still wouldn't work.  This is what I coded:

I added a block with a new class in the main.tpl and also set up a css for it in the main.tpl as well. It displays the block, but does not give it the 100% height.  I can specify a height in px and it will update that, but when I set it for 100% it does nothing. Here is my main.tpl right now. Any help is appreciated.

I can change the height to a specific amount of pixesl and sure enough, that box then extends down that many pixels, but I need it to dynamically fill that space to the footer no matter if it's 10 pixels or 3000 pixels.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
<style type="text/css">
    #left {
        width: 140px;
        float: left;
    }
    #main {
        margin-left: 150px;
    }
    #container {
        width: 100%;
        float: right;
        margin-left: -140px;
    }
    .sidebox {
        width: 140px;
        float: left;
        height: 100%;
    }
</style>
</head>
<body>

<div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <pun_title>
            <pun_desc>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>

<div id="container">
    <div id="main">
    
        <pun_announcement>
    
        <pun_main>
        
    </div>    
</div>

<div id="left">    
    <div class="block">
        <h2><span>Site Menu</span></h2>
        <div class="box">
        <pun_sidelinks>            
        </div>
    </div>
    <div class="block">
        <h2 class="block2"><span>Game Sites</span></h2>
        <div class="box">
            <div class="inbox">
                <ul>
                    <li><a href="http://www.nintendo.com">Nintendo</a></li>
                    <li><a href="http://www.nintendowifi.com/global/index.jsp">Nintendo WiFi</a></li>
                    <li><a href="http://etoychest.org">eToychest</a></li>
                    <li><a href="http://www.gamasutra.com/php-bin/news_index.php">GamaSutra</a></li>                
                </ul>        
            </div>
        </div>
    </div>
    <div class="block">
        <h2 class="block2"><span>Whos Online?</span></h2>
        <div class="box">
        <pun_online>
        </div>
    </div>
    <div class="block">
        <div class="box">
            <div class="inbox">
                <div class="sidebox">
                 
                </div>
            </div>
        </div>
    </div>
</div>

<div class="clearer"></div>

<pun_footer>

</div>
</div>

</body>
</html>

I am using ConnorHD's miniportal setup and it's very easy to set up and work with.  I really like it.  I would like to be able to do one thing though...

The side bar on the left. When you view a forum with a lot of topics on it, once you go past the blocks in the side bar, it's just the background color of the site. I'd like the background color of the boxes to continue all the way down to the bottom of the page where the footer is so I don't have this blank spot on the left side of the page.  Any help or ideas on how I can make that color go all the way down?

Thanks in advance.

Tubby wrote:

Its not hard.....jsut look at the code carefully its common sence......you dont even have to know the php language to figure this out. If you want the block to display if the user is a guest then all you do is add a if ($pun_user['is_guest'])
{ and then add in the block. This is hard to explain specificly and im not going to supply you with a free code i want you to be able to know how to do this for future use. All you do is look at the blocks code and simply copy the code and paste it and then remove its content and add in your own.......your gunna have to figure out where to add the code in for yourself. Its obviously gunna be after the original block.

Yeah well, like I said.  I think I have it right, just can't test it right now. I'll just have to wait till I get home tongue

Tubby wrote:

hmm it depends would you like this block to be a block on the sidebar or a main content block.

Either place.  If someone could just point out the specific spot...I'm pretty sure I have it right...I just haven't uploaded and tested it yet (stuck at work).

106

(38 replies, posted in PunBB 1.2 discussion)

Interesting.  I just figure it would have been much easier and better for the community to keep it all in one place. I don't know about the whole database thing, but it just would have been and still would be far easier if they were combined.

107

(38 replies, posted in PunBB 1.2 discussion)

I have a question for the people that have been using PunBB for a long time now.  I'm new to PunBB, love it and will continue to use it. I just want to voice a little something that has come up and made things hard to do for a new person to PunBB.

I'm sure there just has to be some reason for it....but why Punres?  Why split out all the modifications/troubleshooting/Q&A/advice and discussions out between two seperate websites. It can be very hard to track down the information you are looking for when it is split between the two sites and you have fumble/switch between the two. What happened to make the split?

Just doesn't seem like it was a good decision for the community on the whole.

108

(1 replies, posted in PunBB 1.2 discussion)

I'm not sure if this has been brought up before or not...but it is an idea.

There are 3 or 4 different versions or ways to add in a Portal to your PunBB site.  They all do different things and supply you with different things...you know how it is. 

One of them comes with a lot of blocks and other stuff built in. Puntal.  I tried to install it and I got errors, but since much of the support, etc. is in a different language I decided to try and not sift through and translate everything and try to figure out what went wrong.  I just got rid of it.

What I think would help a lot of people develop their own portal and what they want on it is if someone put together a single post that includes the code for different boxes and what they do. You know, this code adds a top 10 most recent posts to your portal sidebar and then give the code. Doesn't seem that something like this would be too hard to do and in the end, would be a huge help to the community.

What do you all think?

Edit - I thought of this and thought it would be good to add as I like to use Drupal and they have an entire page dedicated to php snippets, blocks and pages that you can use in Drupal to do various things. A single place that lists a lot of the good/major code that people would want to use. It would be awesome if PunBB did the same.

I already know that I am going to feel and look really stupid for asking this, but I was doing some more work with this mod and I have a question. When you are adding a block in to do whatever it is you want, you add it in to the index.php that this mod provides...

Where do you add it in at?

110

(20 replies, posted in Feature requests)

You know...you are right.  I wonder if that will make a difference or not.  I remember when I first signed up that it instructed you to put it in the <head>  I think I'll move to the end of the <body> and see if that makes any difference or not.

111

(20 replies, posted in Feature requests)

I can tell you from experience on my other sites that you do sometimes get a little longer load time. If you spend a lot of time on your site (which I do...it's my site, right?) you will sometimes see the screen pausing for a second. In your status bar, it says it is contacting google-analytics. It pauses for about 2 full seconds and then the page loads as quick as normal. I have seen this on 3 different sites that I run and all 3 use Google Analytics. I wasn't sure though if it may have been something with Drupal. I used it on those three sites (I kinda like Drupal, easy to work with).

Now though, I just put the script in my PunBB site and I was just surfing my site and I just experienced the exact same thing. So I know it has nothing to do with Drupal, it's Google Analytics.  I love Google Analytics, but I may pull the code out due to the occasional slow page load.

112

(20 replies, posted in Feature requests)

Dr.Jeckyl wrote:

yes. i did the same thing but with mint and i got back a mountain of stats.

Do you still use it?  PunBB is very fast and occasionally I see this little google script slow my other sites down...does that happen with you?

113

(20 replies, posted in Feature requests)

Smartys wrote:

Add it to main.tpl

I was wondering if there wasn't an easy place to add it in.  I can put it in there and it will be used on all pages for the forums, right?

114

(20 replies, posted in Feature requests)

I'm sure many of you are familiar with Google Analytics.  I use this service on some of my sites and I really like the way it displays and tracks users and allows you to set goals.

Has anyone tried or maybe found a way (a plugin I think would be easiest, but I'm not a coding guru) to make a simple way to add in the Google tracking to your punbb site?  I use Drupal on a few sites and they have a simple mod that allows you to just enter your Analytic ID and it inserts it on all the pages for you. 

Can something like this be done for PunBB?

Just seems like a convenient thing to do with the miniportals and what not that allow you to in essence, create a website straight out of punbb.

Edit #2:  Would you be able to add their script that they give you to one of the tpl pages or something like that?

115

(19 replies, posted in General discussion)

Paul wrote:
Smartys wrote:

There are tradeoffs with every free host

The main tradeoff being if its free you don't have any right to complain and your lawyers can't talk to their lawyers.

lol.  That was just pure comedic genius I say smile

116

(17 replies, posted in General discussion)

Paul wrote:

Opera 8.5 had bugs, specifically it wouldn't position elements properly without dimensions on them. Opera 9 is much better than 8.5.

That was probably my problem then when I was doing that website. I haven't tried Opera 9...I might download and check it out.

117

(17 replies, posted in General discussion)

It's been a while (a few months), but I was coding a website. After it was all said and done, it checked it against WC3 verification to make sure it was all compliant with all the standards.

YAY for me!  It was!  *pats himself on the back*

Open it up in FireFox (my normal browser) and it displayed just perfectly.  Opened it in IE and I had a minor glitch, but it was a box handling bit with how IE works with css.  I had a feeling it would do that and I know how to "trick/hack/whatever you choose to call it" IE with correct css. Open it in Opera and it didn't even center my link bar properly.  The bar was in the right place, but all the links were off and smushed together. But hey...the code checked out perfectly with WC3.  I never did figure it out and after I did some asking around, I was just told that this was how Opera displayed CSS/tables and it wasn't the same as WC3.

As we all know, this is just going to lead in to more browser/development problems.  This was with Opera 8.5...the free version (I refuse to pay money for a web browser). I haven't tried Opera 9...

118

(17 replies, posted in General discussion)

Rickard wrote:

Nice. Opera deserves more credit than it gets.

True, but the way it renders some CSS and stuff like that keeps me away from it.  But it does have a lot of great features that I wish FireFox would use.

119

(3 replies, posted in PunBB 1.2 show off)

Looks nice.  I like the links list on the top right.

I dropped you an email as well concerning this.  Thanks again Smartys.

Thanks Smartys.  I'm not sure what other forum softwares allow for when it comes to Private Messaging.  I know that being able to view PM's is a little...touchy to say the least as to invading privacy.  But I guess the website is mine, I pay for it and they are using my site. I feel I should be able to monitor it for abuse as needed. (I have had this person forward me a particular PM, but I'm not sure if it was edited or not. The offending person is someone I have known for sometime and I don't see them doing this kind of thing, but that may or may not mean anything).

A search would be good and the page layout can be just the same as the normal inbox view and such. Being able to delete them and even a mass deleting function would be very handy as well. The PM mod does have subjects...in fact the PM's look just like a post, just private to the intended user. Letting it sort by time descending would work just fine. I can also refine the search if needed.

The only thing I think I need is to be able to view the inbox of the users is all.  Global access I guess. Maybe a notification...say X user receives a PM, I could get an email to let me know so I can check it.

If something like this works, I would make an announcement that I can check and verify these things for abuse reasons...hell, maybe just bluffing about it might make them stop if it's true. I might try that as well...

On a side note, the only other thing that the private message mod needs is checkboxes to delete multiple messages at once wink

Out of curiosity, I would like to know if this is at all possible.

Is there any way for the administrator (me) to be able to view/monitor Private Messages sent on my website?  For security and abuse reasons, this could come in handy and it was brought up to me that I may need to be able to do this as I think I have a user harassing a different user (would like to try and confirm, get proof).

I don't have shell access to my server as it is not hosted at home. It's a virtual server, but I do have a fair amount of access to do things. This webhost does not block and try to restrict me very much...I do have phpmyadmin to look at the sql database.

Is there anything I can look at or do...mod in any way to be able to view the private messages of the users on my board?

124

(7 replies, posted in PunBB 1.2 show off)

I don't know...I personally kind of like that color scheme. It's different, but it is soft on the eyes...doesn't hurt to look at at least.

Kato wrote:
Mr Puto wrote:

Thats because you have to add it to: lang/YOURLANGUAGE/common.php

hhmm...mind explaining that one just a bit more for php impaired? wink

NM.  dumb question smile