Module: Favorite Forums
Posted by Joe Curia
Re: Module: Favorite Forums March 18, 2010 06:18AM |
Registered: 12 years ago Posts: 753 |
March 19, 2010 05:37PM |
Moderator Registered: 14 years ago Posts: 1,301 |
Please redownload the module and reupload the info.txt file. The required version was set at 5.2 and should have been 5.2.01. Thanks for catching that bug.
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Favorite Forums March 19, 2010 06:40PM |
Registered: 12 years ago Posts: 753 |
No, I am sorry that I didn't catch it! Thanks, problem solved!
Could you give me a hint how to use this module to integrate an option for users to select their preferred (home-)folder during registration while setting a custom field with the according folder id? I think that there is no hook "during_registration"!? I need this option in order to set forum permissions. Thanks for your thought!
Could you give me a hint how to use this module to integrate an option for users to select their preferred (home-)folder during registration while setting a custom field with the according folder id? I think that there is no hook "during_registration"!? I need this option in order to set forum permissions. Thanks for your thought!
Re: Module: Favorite Forums March 19, 2010 06:49PM |
Admin Registered: 18 years ago Posts: 9,239 |
did you check the developer manual? there is a section called "user data handling" for hooks where there are quite some registration hooks.
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de


Re: Module: Favorite Forums March 19, 2010 07:03PM |
Registered: 12 years ago Posts: 753 |
Re: Module: Favorite Forums March 19, 2010 07:07PM |
Admin Registered: 18 years ago Posts: 9,239 |
you mean in the form? add it in the template then.
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de


Re: Module: Favorite Forums March 19, 2010 09:55PM |
Registered: 12 years ago Posts: 753 |
Thanks for the hint, Thomas! I managed to integrate the folder list into register.tpl. Now I am trying to set the custom variable $folder_sel with the selected $forum_id (line 3). It only catches the value 1 though. What is the mistake I make? Thank you!
Language: PHP
global $PHORUM; $forums = phorum_mod_favorite_forums_get_forums(); $content = "<select name=';folder_sel"."[]'; size=';5';>";(custom variable) foreach ($forums as $forum_id => $forum_data) { $content .= "<option value=\"{$forum_id}\""; foreach ($dropdown_chosen as $chosen) { if ($chosen == "$forum_id") { $content .= " selected=';selected';"; break; } } } $content .= ">".$forum_data["name"]."</option>"; } } $content .= "</select>".$HTML_wrappers["data_end"]; print $content;
Re: Module: Favorite Forums August 27, 2010 05:25PM |
Registered: 13 years ago Posts: 3 |
There is a bug in this module.
When a user is logged in and trying to open an attachement it redirects user to the main page. The problem is in here;
I have changed this line;
with this as a quick&dirty solution, but it needs a better one.
best,
When a user is logged in and trying to open an attachement it redirects user to the main page. The problem is in here;
Language: PHPif (!empty($PHORUM["args"])) { if (in_array("addfavorite",$PHORUM["args"])) { //Add a forum to the favorite forum list from a link if (!empty($PHORUM["user"]["FavoriteForums"])) { $PHORUM["user"]["FavoriteForums"] = $PHORUM["user"]["FavoriteForums"].",".$PHORUM["args"][0]; } else { $PHORUM["user"]["FavoriteForums"] = $PHORUM["args"][0]; } $user_to_update = Array( "user_id" => $PHORUM["user"]["user_id"], "username" => $PHORUM["user"]["username"], "FavoriteForums" => $PHORUM["user"]["FavoriteForums"] ); phorum_api_user_save($user_to_update); if (in_array("index",$PHORUM["args"])) { $dest_url = phorum_get_url(PHORUM_INDEX_URL); phorum_redirect_by_url($dest_url); exit(); }
I have changed this line;
Language: PHPif (!empty($PHORUM["args"])) {
with this as a quick&dirty solution, but it needs a better one.
Language: PHPif (!empty($PHORUM["args"]) && !preg_match("/^\/file\.php/", $_SERVER[';PHP_SELF';])) {
best,
Re: Module: Favorite Forums September 08, 2010 02:39PM |
Registered: 16 years ago Posts: 130 |
November 01, 2010 07:07PM |
Moderator Registered: 14 years ago Posts: 1,301 |
I have released v5.2.1.4 of this module with the following changes:
- Bugfix: Users can now deselect all favorited forums from the Control Center. Thanks go to Phorum user masei1202 for reporting this bug.
- Bugfix: Removed various PHP notices.
- Bugfix: Updated Phorum version requirement to be compatible with the Phorum version checker.
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
- Bugfix: Users can now deselect all favorited forums from the Control Center. Thanks go to Phorum user masei1202 for reporting this bug.
- Bugfix: Removed various PHP notices.
- Bugfix: Updated Phorum version requirement to be compatible with the Phorum version checker.
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Sorry, only registered users may post in this forum.