3,351

(3 replies, posted in PunBB 1.2 troubleshooting)

First thing I'm thinking of is modifications. wink

It would be great though if you could figure out what file is causing that issue for you and provide the code for it. That way, we can try to figure out what the problem is smile

3,352

(32 replies, posted in PunBB 1.2 troubleshooting)

MySQL 4.1 isn't the issue, the issue is the MySQL library you use in PHP. My suggestion was that when you install PunBB, if you have the choice you should choose "MySQL Improved" from the dropdown menu.
Otherwise, upgrading MySQL won't fix the issue smile

3,353

(4 replies, posted in PunBB 1.2 troubleshooting)

Have you modified viewforum.php?

3,354

(2 replies, posted in General discussion)

Just add PUN_ROOT before the links in header.php
In 1.3, full URLs are generated for each link smile

3,355

(2 replies, posted in PunBB 1.2 troubleshooting)

rajuru wrote:

In our server, we have Zend Accelecerator Installed. But in Admin section of Punbb it shows :

Operating system: Linux
PHP: 4.4.6 - Show info
Accelerator: N/A

whats the problem?

any luck? thanks in advance

Accelerator only detects a subset of those types of tools. In 1.3, I believe Zend is on that list smile
It makes no difference though smile

3,356

(9 replies, posted in PunBB 1.2 troubleshooting)

gmcms wrote:

Exactly, using the "only changed files".
Thank you for the script, it's ok!

Note : No problem of security if this plugin stay online after upgrade ?

Except PunBB 1.2.15 has database changes smile

3,357

(9 replies, posted in PunBB 1.2 troubleshooting)

Nope smile

3,358

(9 replies, posted in PunBB 1.2 troubleshooting)

Other than actually updating and running the update script?

http://punbb.org/download/plugins/AP_Ve … hanger.zip

# Version Changer. Created by Rickard Andersson. Use Version Changer to update the PunBB version string if it, for some reason, is out of sync with your installation. Please note that this plugin does not update PunBB as such, it only changes the version number.

I haven't really looked at the chat box code, so no wink

3,360

(11 replies, posted in PunBB 1.2 troubleshooting)

Check admin options for your announcement wink

Moved to Modifications

3,362

(32 replies, posted in PunBB 1.2 troubleshooting)

http://dev.mysql.com/doc/refman/5.0/en/old-client.html
If you have the choice of MySQL Improved, choose it. Otherwise, you'll need to follow one of the steps there to change MySQL to work on the "old" system wink

3,363

(10 replies, posted in PunBB 1.2 troubleshooting)

Because as I said, in 1.2 your last visit is based on the last time you logged out/your online session timed out. It's not based on actually reading the topics.

3,364

(10 replies, posted in PunBB 1.2 troubleshooting)

PunBB 1.2's read/unread tracking actually marks simply that a topic has been posted in since your last visit. PunBB 1.3 (the version currently under development) will have full read/unread tracking (which is the behavior you're used to). There is at least one mod which will add full read/unread tracking, you can find it over at PunRes

3,365

(11 replies, posted in PunBB 1.2 troubleshooting)

Sorry, I should have been clearer smile
You'll need to download and install a copy of SMF 1.1. Then, you'll upload the contents of the archive I linked to above to the SMF directory and run convert.php. Then you can upload PunBB, install it, upload the converter for it, point it to the right place to find the SMF stuff, and let it go smile

3,366

(3 replies, posted in PunBB 1.2 discussion)

Sometimes DNS will go funky for a little bit: you just have to wait it out wink

3,367

(11 replies, posted in PunBB 1.2 troubleshooting)

Sorry, I was helping someone deal with their site being hacked wink

I just Googled around and found this:
http://www.simplemachines.org/download/ … verter.zip

Assuming it works, the PunBB converter will work on it. Enjoy smile

3,368

(18 replies, posted in General discussion)

grudon: Go into the code and paste that line here wink

3,369

(11 replies, posted in PunBB 1.2 troubleshooting)

Nope, but I haven't really been looking smile

3,370

(98 replies, posted in News)

The link is on the downloads page wink

3,371

(11 replies, posted in PunBB 1.2 troubleshooting)

If you can find a converter that will handle it smile

3,372

(11 replies, posted in PunBB 1.2 troubleshooting)

Whichever is easier for you wink

3,373

(17 replies, posted in Programming)

MattF wrote:
Smartys wrote:

No, it's not very complicated at all and doesn't involve any more database lookups. It sounds like I need to explain the way things work wink
When you do $db->query, it returns a resource. That resource can then be given to certain functions (in PunBB's abstraction layer, $db->fetch_assoc and $db->fetch_row are 2 examples) which will allow you to traverse the data.
Your code using $db->fetch_assoc would look something like

$result = $db->query("SELECT id, username FROM ".$db->prefix."users") or error('Could not get user list', __FILE__, __LINE__, $db->error());

$users = array();
while($user = $db->fetch_assoc($result))
    $users[$user['id']] = $user['username'];

Your code using $db->fetch_row would look something like

$result = $db->query("SELECT id, username FROM ".$db->prefix."users") or error('Could not get user list', __FILE__, __LINE__, $db->error());

$users = array();
while(list($id, $username) = $db->fetch_row($result))
    $users[$id] = $username;

Thanks ever so much for that. smile I *think* I've seen the light now. big_smile So the basic way that it works is that the initial lookup creates the resource info and connection used by the second lookup. The second lookup then allows you to scroll through the data, (using the while loop), assigning the required info from each row from the table to an array, then terminating the db connection once you have scrolled through, and extracted, the required data? Have I grasped the correct gist of how it works?

Thanks ever so much for your help, BTW. Until around three weeks ago I'd never touched php before, so my learning curve does tend to go awry on occasion. big_smile

Kind of, except the connection is made before any queries and the connection is closed at the end of the page. It stays open throughout the whole page.

3,374

(11 replies, posted in PunBB 1.2 troubleshooting)

Assuming the converter doesn't support your forum, you could convert to forum software that PunBB does support converting from

3,375

(17 replies, posted in Programming)

MattF wrote:
Smartys wrote:

You would have to use $db->fetch_assoc($result) or $db->fetch_row($result) to get at the actual data

So I assume that would mean it's getting back to multiple database lookups, then? Must admit, until I've started looking at this idea, I hadn't realised just quite how convoluted it is. big_smile Php has more features than you can shake a stick at, but it definitely doesn't do anything the easy way. big_smile

No, it's not very complicated at all and doesn't involve any more database lookups. It sounds like I need to explain the way things work wink
When you do $db->query, it returns a resource. That resource can then be given to certain functions (in PunBB's abstraction layer, $db->fetch_assoc and $db->fetch_row are 2 examples) which will allow you to traverse the data.
Your code using $db->fetch_assoc would look something like

$result = $db->query("SELECT id, username FROM ".$db->prefix."users") or error('Could not get user list', __FILE__, __LINE__, $db->error());

$users = array();
while($user = $db->fetch_assoc($result))
    $users[$user['id']] = $user['username'];

Your code using $db->fetch_row would look something like

$result = $db->query("SELECT id, username FROM ".$db->prefix."users") or error('Could not get user list', __FILE__, __LINE__, $db->error());

$users = array();
while(list($id, $username) = $db->fetch_row($result))
    $users[$id] = $username;