3,901

(4 replies, posted in Feature requests)

Exactly: it's too easy to confuse indices with the actual values (plus, the actual values become strings instead of numbers)

I'm not sure it is a bug.
Before you delete a word from search_words, you have to ensure that it isn't being used in search_matches. In order to do that, you would need to check the entire search_matches table for the word you just deleted. So that's one extra select per word deleted and one extra delete for every word not found. Not exactly the most efficent, especially with larger search_words tables.
Rebuilding your search index will of course remove the extra words: I'm sure someone could also write a query to remove the unnecessary words as well.

I'll leave this here though for the other developers to look at. If they agree with me, they can move this to PunBB Discussion.

3,903

(4 replies, posted in Feature requests)

Rickard would have to answer this, but I think it's because we're using numbers and enum is a set of strings (which can be confusing when you're storing numbers as strings: you can get tripped up and accidentally use the numerical indexes instead of the string numbers).

Doesn't the converter work fine?

3,905

(20 replies, posted in PunBB 1.2 troubleshooting)

What steps from this topic have you tried so far?

Which I assume is the file you're using this in. Plain PunBB will work fine with that. However, I realized reading your error that you hardcoded the path to your common footer in PunBB's footer.php, which is what's causing your error. smile

I'm confused: if you have a forum set up at ./forum/, then you'll have ./forum/header.php, which will load fine hmm

nickfzx wrote:

Oh, ok, is there a way to change this so it does trigger the notification mod?

If you code the mod into the plugin. However, you'll then have the issue of sending out too many emails at once.

3,909

(3 replies, posted in PunBB 1.2 troubleshooting)

What part is confusing you?

It will not trigger your notification mod, since your mod relies on code in send_message.php

Why not just

define('PUN_ROOT', './forum/');
require PUN_ROOT.'include/common.php';

3,912

(13 replies, posted in PunBB 1.2 troubleshooting)

Paul meant at the bottom of whatever stylesheet your guests are seeing, but I don't think adding it to imports/base.css instead would hurt
A screenshot (and more information) would be nice though so we can fix the underlying issue

3,913

(3 replies, posted in PunBB 1.2 troubleshooting)

I was wondering how to go about making usergroups different colors, like making one usergroup color red

http://www.punres.org/desc.php?pid=56

Also, is there any way to make a punbb portal or w/e on the main site?

http://wiki.punres.org/Miniportal

how do I go about editing the CSS to add a banner?

http://wiki.punres.org/Add_a_logo_to_the_header_via_css

http://punbb.org/forums/viewtopic.php?pid=79347#p79347

3,915

(10 replies, posted in PunBB 1.2 troubleshooting)

http://www.punres.org/viewtopic.php?id=229

3,916

(6 replies, posted in PunBB 1.2 troubleshooting)

Does your host support PHP?

Moved to Integration

Could CakePHP be the problem? Remember that for $pun_user to be used within a function it needs to be declared global in the function

I've updated the subject to more accurately reflect the issue

pedrotuga: So, do you want me to try and answer something else? smile

Mmm, I'm not sure what the issue is: could you provide a link to your site?

What is $cookie_path in config.php set to?

    // Check that someone from this IP didn't register a user within the last hour (DoS prevention)
    $result = $db->query('SELECT 1 FROM '.$db->prefix.'users WHERE registration_ip=\''.get_remote_address().'\' AND registered>'.(time() - 3600)) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());

    if ($db->num_rows($result))
        message('A new user was registered with the same IP address as you within the last hour. To prevent registration flooding, at least an hour has to pass between registrations from the same IP. Sorry for the inconvenience.');

It is on the downloads page...

Go to register.php, comment out the query that checks if a user has registered in the past hour wink

3,925

(32 replies, posted in PunBB 1.2 troubleshooting)

I would change the prefix in the config file, it's easier than renaming the tables