Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Problem trying to customise Unified theme
Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Sep 25, 2014 - 8:19 am

Hi guys.

This is driving me nuts...

I am trying to modify certain things and I cannot find what I am looking for.

For example, how do I change the value for spHeaderName ? I want to change the font size.

The only place where I found it is in unified.php, but I guess that's not the right place...

I am using the Mono overlay, there is nothing there...

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 25, 2014 - 8:32 am

Hey Stefano,

You can edit unified.php directly, or you can edit the overlay you're using, so you can do either really..

If you open unified.php, find what you want to edit - in this case spHeaderName, and see what rules it has. Eg:

#spMainContainer .spHeaderName,
#spMainContainer .spHeaderName span {
    font-family: <?php echo($headerNameFontFamily); ?>;
    font-size: <?php echo($headerNameFontSize); ?>;
    font-weight: <?php echo($headerNameFontWeight); ?>;
    text-transform: <?php echo($headerNameTransform); ?>;
    color: <?php echo($headerNameColor); ?>;
    background: <?php echo($headerNameBackGround); ?>;
    margin: 0;
    padding: 5px 0px 0px 0px;
}

So in this case, font-size is being controlled through $headerNameFontSize, which you will find in your overlay.

Now you can either change font-size: in unified.php, so something like

#spMainContainer .spHeaderName,
#spMainContainer .spHeaderName span {
    font-family: <?php echo($headerNameFontFamily); ?>;
    font-size: 15pt;
    font-weight: <?php echo($headerNameFontWeight); ?>;
    text-transform: <?php echo($headerNameTransform); ?>;
    color: <?php echo($headerNameColor); ?>;
    background: <?php echo($headerNameBackGround); ?>;
    margin: 0;
    padding: 5px 0px 0px 0px;
}

Or you can change the value of $headerNameFontSize in the overlay, something like

    $headerNameFontSize                    =    '80%';        # Used for main view headings

Hope this helps!

Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Sep 26, 2014 - 4:58 am

Hey Ike, thank you for answering.

The problem is, I looked into the overlay file and changed $headerNameFontSize.

It was 100%, now it's 130%.

And nothing changed!

I cleared every cache available and still nothing...

Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Sep 26, 2014 - 6:41 am

Done! I finally made it and now everything is working fine.laugh

Last question (hopefully!)...

On the left side of a post there is the area with the members name, avatar and so on.

Each rank has a specific badge which shows up. But under the badge there is the name of the rank, which is a duplicate of the badge itself.

How can I remove it?

I hope I have been clear enough...

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 26, 2014 - 8:56 am

Good stuff! Apologies on the late reply, been out of action this morning.

I take it you're referring to the forum ranks badge, and removing the title underneath?

If so, you just need to add the argument showTitle=0 to the function, whether rank or special rank. If you take a look at this codex page (and you can do this with most functions in the template) it will tell you what you can apply to the function to get it to behave differently, pretty straight forward when you've done a couple!

So open your theme folder, and go to templates > spTopicView.php. You will need to change either sp_PostIndexUserRank, sp_PostIndexUserSpecialRank, or both.

Just add &showTitle=0 after the 'tagClass' call, so the function will then look like:

sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank&showTitle=0 spCenter');

This should remove the title from under the badge, similar to how we display the rank here.

Hope this helps

Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Sep 27, 2014 - 2:25 am

I am the happiest man ever! laugh

Thank you SO much, Ike! It works perfectly! wink

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 27, 2014 - 2:55 am

you are welcome!  glad we could help...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625