PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Janhouse on 24 April, 2004, 19:38:38

Title: MOTD view and edit script
Post by: Janhouse on 24 April, 2004, 19:38:38
Can you view and edit MOTD using script?  ?(
Title:
Post by: plop on 24 April, 2004, 20:18:09
QuoteOriginally posted by Janhouse
Can you view and edit MOTD using script?  ?(
you can view and edit it but ptokax saves it on exit and only loads it on startup.
so any changes made by scripts will be lost and never seen by your users.

plop
Title:
Post by: enema on 26 October, 2004, 10:38:26
Huh, old post, so I figured out to ask again - arent there any chance of changing MOTD from difrient PC (not the one, where ptokax is instaled)???

 ...In deep hope, that things have moved on...
Title:
Post by: UwV on 26 October, 2004, 12:26:28
overwite the file in the ptokaxfolder..
(at a time your ptokax is not running) ...
so ..sharing the folder on local network .. or anyhow you like .. ftp or remote desktop whatever you like just overwrite the file from any pc you want ..
 but not "through ptokax"  
but i guess you want to do it "on the fly" huh
so.. no,   no change yet .. must do it while hub is not on ..
Title:
Post by: enema on 26 October, 2004, 19:59:52
yeah, I guess its the only way how to keep MOTD up-to-date if hub owner isint really able to do anything for hub   :(   (dont get me wrong, only prob. is, that owner sometimes leaves city or even country for weeks)
Title:
Post by: bolamix on 28 October, 2004, 22:04:13
QuoteOriginally posted by enema
yeah, I guess its the only way how to keep MOTD up-to-date if hub owner isint really able to do anything for hub   :(   (dont get me wrong, only prob. is, that owner sometimes leaves city or even country for weeks)
I see at least two solutions to your problem:
1) Arrange for someone else to host the hub when the hubowner is away.
I do that now and again, i just zip the ptokax folder so that all settings and scripts are current, and send it to one of the ops who can leave his computer on while I'm away. It takes a littlle explaining if the person isn't very technically-minded, but it works nicely. He can even take over if there's a problem on my 'puter while I'm at work.
2) Arrange a remote desktop connection to the machine running the hub.
This can be a bit tricky: some people might not like even friends to access their 'puters remotely in their absence, but if the hub is on a dedicated machine, then private files stay private; and there are probably security risks (hacking, etc) that I'm not aware of when using remote-control software.

Edit: I realize that you probably thought of that months ago... sorry if this is the case, it sounds very obvious now I'm re-reading my post o_O
Title:
Post by: bastya_elvtars on 28 October, 2004, 22:17:34
or use XtremeMOTD from LawMaker

umm sorry for self-commercial  :baby:  :D  :D  :D
Title:
Post by: enema on 31 October, 2004, 11:29:51
QuoteOriginally posted by bastya_elvtars
or use XtremeMOTD from LawMaker

umm sorry for self-commercial  :baby:  :D  :D  :D
So... what u are saying... that with lawmaker I can change motd?? I downloaded your lawmaker, but I still cant see this option
Title:
Post by: hyeclass on 03 November, 2004, 09:12:03
i useually use my own ptokax and edit the motd then i upload it to our ptokax ftp server :) just make the ftp directory and overwrite it but be carefull thats the best solution
Title:
Post by: enema on 03 November, 2004, 14:32:47
your ptokaX is working on ftp?? how's that possible??
Title:
Post by: Dj_OcTaGoN on 03 November, 2004, 16:13:06
Yeah i have thought about doing that as well.

Putting the PtokaX folder within FTP webroot.
Set only main PtokaX folder to be allowed to download/upload files. So then just dl the MOTD.txt file and edit it, upload and relogin into Hub to check if it looks good hehe (in the PtokaX [degub] version u dont have to restart hub, it will change directly, at least mine does when editing in the software. Though im not sure if this works when exchanging the MOTD.txt file...gotta test that)

cheers // Dj_OcTaGoN
Title:
Post by: enema on 03 November, 2004, 17:09:05
If you put a hubsoft on ftp, then what are you going to put in address and port field in ptokax?
Title:
Post by: Dj_OcTaGoN on 03 November, 2004, 18:43:41
Well I think hyeclass and me are talking about different ways now, right?

Im not talking about a webhosted FTP
Title:
Post by: enema on 03 November, 2004, 19:07:38
oh, ok... It has been a loooong day, Im not catching even my own thoughts :)
Title:
Post by: hyeclass on 04 November, 2004, 01:25:19
ok for example lets say i host the ptokax and also have a ftp server...... that is pointed out the the ptokax directory that way u can change motd file or anything u like except some settings in ptokax which require gui
Title:
Post by: Dj_OcTaGoN on 04 November, 2004, 09:47:18
So then we are talking about the same thing

cheers // Dj_OcTaGoN
Title:
Post by: UwV on 04 November, 2004, 14:03:58
good you got it ..
    but... just like plop mentioned in the post above.
       "MOTD will be overwritten when closing ptokax"..
       "with what it say's in the gui"
        (maybe in td4 only if save motd on exit is enabled? )
so just keep that in mind ....
or reboot the hub and gone is your motd ..
Title:
Post by: bastya_elvtars on 06 November, 2004, 21:42:43
whats in the motd textbox in the gui, it will appear, regardless of what is in motd.txt... i guess, or i saw something bad?

this is why it would be nice to have an active ptokax developer with ourselves to answer these questions.

As i know, the frmHub:SetCurrentMOTD() would not be hard to implement, or not harder as PPK implemented the frmHub:SetTopic() or what (bah, i have the lua5 beta but lazy 2 take a look)

btw sorry for my graphomany but i had a terrible week without compie :D
Title:
Post by: Dj_OcTaGoN on 12 November, 2004, 12:09:39
Isnt there a way to overrun PtokaX inbuilt MOTD and make a scripted MOTD only? Then together with one of the scripts where Masters can change txt files (I think the script are called "Save Strings"?) it would work excellent.

cheers // Dj_OcTaGoN
Title:
Post by: bastya_elvtars on 12 November, 2004, 12:12:28
QuoteOriginally posted by Dj_OcTaGoN
Isnt there a way to overrun PtokaX inbuilt MOTD and make a scripted MOTD only? Then together with one of the scripts where Masters can change txt files (I think the script are called "Save Strings"?) it would work excellent.

cheers // Dj_OcTaGoN

i already do it, will rip it 4 ya next week
Title:
Post by: Dj_OcTaGoN on 12 November, 2004, 12:19:58
ok cheers m8!  :D