We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

register, on your screen | Forum

Topic location: Forum home » Support » General Questions
lubunya.net
lubunya.net May 20 '20

How do I write things like username in the boxes

lubunya.net
lubunya.net May 20 '20


I want it to look like this


dave Leader
dave May 20 '20

So you want the red border and dark buttons ?


here is the default oxwall login



and on the first post to add the names inside the boxs is custom coding youll have to add the placeholder in the html file, i dont think you can do it via the profile questions

The Forum post is edited by dave May 20 '20
lubunya.net
lubunya.net May 20 '20
in the first picture

the boxes are empty

username / email

the articles are in the box

as on the second picture

lubunya.net
lubunya.net May 20 '20
I don't want a red border

I did it to highlight

dave Leader
dave May 20 '20
That is custom coding, youll have to add the html placeholder to the file itself
dave Leader
dave May 20 '20

https://www.w3schools.com/tags/att_placeholder.asp


It can be done with js as well but the input id's for oxwall are random so you cant use the id to trap it. 



The Forum post is edited by dave May 20 '20
lubunya.net
lubunya.net May 20 '20
how do i do this
dave Leader
dave May 20 '20
how much do you know about html, css, js, php?
lubunya.net
lubunya.net May 20 '20
honestly, nothing
dave Leader
dave May 20 '20

Then your options are limited in doing it yourself.


1. you can have someone help you do the coding

2. you can pay someone  to do the coding

3. you can ask a dev to code a plugin for this

4. you can learn HTML, CSS, JS, PHP on your own

5. you can leave it alone and keep things you want to do inside your experience level, and the default ability of oxwall.


Those are your options. 


The way the registration works is that the php file sets the form input attributes and then the html file (smarty) displayes those attributes.  However, many of the inputs are done in an array so its just one question right after the other with limited isolation ability.  In other words it would be a challenge to select just username or just password by simple coding as they are not identified as different when displayed if that makes sense other than input name.


It can be done but it will take special coding to do it.  Someone very good at JS or CSS may be able to do it with some really high end coding to not edit the core files.


The actual code addition is easy


placeholder = 'whatever' for the html file


or for the php file would be


$this->addAttribute("placeholder", "whatever");


the problem is you need to isolate each field with the custom name or all of them will read the same.  You could add a php if statement to the core php file but then again you are changing the core and if you ever update your change is gone.


So the other alternative would be to use js or css to grab the input on the users side and just add the html attribute that way, but i dont know how to do that.


The Forum post is edited by dave May 20 '20
lubunya.net
lubunya.net May 20 '20
That was bad. but thank you so much Dave
The Forum post is edited by lubunya.net May 20 '20
dave Leader
dave May 20 '20
I edited my last post, and your welcome, i hope someone knows how to do it easily via css or js and you can get this resolved :)
lubunya.net
lubunya.net May 20 '20
 you are a king

wild west king :D