Plugin: Login info Plugin: Login info
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Plugin: Login info

Started by m@rk, December 26, 2006, 03:23:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

m@rk

I will attach my plugin here soon  ;)

m@rk

#1
I wrote a simple plugin:

Login info adds an info line, if you are logged in or not, below the menu on your Coppermine Photo Gallery.
In Admin Mode, an additional link to the Plugin Manager is displayed.

m@rk

P.S.: Available languages so far: English, German

Sorry for multiple postings, I don't seem to be allowed to edit my previous posts here?

m@rk

#3
Additionally, I'd like to display user_lastvisit, but I can't solve it...
Why doesn't this make any result?:

global $CONFIG, $REFERER;

$since= $lang_plugin_login_info['since'] . " ";

$result = cpg_db_query( "SELECT user_lastvisit FROM {$CONFIG['TABLE_USERS']} WHERE user_id = '{USER_ID}' ");

// why doesn't this make any result ???
while ($row = mysql_fetch_array($result)) {
   $tmp= substr($row['user_lastvisit'],11,5);
   $since .= "{$tmp}";
}


Is there a simple way to display user_lastvisit?

Nibbler


$result = cpg_db_query( "SELECT user_lastvisit FROM {$CONFIG['TABLE_USERS']} WHERE user_id = " . USER_ID);

m@rk

Thank you Nibbler !  ::)

So here is v1.3.

Summary:

Login info adds an info line below the menu on your Coppermine Photo Gallery, if you are logged in or not, and time of login.
In Admin Mode, additional links (manage plugins, view logs, check versions, display phpinfo) are displayed.

Available languages so far: English, German

François Keller

Hey M@rk,

Good work
Attached login_info_1_3_1.zip with french.php lang file and a little modif in lang files to display properly in french the négative you are not (vous n'êtes pas) words.
I've modified the codebase.php for this.
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Hardstyle-boy

hello
i have a problem,

sry for my english it is very bad

i have attach a screenshot

what do I need to change, I see the text so as to screenshot
   
the text below and not the middle of it

   
thanks in advance