vBulletin Mods

The Official vBulletin Modifications Site

text-transform capitalise
by scrummi
13 Jul 2019 11:28


I have $forum[title] all in capital letters / uppercase i need to capitalise
However it doesnt work via css
It looks is due they have to be in lowercase first

Any idea how to create the function?


iA1 13 Jul 2019 15:13

If you want the whole title to be in uppercase, use:

text-transform: uppercase;

Edit: I think I have misunderstood. You already have the title in uppercase and you want to capitalize only the first letter. Then use the function given in your link as javascript.

That function will apply to all p elements on the page. You might have to add specific id or class to forum title first and then use this function.

scrummi 14 Jul 2019 12:40

Very kind to answer.
The issue is I have no idea to code or how to create plugin
Do you mind to give me hand creating specific class so I can add it where I need it

I appreaciate

iA1 14 Jul 2019 21:15

You will have to edit at least 6 templates to apply specific class to forum title. Search for $forum[title] in templates and in each of the results, look for the line:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>

Edit that line and add class="forumtitle" just before href. It will look like this:
<a class="forumtitle" href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>

Then edit the footer template and add this code at the end:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Instead of all this, the easiest way is to simply edit the forum titles manually in Forum Manager in admincp.

scrummi 15 Jul 2019 09:55

Wow! Awesome.
Need to make some changes in some templates but just was I was looking for.
Lots of thanks

--------------- Added 15 Jul 2019 at 11:52 ---------------

Hello again,

It works vey well however, you can see how text transforms form uppercase to capitalise
It it possible to move script somewhere else of css fix so eyes dont notice the change?

All times are GMT. The time now is 08:33.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.