All Users
Posted by Ryan
Re: All Users May 05, 2007 04:20AM |
Admin Registered: 21 years ago Posts: 9,240 |
Re: All Users May 05, 2007 07:18AM |
Registered: 17 years ago Posts: 27 |
Works fine but i've got several other issues.
1. When I want to PM a user, it takes me to my control center instead of sending a message.
/control.php?2,panel=pm,page=post,to=author instead of
/pm.php?2,page=send,to_id=1
How can I change that?
2. How can URLS be added in the field list?
3. I use a ranking user mod and would like to apply the ranks/avatars to a new field, how can I process that?
Thanks a lot :)
C.
Edited 1 time(s). Last edit at 05/05/2007 07:34AM by Constantin.
1. When I want to PM a user, it takes me to my control center instead of sending a message.
/control.php?2,panel=pm,page=post,to=author instead of
/pm.php?2,page=send,to_id=1
How can I change that?
2. How can URLS be added in the field list?
3. I use a ranking user mod and would like to apply the ranks/avatars to a new field, how can I process that?
Thanks a lot :)
C.
Edited 1 time(s). Last edit at 05/05/2007 07:34AM by Constantin.
Re: All Users May 05, 2007 07:38AM |
Admin Registered: 19 years ago Posts: 8,532 |
1) That looks like code for the old PM interface. In the new one, posting is no longer done based on the username. I downloaded the code and I saw this bit in mod_allusers.php:
2) I don't know what type of URL's you mean, but I guess they should be added in mod_allusers.php.
3) I don't use either of these myself, so I can't really help you with that.Additionally, I don't think the question is fully clear. What do you mean with "apply .. to a new field"?
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
$users[$newArray['user_id']][pm_url] = phorum_get_url(PHORUM_CONTROLCENTER_URL, "panel=" . PHORUM_CC_PM, "page=post", "to=".urlencode($newArray['username']));That is outdated. It needs to be something like:
$users[$newArray['user_id']][pm_url] = phorum_get_url(PHORUM_PM_URL, "page=send", "to_id=".$newArray["user_id"]);I think that should do the trick.
2) I don't know what type of URL's you mean, but I guess they should be added in mod_allusers.php.
3) I don't use either of these myself, so I can't really help you with that.Additionally, I don't think the question is fully clear. What do you mean with "apply .. to a new field"?
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: All Users May 05, 2007 07:57AM |
Registered: 17 years ago Posts: 27 |
Thanks Maurice, new code works perfectly.
I would like users to list their websites here :
[www.litterature.frih.net]
Precisely under the URL field.
In other words, how can I make my custom fields (for instance, the URL one) in profile.tpl work on profile.php so I can use them on this mod?
Must I update this section found on profile.php with my new custom fields?
// set any custom profile fields that are not present.
if (!empty($PHORUM["PROFILE_FIELDS"])) {
foreach($PHORUM["PROFILE_FIELDS"] as $field) {
if (!isset($user[$field['name']])) $user[$field['name']] = "";
}
}
Thanks for the excellent support,
C.
Edited 1 time(s). Last edit at 05/05/2007 08:51AM by Constantin.
I would like users to list their websites here :
[www.litterature.frih.net]
Precisely under the URL field.
In other words, how can I make my custom fields (for instance, the URL one) in profile.tpl work on profile.php so I can use them on this mod?
Must I update this section found on profile.php with my new custom fields?
// set any custom profile fields that are not present.
if (!empty($PHORUM["PROFILE_FIELDS"])) {
foreach($PHORUM["PROFILE_FIELDS"] as $field) {
if (!isset($user[$field['name']])) $user[$field['name']] = "";
}
}
Thanks for the excellent support,
C.
Edited 1 time(s). Last edit at 05/05/2007 08:51AM by Constantin.
Re: All Users September 24, 2007 07:51PM |
Registered: 17 years ago Posts: 16 |
Hey Maurice,
I am hoping you will be gracious enough to take crack at errors that are showing in my log for this mod. And then I promise I will stop looking at my logs !
PHP Notice: Undefined index: sort in /usr/local/phorum5/mods/allusers/mod_allusers.php on line 24, referer: mphorum.mysite.com/list.php?1
The same error also appears for lines 25 and 26.
24 $sort=$_GET["sort"];
25 $ord=$_GET["ord"];
26 $page=$_GET["page"];
Your expert help is most appreciated.
I am hoping you will be gracious enough to take crack at errors that are showing in my log for this mod. And then I promise I will stop looking at my logs !
PHP Notice: Undefined index: sort in /usr/local/phorum5/mods/allusers/mod_allusers.php on line 24, referer: mphorum.mysite.com/list.php?1
The same error also appears for lines 25 and 26.
24 $sort=$_GET["sort"];
25 $ord=$_GET["ord"];
26 $page=$_GET["page"];
Your expert help is most appreciated.
Re: All Users September 24, 2007 08:17PM |
Admin Registered: 19 years ago Posts: 8,532 |
This should fix it:
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
$sort=isset($_GET["sort"]) ? $_GET["sort"] : 0; $ord=isset($_GET["ord"]) ? $_GET["ord"] : 0; $page=isset($_GET["page"]) ? $_GET["page"] : 0;
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: All Users September 24, 2007 09:00PM |
Registered: 17 years ago Posts: 16 |
Sorry, only registered users may post in this forum.