Firefox PHP

Module: Favorite Forums

Posted by Joe Curia 
Re: Module: Favorite Forums
March 18, 2010 06:18AM
Is this module dependent to another module? I am not able to activate it, the according field on the admin panel is grey although I uploaded a fresh version. Mh..



Edited 1 time(s). Last edit at 03/18/2010 03:40PM by korsakov.
Re: Module: Favorite Forums
March 19, 2010 05:37PM
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
Re: Module: Favorite Forums
March 19, 2010 06:40PM
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!
Re: Module: Favorite Forums
March 19, 2010 06:49PM
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
Re: Module: Favorite Forums
March 19, 2010 07:03PM
Yes, I did. I assumed that "before_register" is the hook after the user submitted his registration data. I need to add an option during the registration process. Thanks.
Re: Module: Favorite Forums
March 19, 2010 07:07PM
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
Re: Module: Favorite Forums
March 19, 2010 09:55PM
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
  1. global $PHORUM;
  2. $forums = phorum_mod_favorite_forums_get_forums();
  3. $content = "<select name=';folder_sel"."[]'; size=';5';>";(custom variable)
  4. foreach ($forums as $forum_id => $forum_data) {
  5. if (!empty($forum_data["folder_flag"])) {
  6.  
  7. $content .= "<option value=\"{$forum_id}\"";
  8. if (!empty($dropdown_chosen)) {
  9. foreach ($dropdown_chosen as $chosen) {
  10. if ($chosen == "$forum_id") {
  11. $content .= " selected=';selected';";
  12. break;
  13. }
  14. }
  15. }
  16. $content .= ">".$forum_data["name"]."</option>";
  17. }
  18. }
  19. $content .= "</select>".$HTML_wrappers["data_end"];
  20. print $content;
Re: Module: Favorite Forums
August 27, 2010 05:25PM
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;


Language: PHP
if (!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: PHP
if (!empty($PHORUM["args"])) {

with this as a quick&dirty solution, but it needs a better one.
Language: PHP
if (!empty($PHORUM["args"]) && !preg_match("/^\/file\.php/", $_SERVER[';PHP_SELF';])) {


best,
Re: Module: Favorite Forums
September 08, 2010 02:39PM
Hello folks,

I´ve added this module to my forum list, looks great, nevertheless, when you select any forum as favourite, the rest of the list does not show the "last post module", author and subject appear empty, does anyone knows how to solve this?

Example



Thank you in advance.

pepe
Module: Favorite Forums v5.2.1.04 - bugfix
November 01, 2010 07:07PM
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
Sorry, only registered users may post in this forum.

Click here to login