Author Topic: message_to_user plugin  (Read 5977 times)

Offline HiperGlow

  • Jr. Member
  • **
  • Posts: 15
message_to_user plugin
« on: November 23, 2010, 06:15:07 PM »
From time to time, I will need to put a message on the login screen, I was actually first "hacking" the index.php, but then I tried to make it a plugin.

This is what came out.

I am no PHP expert, so comments on the coding is okay :)
There may be a plugin which can do this, then I was unable to locate it.

Offline emmeliv

  • Jr. Member
  • **
  • Posts: 12
Task
« Reply #1 on: December 14, 2010, 03:25:02 AM »
Hi!

I tried your plugin and it works fine except for one thing: the div shows up after logging in too!
I solved that by specifying which tasks it should act on:
Code: [Select]
public $task ='login|logout';

Offline HiperGlow

  • Jr. Member
  • **
  • Posts: 15
message_to_user plugin
« Reply #2 on: December 14, 2010, 12:09:24 PM »
hm, I have never seen that happen?

What version are you running of RC ?