First thing I'm thinking of is modifications.
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
You are not logged in. Please login or register.
PunBB Forums → Posts by Smartys
First thing I'm thinking of is modifications.
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
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
Have you modified viewforum.php?
Just add PUN_ROOT before the links in header.php
In 1.3, full URLs are generated for each link
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/Awhats 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
It makes no difference though
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
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
Check admin options for your announcement
Moved to Modifications
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
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.
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
Sorry, I should have been clearer
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
Sometimes DNS will go funky for a little bit: you just have to wait it out
Sorry, I was helping someone deal with their site being hacked
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
grudon: Go into the code and paste that line here
Nope, but I haven't really been looking
The link is on the downloads page
If you can find a converter that will handle it
Whichever is easier for you
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
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. I *think* I've seen the light now. 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.
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.
Assuming the converter doesn't support your forum, you could convert to forum software that PunBB does support converting from
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. Php has more features than you can shake a stick at, but it definitely doesn't do anything the easy way.
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
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;
PunBB Forums → Posts by Smartys
Powered by PunBB, supported by Informer Technologies, Inc.