Search by User ID Module (5.1 and 5.2 ready)
Posted by Oliver Riesen-Mallmann
September 12, 2006 06:58AM |
Admin Registered: 16 years ago Posts: 744 |
Hi Ta,
No idea. Does it happen also with the default template?
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Quote
Ta
One question... What makes the profile page display for about 10 second and refresh back to the message listing page?
No idea. Does it happen also with the default template?
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
September 12, 2006 07:08AM |
Admin Registered: 16 years ago Posts: 744 |
New version 1.1.1 uploaded.
From change log:
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
From change log:
2006/09/12 version 1.1.1 by Oliver Riesen (oliver@riesen.org) - Added change set - 1340 (http://www.phorum.org/cgi-bin/trac.cgi/changeset/1340) - Added auto-installation of default settings. - Extended sanity checks. - Including template for version 5.1 and future 5.2. - Support for the Eugenol template. - Some HTML fixes.
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Search by User ID Module (5.1 and 5.2 ready) September 12, 2006 07:56AM |
Registered: 15 years ago Posts: 62 |
New version Cool! :)
>>> Does it happen also with the default template?
Yep only shows for 10 seconds as well.
Only when I clicked the username from the List page
If I copied shortcut and paste the url in the address bar, it stays.
Ta
Edited 1 time(s). Last edit at 09/12/2006 08:00AM by Ta.
>>> Does it happen also with the default template?
Yep only shows for 10 seconds as well.
Only when I clicked the username from the List page
If I copied shortcut and paste the url in the address bar, it stays.
Ta
Edited 1 time(s). Last edit at 09/12/2006 08:00AM by Ta.
September 12, 2006 08:04AM |
Admin Registered: 17 years ago Posts: 8,532 |
This is not a core feature. Maybe some module is setting a redirect URL somewhere. Try disabling some mods and see if there's on that causes the redirect. Also, take a look at the profile page's source code to see if there's a meta refresh added for doing the redirect.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: Search by User ID Module (5.1 and 5.2 ready) September 12, 2006 08:30AM |
Registered: 15 years ago Posts: 62 |
Spot on, Maurice. You are a real super star
in profile.php
include_once("./include/users.php");
$user = phorum_user_get($profile_id);
$PHORUM["DATA"]["ERROR"]=$PHORUM["DATA"]["LANG"]["UnknownUser"];
$PHORUM['DATA']["URL"]["REDIRECT"]=phorum_get_url(PHORUM_LIST_URL);
$PHORUM['DATA']["BACKMSG"]=$PHORUM["DATA"]["LANG"]["BackToList"];
I commented out the midle line and it stays forever.
Much appreciated, Mr BigM :)
Thank you
Ta
Edited 1 time(s). Last edit at 09/12/2006 08:31AM by Ta.
in profile.php
include_once("./include/users.php");
$user = phorum_user_get($profile_id);
$PHORUM["DATA"]["ERROR"]=$PHORUM["DATA"]["LANG"]["UnknownUser"];
$PHORUM['DATA']["URL"]["REDIRECT"]=phorum_get_url(PHORUM_LIST_URL);
$PHORUM['DATA']["BACKMSG"]=$PHORUM["DATA"]["LANG"]["BackToList"];
I commented out the midle line and it stays forever.
Much appreciated, Mr BigM :)
Thank you
Ta
Edited 1 time(s). Last edit at 09/12/2006 08:31AM by Ta.
Re: Search by User ID Module (5.1 and 5.2 ready) September 12, 2006 08:31AM |
Admin Registered: 19 years ago Posts: 9,240 |
Something is broken in your code.
the original one looks like the following
You are totally missing the condition there.
Thomas Seifert
the original one looks like the following
$user = phorum_user_get($profile_id); if(!is_array($user) || $user["active"]==0) { $PHORUM["DATA"]["ERROR"]=$PHORUM["DATA"]["LANG"]["UnknownUser"]; $PHORUM['DATA']["URL"]["REDIRECT"]=phorum_get_url(PHORUM_LIST_URL); $PHORUM['DATA']["BACKMSG"]=$PHORUM["DATA"]["LANG"]["BackToList"]; ...
You are totally missing the condition there.
Thomas Seifert
Re: Search by User ID Module (5.1 and 5.2 ready) September 12, 2006 08:39AM |
Registered: 15 years ago Posts: 62 |
September 12, 2006 08:48AM |
Admin Registered: 16 years ago Posts: 744 |
Hi Ta,
perhaps it´s a good idea to update from 5.1.5 to the actual 5.1.16a.
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
perhaps it´s a good idea to update from 5.1.5 to the actual 5.1.16a.
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
September 12, 2006 09:09AM |
Admin Registered: 17 years ago Posts: 8,532 |
You can replace the existing one by uploading the new files over the old files. After that, you probably have to open admin.php in the browser for a small database upgrade.
Beware that you have to re-install the editor tools afterwards (the old editor tools, or better: smiley panel, are still in the 5.1 distribution). Of course, this can be prevented my not uploading the 5.1 mods/editor_tools directory.
If you created your own separate template and did not hack the templates/default/ tree, then you should be fine. If you did change the default template, then beware that you do not overwrite the existing files.
Last but not least: backups are always good. So see if you can copy your existing Phorum files to your local system and maybe create a database dump. Upgrading should be flawless, but better safe than sorry.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Beware that you have to re-install the editor tools afterwards (the old editor tools, or better: smiley panel, are still in the 5.1 distribution). Of course, this can be prevented my not uploading the 5.1 mods/editor_tools directory.
If you created your own separate template and did not hack the templates/default/ tree, then you should be fine. If you did change the default template, then beware that you do not overwrite the existing files.
Last but not least: backups are always good. So see if you can copy your existing Phorum files to your local system and maybe create a database dump. Upgrading should be flawless, but better safe than sorry.
Maurice Makaay
Phorum Development Team



hidden messages are shown on results page August 17, 2007 11:46AM |
Registered: 16 years ago Posts: 43 |
I found a bug that can be quite troublesome to the admin of a forum.
On the search results page of the module, hidden messages are shown among approved messages. Both the headline as well as a couple of text lines are visible. A click onto the link brings up a "message not found" dialogue (which is good!).
The background: I have hidden messages because they might put me, the forum admin, into legal trouble (in Germany, the law is quite vague when it comes to insults published in a forum - the forum-admin *can* be held responsible for the messages in his forum even if he has not written the messages himself).
I haven't deleted the dubious messages because they might be, after all, pieces of evidence. So, showing the title and a couple of text lines can bring me into legal trouble because these texts contain dubious stuff.
For the time being, I have switched off the module but would like to use it once the issue is solved.
Cheers from strange Germany,
Marian
On the search results page of the module, hidden messages are shown among approved messages. Both the headline as well as a couple of text lines are visible. A click onto the link brings up a "message not found" dialogue (which is good!).
The background: I have hidden messages because they might put me, the forum admin, into legal trouble (in Germany, the law is quite vague when it comes to insults published in a forum - the forum-admin *can* be held responsible for the messages in his forum even if he has not written the messages himself).
I haven't deleted the dubious messages because they might be, after all, pieces of evidence. So, showing the title and a couple of text lines can bring me into legal trouble because these texts contain dubious stuff.
For the time being, I have switched off the module but would like to use it once the issue is solved.
Cheers from strange Germany,
Marian
Sorry, only registered users may post in this forum.