Module: since_last_visit_new does not allow setting of the title
- Status
- Open
- Subject
- Module: since_last_visit_new does not allow setting of the title
- Version
- 3.x
- Category
- Consistency
- Feature
- Modules
- Resolution status
- New
- Submitted by
- bcarson
- Lastmod by
- bcarson
- Rating
- Description
The module mod-since_last_visit_new.php does not currently check to see if a parameter has been set to set the title. As a result, the current code always displays "Since your last visit...".
The desired effect is to allow an authorized user to set the module title using the 'title=my custom title' parameter.
- Solution
Change the 5 lines at the bottom of the script to:
Copy to clipboard$slvn_info = since_last_visit_new($user, $module_params); $slvn_info["label"] = (isset($module_params["title"]) ? $module_params["title"] : $slvn_info["label"]); $smarty->assign('module_title', isset($module_params["title"]) ? $module_params["title"] : $slvn_info["label"]); $smarty->assign('slvn_info', $slvn_info); $smarty->assign('nonums', isset($module_params["nonums"]) ? $module_params["nonums"] : 'n');- Importance
- 3
- Priority
- 15
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 2768
- Created
- Friday 25 September, 2009 13:42:23 UTC
by Unknown - LastModif
- Friday 25 September, 2009 13:42:23 UTC