bunch of questions (modding, update, etc) [message #28721] |
Mon, 07 November 2005 13:21 |
devnull
Messages: 16 Registered: September 2004
Karma: 0
|
Junior Member |
|
|
Hi,
I have FudForum running for quite some time now and it works just fine. I'm thinking of doing some heavier mods now (perhaps together with an update). Perhaps someone could drop a few lines to my questions/ideas/observations?
- Concerning an update: I'm running a 2.6.something (about a year old now). Could I do a blank default install and simply replace the GLOBALS.php to get it working with the old database? (after I copied msg_1 and the nntp files back).
- The biggest part is the index table (4GB for myd/myi) and it takes ages (literally) to rebuild it. During that time, the board is offline, so I wonder if there's a script which would rebuilt the index into an sql file. That's just an idea, not a must-have Talking about the index: I assume the optimize table runs over the index too. Would it be faster to do a "DELETE FROM prefix_index" before and then rebuild the index?
- Could the script for rebuilding the msg_1 file be edited so it also does replace certain characters with their html code? Like &, < or > for example, or umlauts. That script has to update the database with the new file offsets, but I'm not sure if it would notice that the length of the message has changed.
- I noticed that sometimes several posts are added as new topics, although the subject are like "Re: whatever subject". Shouldn't the slow reply match option put them together in one thread? Can those posts be joined automatically? This is just a curiosity question to get a nicer look for the user. Nothing really important.
- About the modding: I would heavily edit the main parts of the board, like index.php, thread.php and msg.php. I thought about removing everything from the source that is not needed, but I don't know if this would cause problems elsewhere (in case some of those files are includes from others).
|
|
|
Re: bunch of questions (modding, update, etc) [message #28802 is a reply to message #28721] |
Fri, 11 November 2005 15:10 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Quote: |
- Concerning an update: I'm running a 2.6.something (about a year old now). Could I do a blank default install and simply replace the GLOBALS.php to get it working with the old database? (after I copied msg_1 and the nntp files back).
|
Yes, but you also need to copy the images/ directory found WWW_ROOT.
Quote: |
- The biggest part is the index table (4GB for myd/myi) and it takes ages (literally) to rebuild it. During that time, the board is offline, so I wonder if there's a script which would rebuilt the index into an sql file. That's just an idea, not a must-have Talking about the index: I assume the optimize table runs over the index too. Would it be faster to do a "DELETE FROM prefix_index" before and then rebuild the index?
|
This is a search index table, you can rebuild it by running the search index rebuilder (admin control panel) but it'd be far slower the moving the file.
Quote: |
- Could the script for rebuilding the msg_1 file be edited so it also does replace certain characters with their html code? Like &, < or > for example, or umlauts. That script has to update the database with the new file offsets, but I'm not sure if it would notice that the length of the message has changed.
|
You can modify the compacter to do it for you.
Quote: |
- I noticed that sometimes several posts are added as new topics, although the subject are like "Re: whatever subject". Shouldn't the slow reply match option put them together in one thread? Can those posts be joined automatically? This is just a curiosity question to get a nicer look for the user. Nothing really important.
|
I presume those are posted from NNTP or mailing list? For those the slow reply match will often do the trick.
Quote: |
- About the modding: I would heavily edit the main parts of the board, like index.php, thread.php and msg.php. I thought about removing everything from the source that is not needed, but I don't know if this would cause problems elsewhere (in case some of those files are includes from others).
|
You need to edit the .t and/or *.tmpl files, the *.php files outside of the adm/ directory are compiled files based on the templates.
FUDforum Core Developer
|
|
|
|
|