The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Hover buttons

+2
skouliki
SpyroDragon
6 posters

Go down

In progress Hover buttons

Post by SpyroDragon August 27th 2022, 1:01 am

You know how theres a way to add hover pics to the navigation bar.. like it look normal, but then on hover the image changes to add an effect?
is there a way to do this with other buttons such as " Reply " " create new topic " ? Hello
SpyroDragon
SpyroDragon
Forumember

Posts : 462
Reputation : 2
Language : English

http://tlos.forumotion.net/

poesia-verses likes this post

Back to top Go down

In progress Re: Hover buttons

Post by skouliki August 27th 2022, 7:45 am

yes you could do it

but please be more specific about the result you want to succeed in or add a screenshot
skouliki
skouliki
Manager
Manager

Female Posts : 15311
Reputation : 1705
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

TonnyKamper likes this post

Back to top Go down

In progress Re: Hover buttons

Post by SpyroDragon September 3rd 2022, 6:55 am

example - dragonforum.com
Notice how when u hover over the navigation bar, it changes colors.. for the " Reply " & " new topic " i would like the same effect
SpyroDragon
SpyroDragon
Forumember

Posts : 462
Reputation : 2
Language : English

http://tlos.forumotion.net/

Back to top Go down

In progress Re: Hover buttons

Post by Ape September 3rd 2022, 5:59 pm

Your navbar is made with a image's so when you hover over the image it will change to a new image.

so you would have to have your buttons you already have remade to look a little different so when you hover over then it would change just a little.

On my forum I have text on a transparent background then i use colour backgrounds to change on hover.


Hover buttons Left1212Hover buttons Center11Hover buttons Right112
Hover buttons Ape_b110
Hover buttons Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19325
Reputation : 2005
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

TonnyKamper likes this post

Back to top Go down

In progress Re: Hover buttons

Post by SarkZKalie September 4th 2022, 10:52 pm

Hello @SpyroDragon

Try add this to your CSS
Code:
.nav a img:hover {
    opacity: 0.6;
    transition: .1s all ease;
}


Hover buttons Sarkzk10
SarkZKalie
SarkZKalie
Support Moderator
Support Moderator

Male Posts : 1442
Reputation : 220
Language : English

https://rotavn.forumotion.com/

Back to top Go down

In progress Re: Hover buttons

Post by Ape September 5th 2022, 12:16 am

@SarkZKalie he doesn't want it for the nav bar, he wants it for the main forum buttons Wink


Hover buttons Left1212Hover buttons Center11Hover buttons Right112
Hover buttons Ape_b110
Hover buttons Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19325
Reputation : 2005
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

In progress Re: Hover buttons

Post by Niko September 9th 2022, 11:56 am

Coucou @SpyroDragon

that for sure is possible Wink
the fact is that the navbar images are two, one for the regular version and one for the :hover version - do you have the new topic/reply normal/hover images already available?
Niko
Niko
Helper
Helper

Male Posts : 3231
Reputation : 248
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

TonnyKamper and poesia-verses like this post

Back to top Go down

In progress Re: Hover buttons

Post by Razor12345 September 13th 2022, 5:42 pm

Hello,

I can offer a variant with "double" buttons:

AP - Display - Templates - General - viewtopic_body

Find

Code:
<!-- BEGIN switch_user_authpost -->
         <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}one" alt="{L_POST_NEW_TOPIC}" align="middle" border="0" /></a>&nbsp;&nbsp;&nbsp;
         <!-- END switch_user_authpost -->
         <!-- BEGIN switch_user_authreply -->
         <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" id="i_reply" alt="{L_POST_REPLY_TOPIC}" align="middle" border="0" /></a>
         <!-- END switch_user_authreply -->

P.S. In this template, this code fragment occurs twice (displaying buttons at the top and bottom of the page).

Replace by this

Code:
<!-- BEGIN switch_user_authpost -->
         <div class="newtopic"><a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src='https://webcodius.ru/wp-content/uploads/2015/05/button.png' /></a></div>&nbsp;&nbsp;&nbsp;
         <!-- END switch_user_authpost -->
         <!-- BEGIN switch_user_authreply -->
                          <div class="replytopic"><a href="{U_POST_REPLY_TOPIC}"><img src='https://webcodius.ru/wp-content/uploads/2015/05/button.png' /></a></div>
         <!-- END switch_user_authreply -->

Save - Publish.

This is the display of buttons in the theme itself.

AP - Display - Templates - General - viewforum_body

Find

Code:
<!-- BEGIN switch_user_authpost -->
<a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}" alt="{L_POST_NEW_TOPIC}" border="0" /></a>
<!-- END switch_user_authpost -->

P.S. In this template, this code fragment occurs twice (displaying buttons at the top and bottom of the page).

Replace by this

Code:
<!-- BEGIN switch_user_authpost -->
         <div class="newtopic"><a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src='https://webcodius.ru/wp-content/uploads/2015/05/button.png' /></a>
         <!-- END switch_user_authpost -->

Save - Publish.

AP - Display - Colors & CSS - CSS Stylesheet

Insert this code:

Code:
.newtopic, .replytopic {
display:inline-block;
height:29px;
overflow:hidden;
vertical-align: top;
display:-moz-inline-stack;
zoom:1;
*display:inline;
_overflow:hidden;
}

.newtopic img {
margin-top:-29px;
}

.newtopic img:hover{
margin-top: 0px;
}

.replytopic img {
margin-top:-29px;
}

.replytopic img:hover{
margin-top: 0px;
}

Save.

height:29px;
margin-top:-29px;

You will need to set these parameters for your buttons. I used one:

Hover buttons Button

-----------------------------

I made two buttons quickly:

Hover buttons Bezymiannyi-removebg-preview

Hover buttons Bezymiannyi-removebg-preview-2

You can see it in person on the forum: https://testtesttest.forumotion.me/f1-forum

Login: Test User
Pass: Qwerty123
Razor12345
Razor12345
Support Moderator
Support Moderator

Male Posts : 1575
Reputation : 266
Language : Ukr, Rus, Eng
Location : Ukraine

TonnyKamper likes this post

Back to top Go down

In progress Re: Hover buttons

Post by skouliki September 29th 2022, 12:37 pm

When your request is complete, please mark it as Solved.
skouliki
skouliki
Manager
Manager

Female Posts : 15311
Reputation : 1705
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum