Show all posts by user
All modules known to work or written for 5.2.0 and up. Modules are small packages that increase or change the functionality of Phorum in some way, without changing any of the main Phorum code.
You can find a list of Phorum 5.2 Modules --> Here
You can find a list of Phorum 5.2 Modules --> Here
Re: Phorum the Future, revisited! - 16 years ago
I've just started using Zope's TAL inside PHP using my own XML parser. The way TAL works actually eliminates the overhead of passing values to a template system. Why, you ask? Well, most of the time you do something like this: <?php $result = $DB->query('SELECT message_id AS id, subject, body FROM phorum_messages WHERE forum_id=2'); while ($message = $result-&gby DJ Maze - Phorum Development
Re: Hack: Cache Files BETA client side (awesome for avatar module) - 17 years ago
I have more tricks in my sleeve for client based caching. Another useful feature could be to add an ETag header to page requests. Last-modified/ETag will be based on the "last reply". Reason is simple: why run all queries again on a page refresh while nothing has changed? It is a tricky add-on due to the "unread/read" images and such and that's where the ETag willby DJ Maze - v5/v6 Modules/Add-Ons
Re: Hack: Cache Files BETA client side (awesome for avatar module) - 17 years ago
I'm drunk at this moment but will see if i have some time next weekend to figure out how to build this as module. However, if i pickup a girlfriend my time could be limitedby DJ Maze - v5/v6 Modules/Add-Ons
Re: Hack: Cache Files BETA client side (awesome for avatar module) - 17 years ago
It should just be: header('Connection: close'); I just copy/pasted response headers from Apache and "Keep-Alive" is pretty useless header. Connection: close See I didn't write it as module yet because i hadn't had any time to look into coding modules. Just using Phorum5 for only one day so i still have to read a lot about its source.by DJ Maze - v5/v6 Modules/Add-Ons
Hack: Cache Files BETA client side (awesome for avatar module) - 17 years ago
I've modified /include/api/file_storage.php to support client based caching of the requests. No idea if it works in all browsers but, it should speed up the forums drastically and reduce server load. Especially when you're using the Avatar module which could produce up to as many different users per page as configured. Reason for this hack: Each file has a unique ID which is uby DJ Maze - v5/v6 Modules/Add-Ons
Re: file_data a MEDIUMTEXT, why not BLOB? - 17 years ago
No problems, just had an idea (working with Phorum as of today). I did have modified file_storage.php will put it in a new topicby DJ Maze - Phorum Development
file_data a MEDIUMTEXT, why not BLOB? - 17 years ago
QuotemysqlBLOB columns are treated as binary strings (byte strings). TEXT columns are treated as non-binary strings (character strings). BLOB columns have no character set, and sorting and comparison are based on the numeric values of the bytes in column values. TEXT columns have a character set, and values are sorted and compared based on the collation of the character set. There's a biby DJ Maze - Phorum Development
Re: Module: Event Logging - 17 years ago
Maybe write a cronjob that gets run once a day to remove entries older then X days?by DJ Maze - v5/v6 Modules/Add-Ons
Syntax highlighting (not GeSHi) - 17 years ago
GeSHi is slow. Is there one which is fast and/or client based (JavaScript). If not i should dive in and see how add-ons work and attach my JavaScript version ;)by DJ Maze - Phorum Hack/Mod Requests
Re: Remove ?> at eof - 17 years ago
You're right Panu it's one of those discussions which has no answer. Both are right since PHP allows omitting the end tag if there's no output anyway. And based on "don't do this or that" both respond in newbies posting questions on forums asking why their code doesn't work. Say if you omit the closing tag and someone paste html stuff at the end of the file, PHby DJ Maze - Phorum Development
Re: Remove ?> at eof - 17 years ago
QuoteMaurice MakaayAnd what editor? We all use different editors, but I think that I am known as "mr. Vi" (I prefer "mr. Viyagi") in the team. Can't live without vi/vim really. I'll not advocate it as the best editor ever, but I can advocate it as the best editor ever for me.Indeed VI is a good one. I will send you this Coffee mug when you start the next "hackinby DJ Maze - Phorum Development
Re: Remove ?> at eof - 17 years ago
Understood, will respect your decision. I can turn it on/off in my editor to my liking, but since every script i use omits the PHP end tag i kept it on. My editor doesn't work any different as that of yours, i can still see one LF after each '?>' in all phorum files. Using a Hex editor shows that my editor obeys the exact file structure. so why does your editor might notby DJ Maze - Phorum Development
Remove ?> at eof - 17 years ago
Could you please remove the php end tags (?>) from the files? It is a bad practice to use them for some reasons and the main reason is for things like: QuotephpWarning: Cannot modify header information - headers already sent by ..... Problem is that my editor always keeps a LF at the end of each file and someone might even add spaces, tabs or other output to that. Then, the above error migby DJ Maze - Phorum Development
Re: Phorum the Future? - 17 years ago
Quotefreedmanbut there's often a huge sacrifice in performance. and not all things need to be OO.. often people make objects where they're just not necessary. I'm an OOP programmer and noticed there is no real speed difference between many classes or a multi-level array. Sometimes my OOP was even faster (what the hack?!?). It all depends on: How many files How many differentby DJ Maze - Phorum Development
Re: PostgreSQL - 17 years ago
There's a trick you can use while developing in MySQL and do keep any ISO database into account. SET SESSION sql_mode = 'TRADITIONAL,ONLY_FULL_GROUP_BY,NO_AUTO_VALUE_ON_ZERO,PIPES_AS_CONCAT' It makes MySQL behave almost like all other databases that run conform ANIS/ISO SQL Standards. Will setup a testbed hereby DJ Maze - Phorum Development