The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
text-transform capitalise
Hello,
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 https://davidburgos.blog/text-transf...e-doesnt-work/ Any idea how to create the function? Thanks |
#2
|
|||
|
|||
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. |
#3
|
|||
|
|||
Hello!
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 |
#4
|
|||
|
|||
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: Code:
<script> var x = document.getElementsByClassName("forumtitle"); var i; for (i = 0; i < x.length; i++) { x[i].innerHTML=x[i].innerHTML.toLowerCase(); } </script> <style>.forumtitle{text-transform:capitalize}</style> Instead of all this, the easiest way is to simply edit the forum titles manually in Forum Manager in admincp. |
#5
|
|||
|
|||
Wow! Awesome.
Need to make some changes in some templates but just was I was looking for. Lots of thanks --------------- Added [DATE]1563187923[/DATE] at [TIME]1563187923[/TIME] --------------- 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? Thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|