Support Forum
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...
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!
Done! I finally made it and now everything is working fine.
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...
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
you are welcome! glad we could help...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)