MyBB Community Forums

Full Version: How to make user style links have different hover effecs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2011-08-15, 09:22 PM)Claire Wrote: [ -> ]
(2011-08-15, 07:04 PM)Camgaertner Wrote: [ -> ]
(2011-08-15, 10:50 AM)Claire Wrote: [ -> ]And not to be "That guy", but doesn't w3Schools teach this in principle on their CSS tutorial? So....It's kind of common knowledge. So why consider it a tutorial? What does it teach the Mybb User about the software and how it can be manipulated to benefit their needs within the LGPL license?

It teaches the Mybb User how to give hover effects for the user styles within the user style.

Knowing how to give a hover effect should be common knowledge when it comes to knowing CSS, it really doesn't show us anything new about the software that we can utilize to our own advantages.
A lot of things in the tutorial section should be common knowledge about it when it comes to <insert language here>. Perhaps you can tell the creators of these tutorials as well.
http://community.mybb.com/thread-97767.html
http://community.mybb.com/thread-93720.html
http://community.mybb.com/thread-101003.html
http://community.mybb.com/thread-101002.html
http://community.mybb.com/thread-75668.html
http://community.mybb.com/thread-95043.html
http://community.mybb.com/thread-97828.html
In case anyone is interested, I have found a way so that you do not have to put Username Style in each of the groups and simply adding that code
onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'" 
in the section that I am going to show you basically you have to copy and paste I put first the part that you have to look for and the other you copied.

The file is inside the mybb root and is inside inc --> class_feedgeneration.php

Part to copy, to search

$author = "<a href=\"".$this->channel['link']."member.php?action=profile&uid=".$item['author']['uid']."\">".$item['author']['name']."</a>";

Part that is replaced.
$author = "<a href=\"".$this->channel['link']."member.php?action=profile&uid=".$item['author']['uid']."\" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">".$item['author']['name']."</a>";

PD: I don't know in the firefox browser the code doesn't work. At the moment in chrome and edge they work.
Pages: 1 2