The link to the support forum is hardcoded: $links[] = l(t('Support forum'), variable_get('project_support_forum', 'forum/18'));"

Please make it variable with an option in the project setup page.

Comments

moggy’s picture

Status: Active » Needs review
StatusFileSize
new920 bytes

agreed, it would be nice to be able to specify where the support forum is.

as a temporary solution can I suggest the following patch which checks the name of the site, and only displays the support forum link if it's 'drupal.org'.

urbanfalcon’s picture

...or better yet, just remove /18 off the forum reference so it goes to the main forum page. folks could probably figure it out from there if need be.

pfaocle’s picture

Version: 4.6.x-1.x-dev » x.y.z
StatusFileSize
new5.72 KB

Still applies to HEAD. A variable is read from the db for this link, but there is no method to set it other than directly in the database, We should add this setting, or remove the link? Untested patch attached for adding setting in. Note that this patch only applies to HEAD without the Form API changes (see http://drupal.org/node/33736). This patch will need amending once those go in.

-1 to moggy's patch tho - hard-coding an 'if site=drupal.org' clause is a far worse solution than adding in a simple setting.

pfaocle’s picture

Title: Hardcoded Support Forum » Provide settings option for project support forum
Status: Needs review » Needs work

Needs amended for Forms API.

pfaocle’s picture

Status: Needs work » Needs review
StatusFileSize
new2.85 KB

Updated patch for HEAD/4.7 Please review and comment.

pfaocle’s picture

Hmm, thinking about it, would we want a support forum URL for each project? Ie a node field for project_project as opposed to a module setting?

markus_petrux’s picture

If an option to define support forums per project needs to be defined, it could be added later. An global option may still be good as a default.

+1 for this. Applied latest patch manually and worked like a charm.

nedjo’s picture

Status: Needs review » Fixed

Thanks for the patch. I've applied a modified version that includes a select for choosing an appropriate support forum in the project settings page.

Anonymous’s picture

Status: Fixed » Closed (fixed)