Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

HELP - User Monitor : showbc.com (???)

Quote Reply
HELP - User Monitor : showbc.com (???)
Hello Ian,

I have an error message with script.

--------------------------------------

User Monitor Plug-in : Generate Files



Dynamic Setup Detected - uppath=/s/showbc.com/httpdocs
um_rooturl=

A fatal error has occured:
mkdir: /s/showbc.com/httpdocs/users (No such file or directory) at /home/mysite/cgi-bin/web/admin/Plugins/UserMonitor.pm line 824.




Please enable debugging in setup for more details.

Stack Trace
======================================
Links (32373): Links::environment called at /home/mysite/cgi-bin/web/admin/Links.pm line 431 with no arguments.
Links (32373): Links::fatal called at /home/mysite/cgi-bin/web/admin/Plugins/UserMonitor.pm line 824 with arguments
(mkdir: /s/showbc.com/httpdocs/users (No such file or directory) at /home/mysite/cgi-bin/web/admin/Plugins/UserMonitor.pm line 824.
).
Links (32373): Plugins::UserMonitor::my_mkdir called at /home/mysite/cgi-bin/web/admin/Plugins/UserMonitor.pm line 344 with arguments
(/s/showbc.com/httpdocs/users, 511).
Links (32373): Plugins::UserMonitor::statistics called at admin.cgi line 216 with no arguments.
Links (32373): main::plugin called at admin.cgi line 52 with no arguments.
Links (32373): main::main called at admin.cgi line 24 with no arguments.


-----------------


Why "showbc.com" is present in the code.

Somebody can answer.

Thank you for your assistance.


Mick

Last edited by:

mick31: Nov 7, 2003, 10:05 AM
Quote Reply
Re: [mick31] HELP - User Monitor : showbc.com (???) In reply to
Hello Ian,

In Install.pm :

--------------------------------------

Line 186 :

Root_HTML_Path => { pos => 9, type => 'CHAR', size => '150', not_null => 1, default => '/s/showbc.com/httpdocs' },

Line 279 :

$e2->add_col('Root_HTML_Path', { type => 'CHAR', size => '150', not_null => 1, default => '/s/showbc.com/httpdocs' } );


Line 187 :

SU_SuccessURL => { pos => 10, type => 'CHAR', size => '150', not_null => 1, default => 'http://www.categories.ca' },

Line 189 :

RootURL => { pos => 3, type => 'CHAR', size => '150', not_null => 1, default => 'http://www.yoursite.com' },

---------------------------------------------------------


Which chagement for these line?

Thank you for your answer.

Mick

Quote Reply
Re: [mick31] HELP - User Monitor : showbc.com (???) In reply to
Hi Mick,

Go to the plugin manager and click on 'Table Editor' under UserMonitor and follow the instructions for modifying the User Settings table.

(If you go to the plugin manager, click on 'about' under UserMonitor. This explains what to do if you have a dynamic directory.)

Laura.
Quote Reply
Re: [afinlr] HELP - User Monitor : showbc.com (???) In reply to
Thank you Laura,

I found the page of assistance.
I did not look at well (I am tired).
I followed the instructions and it is good.

It is difficult to contact the author !

Thank you

Mick
Quote Reply
Re: [mick31] HELP - User Monitor : showbc.com (???) In reply to
Yes, I don't think that Ian reads these boards any more. I think he decided to leave the plugins available with no support but there are usually people on the boards who can help.
Quote Reply
Re: [afinlr] HELP - User Monitor : showbc.com (???) In reply to
Hello,

I do not manage to make work the labels.

<%Plugins::UserMonitor::UsersLinks('Username')%>
<%Plugins::UserMonitor::UsersLinks('Username')%>
<%Plugins::UserMonitor::Number_of_Reviews('Username')%>
<%Plugins::UserMonitor::TopXUserRating('NumberToShow')%>
<%Plugins::UserMonitor::UserLastLogin($Username)%>
<%Plugins::UserMonitor::UserSecondLogin($Username)%
<%Plugins::UserMonitor::UserLogins($Username)%>
<%Plugins::UserMonitor::UserRewards($Username)%>
<%Plugins::UserMonitor::TopXUserRating('NumberToShow')%>

It will be necessary to work with a loop ?
I do not find a message on the forum to help me.


Last Login, 2nd Last and 3rd Last are always to 0.
-------------------------------
LOGINS: Logins: 0 (22) Last Login: 0000-00-00 00:00:00 2nd Last: 0000-00-00 00:00:00 3rd Last: 0000-00-00 00:00:00
REWARDS: Account Balances: 0 Date Last Paid: 2003-11-08 00:26:26 Amount: 0
OWNERSHIP: Links: 1 Reviews: 0
-------------------------------
Last Login, 2nd Last and 3rd Last are always to 0.

An idea?

Thank you for your answer.

Mick
Quote Reply
Re: [mick31] HELP - User Monitor : showbc.com (???) In reply to
Have you clicked on 'Repair Table' under UserMonitor in the Plugins admin?
Quote Reply
Re: [afinlr] HELP - User Monitor : showbc.com (???) In reply to
Hello,

Yes.

But, the script gives me information if I connect myself like Editor.
Not if I am connected like Utilisateur.

I do not understand.

I must modify a right?

Mick
Quote Reply
Re: [afinlr] HELP - User Monitor : showbc.com (???) In reply to
Hello,

I confirm, if the user connects himself as Editor, the scritp is good.

But with Registered it does not work correctly on UM_LLA UM_LLB UM_LLC ...


You have an idea ?


Thank you

Mick

Last edited by:

mick31: Nov 7, 2003, 6:23 PM
Quote Reply
Re: [afinlr] HELP - User Monitor : showbc.com (???) In reply to
Hello Laura,

I found my error.


I placed on the file login_success.html the following lines :

---------------------------------

<%get_user_link_count (1)%>
<%if user_link_count > 0%>
You have ( <%user_link_count_val%> ) link(s) validated(s).<BR>
You have ( <%user_link_count_un%> ) link(s) no validated(s).<BR>
You have ( <%user_link_count%> ) link(s) on the Total.
<%endif%>


---------------------------------

Global ' get_user_link_count '

sub {
## if you add two columns to your Users table, Link_Count_Validated and Link_Count_Unvalidated
## every time a user logs on, their counts will be updated in their user record.
## low overhead call, as long as you only call it on the Logon Success page.
## or, add a test, and another parameter to flag the updates.
##
## my $update_USER_counts = shift;
##
## and wrap the db_user->update call in an 'if $update_USER_counts call.
## pass in <%get_user_link_count (1)%> to flag the update, 0 to ignore.
##
my $update = shift;
($USER) || return (user_link_count => 0, user_link_count_un => 0, user_link_count_val => 0);
my $db = $DB->table('Links');
## print "username is: $USER->{Username}";
my $user_link_count_val = $db->count(isValidated => 'Yes', LinkOwner => $USER->{Username});
my $user_link_count_un = $db->count(isValidated => 'No', LinkOwner => $USER->{Username});
my $user_link_count = $user_link_count_val + $user_link_count_un ;
if ($update) {
my $db_user = $DB->table('Users');
$db_user->update ( {
Link_Count_Validated => $user_link_count_val,
Link_Count_Unvalidated => $user_link_count_un
},
{
Username => $USER->{'Username'}
});
};
##print "User link count is : $user_link_count";
return ( {
user_link_count => $user_link_count,
user_link_count_un => $user_link_count_un,
user_link_count_val => $user_link_count_val
})
}

---------------------------------
These lines give the number of links.
For the users not for the editors !

links which are validated.
links which await the validation.
The total of the links.


I must remove it.

But, the users like this information !

I seek a solution.

An idea ?

Thank you Laura.

Mick
Quote Reply
Re: [mick31] HELP - User Monitor : showbc.com (???) In reply to
Sorry, I'm not sure what the problem is? Why do you need to remove this? I don't understand why this is affecting the UserMonitor plugin?
Quote Reply
Re: [afinlr] HELP - User Monitor : showbc.com (???) In reply to
Hello Laura,

If I leave this line, the connection of the users is not detected.

But, I am not able to give you the reasons.

I withdrew the line and the statistics are updated!

<%get_user_link_count (1)%>

There is a conflict with the Global (???).

Thank you

Mick
Quote Reply
Re: [mick31] HELP - User Monitor : showbc.com (???) In reply to
I can't see why at the moment. Can you try <%get_user_link_count (0)%> - I can't see why you need to update the user table unless you are using these tags on other pages which seems unlikely.
Quote Reply
Re: [afinlr] HELP - User Monitor : showbc.com (???) In reply to
Good evening Laura,

Your proposal seems good.

Thank you.

I have a last problem with script.

It does not give the good url for the image on the file um_profile_update.html.

The tag <%UM_Image%> is not good on this page.

I tested <%UMP_Image%> but no result.

You have an idea?

Thank you.

Mick
Quote Reply
Re: [mick31] HELP - User Monitor : showbc.com (???) In reply to
Hello,

My problem is solved Crazy.

< input type="hidden" name="UMAction" value="update" >

Thank you.
Quote Reply
Re: [mick31] HELP - User Monitor : showbc.com (???) In reply to
Well done for finding it!