51

(11 replies, posted in PunBB 1.2 discussion)

As I understand it, form mail in PunBB doesn't reveal the email address of the person that receives the message, just that of the sender. So users retain their anonymity. I suppose they can still be spammed via form mail.

Does PunBB have a flood/spam limit?
Can you only send so many form-mail messages in a minute?

--Alan

52

(11 replies, posted in PunBB 1.2 discussion)

Thanks Helter (Danny?)

My point is that I can now see that a PM system is unnecessary!
To have as an optional mod/plugin is fine, but I'm now siding with those that say that it shouldn't be an integral part of the base installation of PunBB.

--Alan

53

(11 replies, posted in PunBB 1.2 discussion)

When I first discovered PunBB I was very impressed but disappointed to see a lack of built in PM system.

I've since installed PunBB on my main site (and 1 other) and I can honestly say that despite having thousands of active users, we haven't missed having a PM system at all. Everyone just sends form mail, which is actually more efficient.

I bow to your superior judgement Rickard (but I won't be eating my hat!).

--Alan

Ok don't laugh but I really like the javascript snow that people put on their sites this time of year.
Yes, they all seem to consume 100% CPU when running but they look so cool!

Anyway, the best one I've found is the one shown below which doesn't seem to want to play nicely with PunBB. Can anyone with better JS/DOM knowledge than me (everyone!) explain why when integrated with PunBB this seems to draw all the snowflakes in one place, top-left of the containing DIV?

I've tried putting in the head/body/containing div etc. but to no avail.

I KNOW it's not a PunBB thing, but it's nearly xmas and I'd like for it to snow on my PunBB Boards!

--Alan


<script>
// CREDITS:
// Snowmaker
// By Peter Gehrig
// Copyright (c) 2003 Peter Gehrig. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com
// info@24fun.com
// 11/27/2003

// IMPORTANT:
// If you add this script to a script-library or script-archive
// you have to add a highly visible link to
// http://www.24fun.com on the webpage
// where this script will be featured

///////////////////////////////////////////////////////////////////////////
// CONFIGURATION STARTS HERE
///////////////////////////////////////////////////////////////////////////

// Set the number of snowflakes (more than 30 - 40 not recommended)
var snowmax=35

// Set the colors for the snow. Add as many colors as you like
var snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD")

// Set the fonts, that create the snowflakes. Add as many fonts as you like
var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS")

// Set the letter that creates your snowflake (recommended:*)
var snowletter="*"

// Set the speed of sinking (recommended values range from 0.3 to 2)
var sinkspeed=0.6

// Set the maximal-size of your snowflaxes
var snowmaxsize=30

// Set the minimal-size of your snowflaxes
var snowminsize=8

// Set the snowing-zone
// Set 1 for all-over-snowing, set 2 for left-side-snowing 
// Set 3 for center-snowing, set 4 for right-side-snowing
var snowingzone=1

///////////////////////////////////////////////////////////////////////////
// CONFIGURATION ENDS HERE
///////////////////////////////////////////////////////////////////////////


// Do not edit below this line
var snow=new Array()
var marginbottom
var marginright
var timer
var i_snow=0
var x_mv=new Array();
var crds=new Array();
var lftrght=new Array();
var browserinfos=navigator.userAgent 
var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/)
var ns6=document.getElementById&&!document.all
var opera=browserinfos.match(/Opera/)  
var browserok=ie5||ns6||opera

function randommaker(range) {        
    rand=Math.floor(range*Math.random())
    return rand
}

function initsnow() {
    if (ie5 || opera) {
        marginbottom = document.body.clientHeight
        marginright = document.body.clientWidth
    }
    else if (ns6) {
        marginbottom = window.innerHeight
        marginright = window.innerWidth
    }
    var snowsizerange=snowmaxsize-snowminsize
    for (i=0;i<=snowmax;i++) {
        crds[i] = 0;                      
        lftrght[i] = Math.random()*15;         
        x_mv[i] = 0.03 + Math.random()/10;
        snow[i]=document.getElementById("s"+i)
        snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)]
        snow[i].size=randommaker(snowsizerange)+snowminsize
        snow[i].style.fontSize=snow[i].size
        snow[i].style.color=snowcolor[randommaker(snowcolor.length)]
        snow[i].sink=sinkspeed*snow[i].size/5
        if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
        if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
        if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
        if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
        snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size)
        snow[i].style.left=snow[i].posx
        snow[i].style.top=snow[i].posy
    }
    movesnow()
}

function movesnow() {
    for (i=0;i<=snowmax;i++) {
        crds[i] += x_mv[i];
        snow[i].posy+=snow[i].sink
        snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]);
        snow[i].style.top=snow[i].posy
        
        if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){
            if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
            if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
            if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
            if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
            snow[i].posy=0
        }
    }
    var timer=setTimeout("movesnow()",50)
}

for (i=0;i<=snowmax;i++) {
    document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>")
}
if (browserok) {
    window.onload=initsnow
}
</script>

55

(16 replies, posted in PunBB 1.2 troubleshooting)

I was asking (before Vanslyde hijacked my thread tongue ) for help with another unwanted gap below the box containing posts in viewtopic..

http://www.medwaymadness.co.uk/messageb … php?id=489

Any ideas?

Thanks

--Alan

I've just removed the 'clear: right;' but to no avail.

Why wouldn't my online list show in IE7?!!
Is that a usual PunBB thing or have I broken it?

Thanks for your help.

--Alan

57

(16 replies, posted in PunBB 1.2 troubleshooting)

I've noticed that I've got a similar problem to the orginal one I posted in this thread.
It's another unwanted gap below the box containing posts in viewtopic..

here: http://www.medwaymadness.co.uk/messageb … php?id=489

Any ideas how I can get rid of this one?

--Alan

Hi

I'd appreciate some CSS help. I've added a login box:

    <div class="sline">
        <form id="login" method="post" action="./login.php?action=in" onsubmit="return process_form(this)">

            <input type="hidden" name="form_sent" value="1" />
            <input type="hidden" name="redirect_url" value="/messageboard/viewforum.php?id=5" />
            <label for="req_username">Username: </label>
            <input type="text" id="req_username" name="req_username" size="4" maxlength="25" />
            <label for="req_password">Password: </label>
            <input type="password" id="req_password" name="req_password" size="4" maxlength="16" />
            <input type="submit" name="login" value="Login" />
            [<a href="./register.php">Register</a>] 
            </form>
    </div>

Which is inserted in the same container div as the board with this CSS:

.sline {width:325px;height:22px;background:#FFFFFF;text-align:center;float:right;clear:right;color:#595D66;}
.sline p{font-size:10px;padding:4px 0 0 5px;font-weight:bold;margin:0;}
.sline form{font-size:10px;padding:4px 0 3px 5px;font-weight:bold;margin:0;}
.sline input{margin:0;padding:0;font-size:10px;}
.sline a{color:#595D66; text-decoration:underline}

Which all looks fine in Firefox, but in IE it forces the rest of the forum to the left of it.
I imagine this is an IE bug but I'm struggling to work around it.

See here: http://www.medwaymadness.co.uk/messageboard/

Any advice would be appreciated.

--Alan

59

(9 replies, posted in PunBB 1.2 troubleshooting)

Thanks!

Should I bother mentioning it as a feature request?

--Alan

When using extern.php to display a post that starts with a quote, eg.

This is a quote

This is normal text.

The output from extern.php is:

ockquote><div class="incqbox"><p>This is a quote</p></div></blockquote><p>This is normal text.

so you end up with the post starting:

ockquote>

Any ideas what could be causing this? Some iffy parsing?

--Alan

61

(9 replies, posted in PunBB 1.2 troubleshooting)

I found the solution in this thread (thanks ontap).

In login.php
Line 102

replace
    redirect('index.php', $lang_login['Logout redirect']);

with
    redirect($_SERVER['HTTP_REFERER'], $lang_login['Logout redirect']);

Simple!

I think this would be an ideal feature request/change as it makes sense that you're always returned to the page you logged out from.
Agree?

--Alan

Michael

It's a very useful plugin, unfortunately it doesn't work for me when saving to the filesystem:

"Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 1960 bytes) in /**/**/**/messageboard/plugins/AP_Backup.php on line 101"

My database is 83.24 MB.

Any help in getting it to work would be appreciated.

--Alan

I knew that's what you meant, I just couldn't find the option in PhpMyAdmin so I was hoping to get around it.
Found it now though and it's done the trick!

Thank you.

--Alan

64

(9 replies, posted in PunBB 1.2 troubleshooting)

Yup, and somebody did post code on here somewhere of how to do that, but I'm damned if I can find it.
This is a fix that I've previously used, doh!

Thanks for your help.

--Alan

65

(9 replies, posted in PunBB 1.2 troubleshooting)

ok, found that but what do I do with it?

Login works fine, but when I logout I'm automatically returned to the messageboard and not to the page from which I logged out.

Does that make more sense?

--Alan

Can I just rebuild the search index? Will that do it?

--Alan

A while ago I found a post on here that helped me insert a login/logout form on the rest of my site.
I now can't find that post and think I need to change something as when I logout the redirect often doesn't return the browser to the correct URL.

Anyone know how to fix that problem?

--Alan

When I try to post:

An error was encountered
File: *******/public_html/messageboard/include/search_idx.php
Line: 183

PunBB reported: Unable to insert search index word matches

Database reported: Can't open file: 'punbb_search_matches.MYI' (errno: 145) (Errno: 1016)

When I try to delete a post:

An error was encountered
File: ******/public_html/messageboard/include/search_idx.php
Line: 202

PunBB reported: Unable to fetch search index word match

Database reported: Can't open file: 'punbb_search_matches.MYI' (errno: 145) (Errno: 1016)

Any ideas?

--Alan

69

(2 replies, posted in PunBB 1.2 discussion)

I've just added adsense adverts to my PunBB messageboard and the adverts are for PhpBB!!
I wonder if the sponsors of PhpBB are payin for adwords on 'punbb' ?!?!

Don't worry, I won't be going back wink

--Alan

Hi

Just today I'm getting lots of problems with:

"Unable to insert search index word matches."

When I try and post.

and

"Error: Unable to fetch search index word match."

When I try and delete messages.

Query   | 2297  | Locked       | SELECT m.post_id FROM punbb_search_words AS w INNER JOIN punbb_search_matches AS m ON m.word_id = w. |
| 701322 | *database name*      | localhost         

Some issue with locking?

--Alan

How do I add columns incorrectly?!

--Alan

72

(16 replies, posted in PunBB 1.2 troubleshooting)

Paul

You're a star, that's done the trick.

Thank you.

--Alan

73

(16 replies, posted in PunBB 1.2 troubleshooting)

If you take a look at my messageboard (www.tv-cards.com) then you'll see that there's an unwanted gap below the box containing the forum categories. I can't for the life of me work out which css element is causing it or how to get rid of it!

Any help in pinning down the offending margin/padding would be appreciated.

--Alan

How can I add an extra field to people's profile to allow them to specify that they are happy to receive email from me (the admin/owner).

I think it was specifically asked on sign-up in PhpBB and my hosts insist that I give people the option to opt-out.

Is there a mod to do this?
Is it simple to add a tickbox to an existing profile form?
Does it cause any problems to add fields to the member table?

Thanks!

--Alan
(www.tv-cards.com)

Yup, I'm trying to sort out that IE problem now!
(I hate IE)

--Alan