From: p d. t. <pdo...@an...> - 2003-06-14 17:45:53
|
> Anyway, your idea didn't seem to work. Is there a problem in PHP with > embedding or nesting a variable within a vairable, or a function call > within a > variable? Because every time I try to do something like that, I get no > output > for the username. > > Specifically, you said try to use this as my motd line: > 'motd' => 'Welcome, <font color="red"><b>' . $_SESSION['username'] . > '</b></font>!'; > > This didn't work (it competely crashed SquirrelMail), so I tried it like > this: > $motd = 'Welcome, <font color="red"><b>' . $_SESSION['username'] . > '</b></font>!'; that was my mistake. I was thinking about when the setting is contained in the vlogin plugin, but obviously, we weren't talking about vlogin. ;> > This at least doesn't crash the entire Squirrel, but my useername is not > printed, either; all I get is this: > Welcome, ! > > I had also tried this: > $motd = 'Welcome, <font color="red"><b>' . $username . '</b></font>!'; > > With identical results: > Welcome, ! OK, attached is a new version of the username plugin. After installaion, it will add a new setting in the Display Preferences section that allows you to show the username as the MOTD. You can change the format of the welcome message by editing it near the top of the file functions.php. I also shrunk the display of the username in the top/bottom of the folders list so it's a lot more pleasant on the eye. Please let me know if it works/doesn't work. cheers, paul |