FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » bunch of questions (modding, update, etc)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
bunch of questions (modding, update, etc) [message #28721] Mon, 07 November 2005 13:21 Go to next message
devnull is currently offline  devnull   Germany
Messages: 16
Registered: September 2004
Karma: 0
Junior Member
Hi,

I have FudForum running for quite some time now and it works just fine. Very Happy 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 Smile 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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Smile 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
Re: bunch of questions (modding, update, etc) [message #28972 is a reply to message #28802] Tue, 22 November 2005 12:37 Go to previous messageGo to next message
devnull is currently offline  devnull   Germany
Messages: 16
Registered: September 2004
Karma: 0
Junior Member
Sorry for the late reply, but I had a week off.


Thanks for the answers. I'll give the search index rebuilder a try; perhaps I'll move it to a different machine first and play with it there.


Before I'll start fiddling with the replacment of characters... if I'm not wrong, I could do some str_replace on $data in /adm/compact.php inside the function write_body_c, between $MAX_FILE_SIZE and $len=strlen($data), correct?


I've edited the generated php files, not the templates. I found that easier (for me), and nobody will rebuild the templates anyway...


Thanks again Smile
Re: bunch of questions (modding, update, etc) [message #28976 is a reply to message #28972] Tue, 22 November 2005 14:44 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Yes, you can make the compactor adjust the content of the messages.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: connecting existing user databases with FUDForum
Next Topic: Upgrade lost all templates, then stopped working
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 23:54:25 GMT 2024

Total time taken to generate the page: 0.02547 seconds