Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Buttons?
#1
Photo 
[Image: 687474703a2f2f692e696d6775722e636f6d2f51...4e2e706e67]
how to add buttons on username and password look like up photo?
what is template code?

Thanks
Supporter | MyBB
Reply
#2
Can you please share your website url ?
Also template should be header_welcomeblock_guest
Reply
#3
Hi MonsterR_X

Do you want to put login box at forum's header like here on image or just have it look like buttons?

Please provide your forum url so I can see what I can do
MyBB Translator & helper
Please do not sent me private messages requesting help and support for your forums. Instead post it in appropiate forums.
Reply
#4
(11-27-2017, 03:37 PM)WallBB Wrote: Can you please share your website url ?
Also template should be header_welcomeblock_guest

(11-28-2017, 12:17 AM)Ikerepc Wrote: Hi MonsterR_X

Do you want to put login box at forum's header like here on image or just have it look like buttons?

Please provide your forum url so I can see what I can do

Friends its normal mybb theme... how can i add on buttons? What is template code?
Supporter | MyBB
Reply
#5
(11-28-2017, 07:06 AM)MonsteR_X Wrote:
(11-27-2017, 03:37 PM)WallBB Wrote: Can you please share your website url ?
Also template should be header_welcomeblock_guest

(11-28-2017, 12:17 AM)Ikerepc Wrote: Hi MonsterR_X

Do you want to put login box at forum's header like here on image or just have it look like buttons?

Please provide your forum url so I can see what I can do

Friends its normal mybb theme... how can i add on buttons? What is template code?

Friend, that is not normal theme as normal (default) theme hasn't log in fields on that place. That's what I'm asking for, you need login on that place or just that design of your login fields?

So can you provide your forum url so I can check wich variables and everything for that are used in your theme?
MyBB Translator & helper
Please do not sent me private messages requesting help and support for your forums. Instead post it in appropiate forums.
Reply
#6
Sorry for the late freinds... here link - cyberghostweb.000webhostapp.com

Example freinds (but not this complete code. I dont know what type there.. this is normal example)
                                 
PHP Code:
<input id="logbox" name="user" type="user" placeholder="User name or E-mail"/>
<
input id="password" name="password" type="password" placeholder="password"/>
<
input type="button" value="SINGIN"/> 
I want it look like on this pic and how to type it templates?
[Image: 687474703a2f2f692e696d6775722e636f6d2f51...4e2e706e67]
Supporter | MyBB
Reply
#7
Try to add this at the end of your global.css template:

Code:
/** Login fields image */

input#quick_login_password.textbox {
    border: 1px solid black;
    background-image: url("http://cyberghostweb.000webhostapp.com/images/tcat.png");
    color: lightgray;
}
input#quick_login_username.textbox {
    border: 1px solid black;
    background-image: url("http://cyberghostweb.000webhostapp.com/images/tcat.png");
    color: lightgray;
}

That image is default MyBB image wich can be found at your forum root /images/tcat.png

Oh, you want to edit templates too, that's what I asked you before

Wait a little

So, go to ACP -> Templates & Style -> Templates -> Header Templates -> header_welcomeblock_guest

Than replace it with following code:

Code:
                        <!-- Continuation of div(class="upper") as opened in the header template -->
                        <span class="welcome">
                            <form method="post" action="{$mybb->settings['bburl']}/member.php">
                            <input name="action" type="hidden" value="do_login" />
                            <input name="url" type="hidden" value="" />
                            <input name="quick_login" type="hidden" value="1" />
                            <strong>{$login_username}</strong>
                            <input name="quick_username" id="quick_login_username" type="text" value="" class="textbox initial_focus" />
                            <strong>{$lang->password}</strong>
                            <input name="quick_password" id="quick_login_password" type="password" value="" class="textbox" />
                            <input name="submit" type="submit" class="button" value="{$lang->login}" />
                            <a href="{$mybb->settings['bburl']}/member.php?action=register" class="register">{$lang->welcome_register}</a>
                            </form>
                        </span>
                    </div>
                </div>


You asked me via PM how to remove "Username" and "Password" text, here is your code...

So, go to ACP -> Templates & Style -> Templates -> Header Templates -> header_welcomeblock_guest

Than replace it with following code:

Code:
                        <!-- Continuation of div(class="upper") as opened in the header template -->
                        <span class="welcome">
                            <form method="post" action="{$mybb->settings['bburl']}/member.php">
                            <input name="action" type="hidden" value="do_login" />
                            <input name="url" type="hidden" value="" />
                            <input name="quick_login" type="hidden" value="1" />
                            <input name="quick_username" id="quick_login_username" type="text" value="" class="textbox initial_focus" />
                            <input name="quick_password" id="quick_login_password" type="password" value="" class="textbox" />
                            <input name="submit" type="submit" class="button" value="{$lang->login}" />
                            <a href="{$mybb->settings['bburl']}/member.php?action=register" class="register">{$lang->welcome_register}</a>
                            </form>
                        </span>
                    </div>
                </div>

That will remove text and leave just 2 boxes...
MyBB Translator & helper
Please do not sent me private messages requesting help and support for your forums. Instead post it in appropiate forums.
Reply
#8
Thanks For Helping Guys
this instruction solved my problem too
Reply
#9
Here you have few more instructions about that question if you need something... https://community.mybb.com/thread-214455.html

And feel free to ask if you need something else or more.
MyBB Translator & helper
Please do not sent me private messages requesting help and support for your forums. Instead post it in appropiate forums.
Reply
#10
Ok thanx
Supporter | MyBB
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)