a announcement or note to customer in DA?

congkai

Verified User
Joined
Dec 12, 2005
Messages
143
Location
Singapore
have anyone seen or anyone able to make something like a note for the client to see in their control panel. i saw it in cpan*l where they got a place for us to put in the notes and announcement?

i took a screenshot. as attached.
 

Attachments

  • Screenshot018.jpg
    Screenshot018.jpg
    37.9 KB · Views: 182
As long as you realize that most people won't log in to read it. We find that over half of our clients NEVER log in to DirectAdmin.

I've moved the post to Feedback & Feature Requests.

Jeff
 
do you know how to make it? at least i can have "a speech form the web hoster"

so any announcement or welcome message i can add in.
 
The hooks in the plugins may be able to do it..
Basically, create the hook to actually be a javascript popup... (bad idea already) which would then load any page you want.

Or if you can get fancy with dhtml, have one of those virtual popups which stores a cookie so it only shows it to them once, until you update it.

Or a simpler version would be to just add your message into the hook itself.. the problem with that is the message would be down at the bottom where the plugin links are. (then use cron to update the message, or update it as root manually)

John
 
hi john, i saw the plugin...

thanks!

so lets say i want to add a messaging system on the right side of enhanced skin, below the message recieved, i need to open up the enhanced skin and edit the find the right side panel, add one of this lines in

SKINS:
admin/content_main.html:
|PLUGIN_0_ADMIN_TXT|
|PLUGIN_1_ADMIN_TXT|
|PLUGIN_2_ADMIN_TXT|
|PLUGIN_3_ADMIN_TXT|

is it?


Can i know which is the file to edit the right panel of enhanced skin where it shows the access level, space used, and message system.

and which token to add in?
 
i think i found it.

in /enhanced/footer_bar_1.html

which token to add after the mail thing inorder to show announcement after the mail?
 
i made it! this is now showing admin.html..

but it is appearing in 2 places. the menu and the side :( is there a way i can show only at the right side and not in the Extra Features place?

i tried deactivating the plugin to stop display in extra features. but it also stop showing in the right side. how?
 

Attachments

  • Screenshot020.jpg
    Screenshot020.jpg
    136 KB · Views: 159
how did you make it show up in the top right? Did you hardcode it to the skin, or are you doing something using tokens/plugins to get it up there?

John
 
****.. am i doing something wrong to edit the skin in /enhanced/footer_bar_1.html... i am sorry if i really broken any rules. i did not know anything about editing the skins. I just want to make this work.

It now appeared there (the picture is out of placement because i did not place a <br>. so if i place a br, it will be nicely placed.

now the problem is, which token to put? in order to make it work? and where to edit the token? (for my case, its global token, everyone including admin, reseller, user view the same thing)
 
If you're going to end up editing certain skin files anyway (which is fine, just beware of updates overwriting it), then you might as well go a bit fancier ;)

Where ever you want to put your code, try putting this there instead:
Code:
|$/bin/sh
cat /etc/motd
DONE|
And then... add:

/etc/motd=user=root&group=root&permission=644

to your:
/usr/local/directadmin/data/templates/edit_files.txt
file..

You can then go to:
Admin Level -> File Editor
and selected your /etc/motd file (Messge Of The Day)
I believe the motd file also shows up when you login to ssh.

This doesn't use plugins at all.

John
 
It looks great now!

if anyone is interested in the code i put in /enhanced/footer_bar_1.html

here it is

HTML:
									</td></tr>			

										</table>		

						</td>							

	<td valign=top align=right class=white style="BACKGROUND: #345B80;">				

					<div style="padding-right: 5px;" class="off_white">
<br>
<p align="left">   <b><u>Global Announcement:</p></b></u>
<center>
<TABLE style="BACKGROUND: #345B80;border: dotted;" width="90%">
	<tr>
		<td class=bar-row1><font color="#FFFFFF">
|$/bin/sh
cat /etc/motd
DONE|
</font></td>
	</tr>
</table>
</center><br>										<a 

class="off_white" href="/CMD_TICKET">|LANG_MESSAGE_SYSTEM|</a> (<b>|NEWMESSAGES|</b> |LANG_NEW|)	

								</div><br>
 

Attachments

  • Screenshot021.jpg
    Screenshot021.jpg
    123.5 KB · Views: 142
Back
Top