Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 13 Jul 2019, 10:28
scrummi scrummi is offline
 
Join Date: Nov 2014
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
Reply With Quote
  #2  
Old 13 Jul 2019, 14:13
iA1 iA1 is offline
 
Join Date: Jul 2018
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.
__________________
Make your forum mobile friendly and get app-like features:
App-like icon on your smartphone homescreen
Responsive style - for vBulletin 4.2.x as well as vB 3.8.x - Contact for custom work
Push notifications for new replies, likes and PM
Reply With Quote
  #3  
Old 14 Jul 2019, 11:40
scrummi scrummi is offline
 
Join Date: Nov 2014
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
Reply With Quote
  #4  
Old 14 Jul 2019, 20:15
iA1 iA1 is offline
 
Join Date: Jul 2018
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.
__________________
Make your forum mobile friendly and get app-like features:
App-like icon on your smartphone homescreen
Responsive style - for vBulletin 4.2.x as well as vB 3.8.x - Contact for custom work
Push notifications for new replies, likes and PM
Reply With Quote
  #5  
Old 15 Jul 2019, 08:55
scrummi scrummi is offline
 
Join Date: Nov 2014
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 10: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?
Thanks
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Major Additions VBay! Transform your vbulletin into an auctionhouse! Blaine0002 vBulletin 3.6 Add-ons 1678 11 Aug 2014 01:22



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 19:06.

Layout Options | Width: Wide Color: