Could you post your code?
Oh, and if you want PUN_QUIET_VISIT to not happen, don't define it. Otherwise, define it as 1 (otherwise, it looks confusing)

2,852

(19 replies, posted in PunBB 1.2 troubleshooting)

What's a map, in this context?

From lang/English/common.php

    'Image link'            =>    'image',    // This is displayed (i.e. <image>) instead of images when "Show images" is disabled in the profile

2,854

(11 replies, posted in PunBB 1.2 discussion)

I'm not familiar with how to query SQLite databases from the command line wink

pogenwurst wrote:

My mistake, I apologize -- how exactly does the "New topic read marking system" work then?

Well, last visit time still determines if a post is possibly new or not. If the last post time for a topic is older than the last visit time, the topic is marked as read. If it's not, we then check against the last read time for the specific topic stored in a cookie. If there is no last read time for that topic or the last post time is newer, the topic is new. Otheriwse, it's old

2,856

(11 replies, posted in PunBB 1.2 discussion)

http://www.sqlite.org/lang_vacuum.html
I'm not sure, but that might help

Then enable PUN_SHOW_QUERIES and PUN_DEBUG and have compare query counts, query times, etc tongue
There's a great deal more than just "fewer queries = better!" and I have a feeling that's the point you're at now. I would focus less on the number of queries being run unless it's becoming a serious performance issue, in which case it's most likely due to a mod rather than PunBB itself.

2,858

(11 replies, posted in PunBB 1.2 discussion)

Are you using MySQL?

Give an example of a change you made?

elbekko wrote:

If people'd care enough about a single query extra, they'd notice when enabling it.

Indeed. Plus, it's not always as easy as saying "this adds one sql query"
Options can modify queries as well, making them more or less complex.
Also, it would only serve to confuse people who aren't familiar with SQL.

if ($pun_user['g_read_board'] == '0')
    message($lang_common['No view']);

That's not PunBB code, at least not unmodded code

Plugins are only for moderator/admin features, so that's not an option.
You want to redirect, as opposed to showing them a message? Just look for the permissions check that already exists and change it to a redirect

2,864

(1 replies, posted in PunBB 1.2 troubleshooting)

Make sure the character encoding used in both places is the same (both the database encoding and the display encoding)

The problem is that you link them to www.semww.org but when they login they're redirected to semww.org
Set $cookie_domain in config.php to .semww.org

2,866

(17 replies, posted in Programming)

Moved to Programming
Enable debug mode, paste the full error

Yes

Moved to Integration

http://punbb.org/download/contrib/PunBB … -1.4.0.zip

lie2815 wrote:

Go to Admin->Options->the block "Registration"->select "yes" for "verify registrations"

But that doesn't allow users to choose their own password at registration wink

And it's to be expected that generic templates (from a site like OSWD) are different from templates for a specific piece of forum software. As people have said, you need to edit the template to fit your needs

if (!$pun_user['is_guest'] && ($pun_user['g_id'] == PUN_ADMIN || $pun_user['g_id'] == PUN_MOD))
    return true;
else
    return false;
pogenwurst wrote:
Twig wrote:
cytexone wrote:

Hello Everyone,

First off this Mod is awesome... Second, does anyone know how to disable the mod from automatically marking topics as read after the user timeout has occurred, in addition if the user logs off we don't want the topics marked as read?  I only want it to mark the topic as read if they actually reads the topic.

Thanks so much

Dan
CYTEXONE

Yea, I also have a problem with that hmm

PunBB will behave the way you desire in version 1.3.

Actually, it won't. The last visit time will still play a role: storing all the topics ever read by a user in a cookie does not work in the long run and does not work when the user uses multiple computers. Even with a database based system like this mod, unless you're willing to sacrifice the space to store all that data, you're going to run into issues.
A better idea might be to set the timeout to a longer period of time (eg: an hour)

format_time function in include/functions.php

2,874

(8 replies, posted in Programming)

You don't need the global line since you're using none of those variables.
For the second function, I think you want to return the value, not store it in a local variable
For both functions, why can't you simply call pun_htmlspecialchars when you need it, as opposed to wrapping it in a new function?

nickfzx's post above didn't help?