FM Themes
Welcome to FM Themes
where you can share your punBB, phpBB 2, Invision, & phpBB 3 themes for Forumotion forums.

You are viewing the forum as a guest, so you will not be able to use the full forum. To use all the features of the forum, you need to log in or create a FREE account by registering.

Stylize & Make Rank Titles Link To Groups

View previous topic View next topic Go down

Ange Tuteur
Special Themer
Reputation : 204
Points : 9162
Posts : 303
View user profile

PostAnge Tuteur on Sun Oct 06, 2013 4:49 pm

Stylize & Make Rank Titles Link To Groups

This guide will help you achieve the following:

Before making any changes, be sure that you meet the following conditions:
1. ) You must have some knowledge of HTML and hooks
2. ) You must know how to utilize the Stylesheet

Creating the rank title

Firstly you will need to create a new rank(at least for this tutorial if you're new)

Go to Administration Panel > Users & Groups > Ranks > Rank Administration > Add new rank

Now write the name of your rank into the rank title, for this tutorial I will be using Administrator. Once you have done that we will now make the title a link by adding:
<a href="/g1-administrators" class="Administrator" target="_blank">Administrator</a>
The group I am referring to is '/g1-administrators' if no primary url is present href will target local pages, for each group it changes, you can check these urls on the homepage. Our class being used is simple class="Administrator" this will be our hook selector so we can stylize the rank title through CSS. Lastly I am opening these ranks in a new window using target="_blank" you can remove or keep that depending on how you wish the rank link to behave.

Once you have edited the above to your liking be sure to save the rank title.

Stylizing the rank title

Now that we have our rank title and hook selector setup we can start stylizing our rank.

Go to Administration Panel > Display > Pictures and Colors > Colors > CSS Stylesheet

Our selector we will be using is 'a[href="/g1-administrators"].Administrator' read the following for a quick explanation. 'a[href="/g1-administrators"]' will help us stylize the url, it selects every '< a>' element whose href attribute value contains the substring "/g1-administrators". '.Administrator' is our basic selector for stylizing the default text of the rank title. Putting two together will help us in fully customizing the rank title however, this combination will not display properly on outdated browsers.

The setup I am using is the following, you can replace the selectors I have if you're using different ones.
color: #B70000;
text-shadow: 0px 0px 6px #B70000;
Once you have pasted the code into your stylesheet be sure to hit submit to apply the changes! Afterwards you should now have a stylized rank title that also links to the group of that title. Good luck! Wink


For the transition effect we use the pseudo selector ':hover' on our basic selector.(.Administrator) When a user hovers their mouse over the rank, the rank will move to the right by 10px; by adding a margin of 10px over 0.5seconds to the left which creates the effect of a moving unit. You can remove the hover and transition effect entirely if you do not prefer such.

Pointers you can use on modifying the following:
color: This will allow you to modify the color of the rank title; you can specify colors using RGB, Hex, or text.
font-weight: This allows you to adjust the weight of the font using numbers or text.(700 is bold and bold is bold)
text-shadow: This allows you to create a text shadow for the text.(Read [You must be registered and logged in to see this link.] for detailed info.)
transition: This specifies the amount of time it takes to complete a hover effect.

margin-left: This is the margin added to the left on a hover, it is specified in pixels(px) you can add different hover effects if you wish. Be sure to modify transition for different speeds.

Useful reading

[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]

Tutorial written by [You must be registered and logged in to see this link.]
No reproduction possible without our consent.
Reputation : 281
Points : 1290
Posts : 3435
View user profile

PostSLGray on Thu Oct 10, 2013 10:07 am

Tutorial Approved

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!

Create a new account

Log in

Already have an account? No problem, log in here.

Log in

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