Show all posts by user
Discussion of Phorum development. No support requests please.
Re: Out of memory posting on huge topic - 3 years ago
QuoteSkye N. It looks like my version of phorum_db_get_messages() (5.2.15a) does not support fetching a page range, so I think I'll have to temporarily modify $PHORUM['read_length'] in phorum_update_thread_info() in order to chunk the message fetching and restore it before returning. Pretty hacky. I made this change as described above, setting read_length to 2000 temporarily inby Skye N. - Phorum Support
Re: Out of memory posting on huge topic - 3 years ago
It looks like my version of phorum_db_get_messages() (5.2.15a) does not support fetching a page range, so I think I'll have to temporarily modify $PHORUM['read_length'] in phorum_update_thread_info() in order to chunk the message fetching and restore it before returning. Pretty hacky.by Skye N. - Phorum Support
Out of memory posting on huge topic - 3 years ago
Hello, I have a long running phorum installation and one topic now has 25,345 posts. Recently users notified me they were getting an error trying to post in the topic. After investigation, the posting script was running out of memory (PHP memory_limit was 256MB). Further debugging revealed the memory was being consumed by phorum_update_thread_info(): 12:48:44 DEBUG update_thread_infby Skye N. - Phorum Support
Re: Merging forums? - 5 years ago
QuoteThomas Seifert You could just change the forum_id of the posts in question directly in the database (*_messages table). Rebuild search and forum stats afterwards through the admin interface. I just had to move a few million posts into a new forum and can confirm this method works well. Skyeby Skye N. - Phorum Support
Re: Improving md5 password storage security - 9 years ago
You're correct, I mis-read as I was thinking about account activation (email confirmation), not password reset. Skye Quoteeugenio Hello Skye, why you say that only the first 8 characters are sent, when you request a new password the whole password in clear (NOT encrypted) is sent over email. I could be wrong but my feeling is that since you're only sending the first 8 charby Skye N. - Phorum Development
Re: Improving md5 password storage security - 9 years ago
I could be wrong but my feeling is that since you're only sending the first 8 chars of the encrypted password over email, there's little or no riskby Skye N. - Phorum Development
Re: Module: BBcode Video - 10 years ago
No, you are certainly not the only person using Phorum or bbcode_video Could you include a diff? My own bbcode_video is heavily modified which makes it difficult to see what you've changed. As far as I can tell, Youtube and Vimeo embeds are working fine here, so either I've already made the change or it's applicable to a different URL format than I'm using. Skyeby Skye N. - v5/v6 Modules/Add-Ons
Re: Module: BBcode Video - 11 years ago
QuoteToddUGA Anybody know how to modify the code so that youtu.be links work? Been taking a whack at it and so far have not been successful. I added this to phorum_mod_bbcode_video_format() $search[] = "/https?:\/\/youtu.be\/([\w_-]+)[\/video\]/is"; $replace[] = "youtube:$1"; and this to the "handle_plain_urls" conditional section just belowby Skye N. - v5/v6 Modules/Add-Ons
Improving md5 password storage security - 11 years ago
Just doing a general security audit of my phorum installations and noticed this. If I've got this wrong, please let me know. With the general availability of md5 rainbow tables, if anyone hacked my phorum database and got the users table, it would be very easy to crack any passwords up to 9 chars in length because the passwords aren't salted. Free rainbow tables.... The problby Skye N. - Phorum Development
Re: Improving Phorum performance - 11 years ago
PS it would be really nice if "Show full URLs" was checked in the BBCode module for this forum ;)by Skye N. - Phorum Development
Re: Improving Phorum performance - 11 years ago
I found that generating a cached version of the CSS and JS for a forum made a big difference. You'll have to write a script to curl/wget the CSS for a page, and a module to check if the cached CSS file exists and serve that instead. The CSS is generated dynamically on every hit and many modules add their own CSS/JS so you can massively reduce the number of httpd requests & PHP executioby Skye N. - Phorum Development
Re: Best way to search thread metadata? - 11 years ago
It's too bad all the paging URL generation in list.php doesn't include all the passed $PHORUM["args"], I had to redo all the paging in my hook because there was no way to extend or override the default list url templates. That's the only really messy part in the tags module....by Skye N. - Phorum Development
Re: Best way to search thread metadata? - 11 years ago
OK, the module is done! I ended up adding a new hook "list_action" in list.php, but that's the only modification I needed to the base code. You can check it out here, with the new topic list filter drop-down: I'm going to run it on that site for a while to iron out any bugs, before trying it on a bigger site. If there's any interest, I could package it upby Skye N. - Phorum Development
Re: Best way to search thread metadata? - 11 years ago
I guess in the end, there is no good way to search the meta column so it's a non starter. The performance would be terrible and error prone So, I should just normalize the db and create a separate thread_id -> tag table from the start.by Skye N. - Phorum Development
Best way to search thread metadata? - 11 years ago
Hello, I'm writing a tagging module to allow users to tag threads with a simple array of strings. I'm using v5.2 The way I've done this in other modules is to store the array in the first post's metadata (parent_id = 0). Easy enough. But, the challenge here is how to filter the thread list by those meta tags. I think I have two options: 1. Add tag support to searchby Skye N. - Phorum Development
Re: Module: BBcode Video - 11 years ago
I think I just changed all the "/http" to "/https?" for all url patterns in bbcode_video.php a long time ago The "s?" means the regular expression (regex) will match an optional s Skyeby Skye N. - v5/v6 Modules/Add-Ons
Re: Module: BBcode Video - 12 years ago
Here's a bug... if "Automatically show video links as embedded video" is checked, then links get auto-embedded even if they are in another bbcode tag For example Hunt V Lauda - F1's Greatest Racing Rivalry will show like this Hunt V Lauda - F1's Greatest Racing Rivalryby Skye N. - v5/v6 Modules/Add-Ons
Re: Module: StopForumSpam - 12 years ago
Glad it's working well for you, it's a very good service!by Skye N. - v5/v6 Modules/Add-Ons
Re: "New Private Messages" when there aren't any... - 13 years ago
I forgot I had manually deleted a spammer that was sending PMs to every member... I must have deleted the PMs but accidentally left the rows in the pm_xref table Please disregard this question Thanks Skyeby Skye N. - Phorum Support
"New Private Messages" when there aren't any... - 13 years ago
Seeing this strange behaviour on one of my websites, seems extremely rare and not sure how it came about Several of my users (myself included) see the "New Private Messages" notification, and when you go to your Inbox, it's marked as "1 new" but there are no new messages Having a look at the pm_xref table, there is indeed a message marked new: SELECT * from p5_by Skye N. - Phorum Support
Re: Module: BBcode Video - 13 years ago
This is another new unrecognized format for Youtube URLs... (space added after http so URL link visible) http ://www.youtube.com/watch?feature=player_embedded&v=3fuijhUn0pkby Skye N. - v5/v6 Modules/Add-Ons
Re: Module: BBcode Video - 13 years ago
Robert Angle's addition of youtu.be link support works great, I would recommend its inclusion in the official moduleby Skye N. - v5/v6 Modules/Add-Ons
Re: post URL links in facebook - 14 years ago
You can use the Facebook URL debugger to see how it's being translated (incorrectly) -->by Skye N. - Phorum Support
Re: Adding tracking code to Phorum URLs - 14 years ago
Phorum doesn't have to process the UTM parameters at all; I'm just trying to craft an URL that Google Analytics will recognize (GA examines the request URL via Javascript when the page loads) Because of the unique way that Phorum builds GET args (eg ?x,y,page=n instead of the usual ?a=x&b=y&page=n) it's a bit tricky to add them in a way that can be parsed by GA It looby Skye N. - Phorum Support
Re: Adding tracking code to Phorum URLs - 14 years ago
Hmm maybe I can use the anchor format to get the variables through....by Skye N. - Phorum Support
Re: Module: Facebook URL Fixer - 14 years ago
Whoops, the code above has a bug (overwrites PHORUM_CUSTOM_QUERY_STRING in the 2c case). Should just use the case insensitive versions like so: if(strtolower($self) !== 'redirect.php' && stripos($_SERVER['QUERY_STRING'], '%2C') !== false) { // Override the query string. global $PHORUM_CUSTOM_QUERY_STRING; $PHORUM_CUSTOM_QUERY_STRING =by Skye N. - v5/v6 Modules/Add-Ons
Re: Module: Facebook URL Fixer - 14 years ago
Just a quick note. Hotmail has the same problem, except (guess what) it uses lowercase %2c instead of %2C like Facebook does. Anyway, easy to patch your code to handle that too, just add a replacement and chage strpos to stripos if(strtolower($self) !== 'redirect.php' && stripos($_SERVER['QUERY_STRING'], '%2C') !== false) { // Override the querby Skye N. - v5/v6 Modules/Add-Ons
Adding tracking code to Phorum URLs - 14 years ago
I need to add the utm_source and utm_medium GET arguments to my Phorum URLs for tracking click sources (eg from my email newsletter, ad campaigns, etc). However I can't seem to figure out how to craft it to get it passed through to Phorum properly. Any help greatly appreciated Some sample URLs: Base URLs http:// www.mgexperience.net/phorum/read.php?1,1978765,page=1 (my caby Skye N. - Phorum Support
Re: Prevent duplicate content for Google - 14 years ago
OK, I added my own canonical URL from my custom read hook, here's the code. I'm always adding the page number even if there's only one page, so if the thread grows, Google will have the correct canonical URL for the first page from the start without having to re-crawl. I also added (Page XX) to the HTML title to clean up more "duplicate title tag" errors in Google Wby Skye N. - Phorum Support
