Dear lovely Community,
so far I installed and configured ejabberd on debian. works real well, I am testing now for 2 weeks.
My Problem is, I recently activated the registration through a web service. Also this works fine but I want to edit the html / css. How can I link a css file or where can I find the "register" html?
Only thing I did so far in the "ejabberd,cfg" was to activate or add these lines, like it is described in the documentation:
(
{5281, ejabberd_http, [
tls,
{certfile, "/etc/ssl/certificate.pem"},
%%{request_handlers, [
%% {["register"], mod_register_web}
register
%%]}
]}
...
{mod_register_web, []}
The page "https://myserver.org:5281/register/" works! But where is the html or php file, where to add the css??
Please someone need to know this. I would be very thankful for any kind of help.
Edit:
Do I have to put a css file in the ejabberd.cfg?
The CSS web file is provided
The CSS web file is provided directly by mod_register_web erlang code. So, to modify the content of the CSS web file:
1. Edit mod_register_web.erl
2. Modify the lines that say:
3. Compile that file with an Erlang version similar to the one you are using to run ejabberd:
erlc mod_register_web.erl
4. Copy the binary file mod_register_web.beam to overwrite the old one (keep a backup in case it has some bug).
5. Restart ejabberd.