151

(6 replies, posted in Feature requests)

link should work again (although, i think i got your e-mail)

152

(19 replies, posted in PunBB 1.2 discussion)

<-- Running lighttpd+sqlite3 (I coded the db layer to support sqlite3 myself, can't garantee it's 1.2.14 compatible, but it should work afaik)

Been a while since I last posted here... Anywhos, somewhere on these forums you'll probably run into "pdosqlite3 dblayer" or something along them lines. Download the tarball and follow the directions to add support for sqlite3 databases (which add a few improvements to sqlite 2 databases, the default with punbb 1.x). Converting from sqlite to sqlite3 is easy from a shell:

sqlite forum.db2 ".dump" | sqlite3 forum.db3

I've had a few problems with my computer and my time the past few months, and I am making the move to mysql (only because my e-mail server requires it; and because it's just as easy to backup the database iff you have shell access; and because of async requests - if sqlite3 supported async read/writing i'd probably stick with sqlite though tongue). So if anyone wants to take over the sqlite3 db layer "mod" your welcome to it.

EDIT --

Found it, here's a link to the topic:
http://punbb.org/forums/viewtopic.php?id=13123

And here's one to the tarball:
https://robshouse.no-ip.info/pdosqlite.tar.bz2

If the link doesn't work, I've probably buggered something up in my firewall config, so just post and tell me. I don't really have a computer outside the firewall to test with ;.;

EDIT --

Ohh, just to say, the reason I started to use punbb was because it supported SQLite. I started with lighttpd, then moved on to choosing a database, and finally choose a forum that supported my database (I think punbb is the only open source forum project that does, or at least the only one that will work ^.~).

SQLite(3, and 2 afaik) can do async read requests. It get's into trouble with major traffic if there is a write request. For the duration of that single write request, each read and/or write request will probably fail; From what I remeber both my version and the original version of the sqlite db layer set-up read/write access on every php page, and the translates into each single request being required to close before the next request for a page is allowed to be opened (or times out). Although, if you were crazy and felt like a quick hack, you ~could~ re-implement all the sqlite dblayer functions to retry on fail every 1 seconds for 15 seconds, and only open the db as read until a write statement is found. Since both 2 and 3 support the BEGIN TRANSACTION, COMMIT and ROLLBACK SQL statements this would be close to trivial, except for the parsing of each statement (which could be a SELECT or could be a UPDATE or any number of commands that may or may not require write access).

I personally feel that a more abstract DB layer should be made on top of the current layer. This would mean more CPU usage server side, but could facilitate database support for modules. http://punbb.org/forums/viewtopic.php?id=13125 for a fuller view of what I'm trying to say in to many mumbled words, and a few reasons why not to do it too ~.^ Also with this type of db layer databases could be opened and closed depending on which sql statement is about to be executed. Allowing a "only reading from db" php page to only open for reading. I think index.php, search.php and viewforum.php are the only pages that are read-only, but they are also probably the most used pages on any forum.

lol, sorry for the triple edit... seems my short post turned into a long one, but I have a few months of silence to make up for tongue

Adding colums to a table won't cause any problems, if you do it correctly that is tongue and adding a checkbox to the profiles isn't to hard. Just copy and paste then rename, and make sure to add in the new value to the select and update queries.

154

(5 replies, posted in PunBB 1.2 discussion)

copy and paste? tongue

If there isn't an import for google, then have fun copyin' and pastin'. If there is an import, then I think your going to have to ask elsewere for a way to export a punbb database to a compatible format.

155

(3 replies, posted in PunBB 1.2 troubleshooting)

//
// Set a cookie, PunBB style!
//
function pun_setcookie($user_id, reedfatal_hash, $expire)
{

to


//
// Set a cookie, PunBB style!
//
function pun_setcookie($user_id, $reedfatal_hash, $expire)
{

line 135, just like the error suggests roll

Strofanto already answered your question.

open include/functions.php

and look for the part that turns http://address into <a href="http://address">address</a>
Now, in the <a href="blah"> change it to <a target="_blank" href="blah">

Easy stuff big_smile

You could always right a mod to make "moved to" topics in the requested forum(s). It's a simple cheap way to solve the problem. If you were really gutsy you could expand on it and add a colum to the topics table to have "linked" topic redirects in multiple forums.

For now you can just move the topic to each forum you wanted a redirect in, but I'm not sure how many moves a topic can go through. Also I believe there is a small bug with moved topics that causes the last few topics in said forum to not show up in the list (iff they span multiple pages).

158

(15 replies, posted in PunBB 1.2 troubleshooting)

Mark wrote:
qie wrote:

change the uselist.php 's name

why??

Because if I wanted to see his userlist as a guest and didn't see the link, I'd type in <forumaddress>/userlist.php

Ofcourse there is a better way, that's been discused before. erick_p, use the forum search tool and you'll find it... the topic was active yesterday or the day before and was about the same thing your asking...

Why people never use search, I don't know... The least they could do is say that they where to lazy to use search...

Try to disallow guest access to your more popular forums. Allows guest view access to only a few of your forums. True enough this stops search crawlers, but it also stops unwanted guests as well.

I was about to say, it looks like half of line 186 is missing tongue
G'Luck with punBB big_smile

161

(2 replies, posted in PunBB 1.2 troubleshooting)

Hummm...

postleft.div { float: left; width: 170px}
postright.div { margin-left: 180px }

But I've hurd IE doesn't like this... Might be another (polite) way to do this...

Just post your problems and we might be able to help... It's a much more efficient way to get helped since you have more people working on your problem...

I've never seen the mod, but I'm guessing it just reads the "user" table and looks for the lastonline value (or something along them lines... forget the real name of it). Well after finding that date it ignores anything that isn't from today. I think the time is stored as ticks since the Epoch, so alls you have to do is change that test to look for dates from or after CurrentTicksSinceEpoch - ((60 * 60) * 24). Course that's just a guess, give it a try and post if you get problems tongue

164

(7 replies, posted in PunBB 1.2 troubleshooting)

What's the css look like? maybe there's a typo? have a link? and what colors were yah going for? blue text grey background and red links?

This would be nice too... in include/functions.php

//
// Generate the "navigator" that appears at the top of every page
//
function generate_navlinks()
{
    global $pun_config, $lang_common, $pun_user;

    // Index and Userlist should always be displayed
    $links[] = '<li id="navindex"><a href="index.php">'.$lang_common['Index'].'</a>';
    $links[] = '<li id="navuserlist"><a href="userlist.php">'.$lang_common['User list'].'</a>';

    if ($pun_config['o_rules'] == '1')
        $links[] = '<li id="navrules"><a href="misc.php?action=rules">'.$lang_common['Rules'].'</a>';

    if ($pun_user['is_guest'])
    {
        if ($pun_user['g_search'] == '1')
            $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';

        $links[] = '<li id="navregister"><a href="register.php">'.$lang_common['Register'].'</a>';
        $links[] = '<li id="navlogin"><a href="login.php">'.$lang_common['Login'].'</a>';

        $info = $lang_common['Not logged in'];
    }
    else
    {
        if ($pun_user['g_id'] > PUN_MOD)
        {
            if ($pun_user['g_search'] == '1')
                $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';

##
##----------- Replace with
##

//
// Generate the "navigator" that appears at the top of every page
//
function generate_navlinks()
{
    global $pun_config, $lang_common, $pun_user;

    // Index and Userlist should always be displayed
    $links[] = '<li id="navindex"><a href="index.php">'.$lang_common['Index'].'</a>';

    if ($pun_config['o_rules'] == '1')
        $links[] = '<li id="navrules"><a href="misc.php?action=rules">'.$lang_common['Rules'].'</a>';

    if ($pun_user['is_guest'])
    {
        if ($pun_user['g_search'] == '1')
            $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';

        $links[] = '<li id="navregister"><a href="register.php">'.$lang_common['Register'].'</a>';
        $links[] = '<li id="navlogin"><a href="login.php">'.$lang_common['Login'].'</a>';

        $info = $lang_common['Not logged in'];
    }
    else
    {
        if ($pun_user['g_id'] > PUN_MOD)
        {
            $links[] = '<li id="navuserlist"><a href="userlist.php">'.$lang_common['User list'].'</a>';

            if ($pun_user['g_search'] == '1')
                $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';

Course you can use your imaginations with this tongue Maybe only users who can search can see user list? Whatever you want big_smile

166

(4 replies, posted in PunBB 1.2 discussion)

zaher wrote:

- You can not expect what ADOdb emulate a feature not support in a database, and that emulate will make more slow to your query and more count of queries.
The best idea to make project support Standard SQL, and use databases support a Standard SQL

What 'bout us lazy admins who use SQLite? I don't think it's terribly close to supporting all of Standard SQL ~.~

The DBLayer is perfect though zaher, for making another dblayer. That's what I did first, had to write support for SQLite3 (only v2 is supported nativly with punbb). If anything, a second layer of abstraction could be used to "translate" from Standard SQL to <insert database type>, but that would add a fair amount of bloat. The only downside to the DBlayer is the fact that most modders only run and test thier mods for one DB type, so to support a different type another php/sql vete has to come along and add the support and then let the mod dev know.

I think PunBB is great for both PHP veterans and newbies alike.  It's ridiculously easy to mod for veterans and is a great start for newbies to learn the scripting language.

That is right, I started with PunBB when i learned PHP, so Rickard is my teacher here without he know about that smile (without hypocrisy).

hehe, my first php experiance was coding that dblayer, only took 7 days 5 websites 2 manuals and 27 coffees roll

Just wait till punres is back up. AFAIK the admin knows its broken tongue

168

(2 replies, posted in General discussion)

Didn't see that tongue I'm blind hmm

I started this topic about punres being down. Hopefully the problem will be fixed soon. As for your wiki integration thingy, if you search punbb forums you might find something.

170

(2 replies, posted in General discussion)

I didn't remeber hearing about a schedualed downtime... looks like someone buggered up a few things with either a) the database, or b) the code on punres hmm

171

(8 replies, posted in General discussion)

MOFS(DWINCTP), not very catchy, but I seriously doubt you'll have trouble finding a simular name tongue

You just need to know php/javascript/html/css ;p

There's a pm mod on punres. I never used it... so dono...

Just browse punres, and see what you come up with tongue

snapsolutions wrote:

C
You shoot yourself in the foot.

More like "You try to shoot yourself in the foot, but misplace the foot, and the bullet hits your videocard, causing a permanent streak in your eye" ... not that that happend to me... roll

175

(14 replies, posted in Feature requests)

Richard wrote:

What good is a username/password challenge if you are just going to tell the person that one or the other is correct?

Weak passwords are any admins worst nightmare, especially if that password lets you in as a mod/admin. Usernames on the other hand are a dime a dozen. Forcing people to remeber thier username without at the very least giving them a hint as to thier identity forces them to re-use usernames across multiple systemsm which is just as good/bad as guest access to usernames. Now telling them that is a valid password but not for that username, well that just stupid. Telling them that's an invalid username, or that's an invalid password for said usernames is not going to give them enough information to crack your systems. Like I said before, if you are going to worry that much about usernames, then worry that much more about the users passwords.

Telling the user that thier username is a valid one is a great way for them to do some thinking about thier password without having to request a password reset; which sends a new password of unknown strength across clear text methods, allowing any mischivious site admin along the path to the users mail server to "borrow" that account. Basically I'm saying considering hiding usernames as a security feature is like predenting that putting your extra set of keys under a flower pot (instead of the door mat) is a security feature. However, letting people know about usernames (and forcing them to have decent to great passwords) is like leaving the door unlocked and having an underfeed pit-bull waiting for you to return home. I would much rather come home to a ravaged and half eatten robber then a broken flower pot.