Jump to content

Welcome to Fundayforum. Please register your ID or get login for more access and fun.

Signup  Or  Login

house fdf.png

ADMIN ADMIN

Gully Boy 2019

IMDB: 8.1/10 || Size: 406MB || Language: Hindi(Clean Audio) Genre: Drama, Music Quality: 480p PreDVD Director: Zoya Akhtar Writers: Zoya Akhtar, Reema Kagti Stars: Alia Bhatt, Ranveer Singh, Kalki Koechlin Storyline: A coming-of-age story based on the lives of street rappers in Mumbai.
Watch and Download

Alita - Battle Angel 2019

IMDb: 7.6/10 Genre : Action, Science Fiction, Thriller, Romance Director : Robert Rodriguez Stars : Rosa Salazar, Christoph Waltz, Ed Skrein, Mahershala Ali, Jennifer Connelly LANGUAGE: Hindi (Cleaned) – English Quality: 720p HD-Camrip PLOT: Six strangers find themselves in a maze of deadly mystery rooms, and must use their wits to survive.
Watch and Download
Sign in to follow this  
ADMIN

Colored/Styled User Titles in IPS 4.1

Rate this topic

Recommended Posts

Hello my lovely friends!

somebody was asking at the IP.Board support section how he could color his user titles and I found a quite easy way to help him out.

I think theres no plugin out there to do this job, so we do it ourself! I think it will help alot of people here.

 

1. Go to Admin CP -> Customization -> Themes -> YOUR THEME -> Edit HTML and CSS

2. Search the Templates Tab for -> forums -> front -> topics -> postContainer

3. Search the following code:

{{if $comment->author()->member_title && $comment->author()->member_id}}
	<li class='ipsResponsive_hidePhone ipsType_break'>{$comment->author()->member_title}</li>
{{endif}}

and replace

<li class='ipsResponsive_hidePhone ipsType_break'>{$comment->author()->member_title}</li>

with:

<li class='adm_{$comment->author()->member_id}'>{$comment->author()->member_title}</li>

Save the postContainer template, we are done here.

4. Go to the CSS Tab and search for core -> front -> custom -> custom.css, now add the following code/class:

.adm_1 {
color:red;
font-weight:bold;
}

and save it, voilá!

Important:  This code will color the user title of the user with the ID 1.

To give other users colored user titles you just have to create more classes in your custom.css.

Example: Morpheus want's black and has the member_id 666.

.adm_666
color:black;
}

 

I hope this helps, btw. you can also change the member_id variable in your templates to member_group variable and give each user group a static user title color/style!

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Forum Statistics

    1,923
    Total Topics
    8,508
    Total Posts
×