-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce duplicate traffic, raise performance #897
Comments
It was a conscious decision to add the forum id. So, best would be to have a setting to change that behaviour, depending on your use case. I'd prefer a patch. |
I see. The file in question isn't part of the template, though, but at the root level of the Phorum installation. To me it looks like a proper patch would be to move the file into templates, then add a template-ID instead of a forum-ID. Stepping through the changes this guy did this week, it looks like the patch is as simple as this: diff -ur old/include/phorum_get_url.php new/include/phorum_get_url.php
--- old/include/phorum_get_url.php 2012-08-24 06:20:02.000000000 -0700
+++ new/include/phorum_get_url.php 2014-07-17 16:13:28.000000000 -0700
@@ -24,7 +24,7 @@
PHORUM_CONTROLCENTER_ACTION_URL => array("control", PHORUM_URL_NO_FORUM_ID, false),
PHORUM_CONTROLCENTER_URL => array("control", PHORUM_URL_ADD_FORUM_ID, true),
PHORUM_CSS_URL => array("css", PHORUM_URL_ADD_FORUM_ID, true),
- PHORUM_JAVASCRIPT_URL => array("javascript", PHORUM_URL_ADD_FORUM_ID, true),
+ PHORUM_JAVASCRIPT_URL => array("javascript", PHORUM_URL_NO_FORUM_ID, true),
PHORUM_FEED_URL => array("feed", PHORUM_URL_NO_FORUM_ID, true),
PHORUM_FOLLOW_ACTION_URL => array("follow", PHORUM_URL_NO_FORUM_ID, false),
PHORUM_FOLLOW_URL => array("follow", PHORUM_URL_ADD_FORUM_ID, true), |
But thats not configurable ;-). template id is also wrong, you can also have forum specific template variables overridden used in the css. |
scratching head OK, I admit I'm not deep enough into this software to really judge what's the right thing to do. It's quite possible this patch should be kept as a local optimisation. Regarding per-forum templates we found it somewhat confuses people to see different designs in different parts of what we call "our forum". When we had the standard template on the front page, but Emerald in all the sections, people occasionally talked about the front page to be "broken". But that's a design decision, of course, so you likely get 10 different opinions if you ask 10 people. |
Not sure wether Phorum is still in development, over at reprap.org we use it very successfully. Here's a tidbit on how one of our geniuses raised snappiness noticeable. It should be a easy to change that for the distribution:
If you think it's worthwhile, I'll happily make a diff.
The text was updated successfully, but these errors were encountered: