Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Bitlab Media Group Posted November 20, 2018 Posted November 20, 2018 I am trying to do a customization where, i change TOPIC COUNT of the FORUM - into just the name of the forum.. Trying to use English Language translation - but not sure if there is a short-code for NAME of current forum the way there is for current TOPICS. {# [1:topic][?:topics] in this forum} in english translation shows this looks like this in language string i am trying {[?:forum]} which i thought would load name of current forum i even tried this which seemed logical, but didnt return name of current forum. The url of the page is like this ..../forums/forum/11-body-rubs/ so i know the forum name is loading on that page, but want to know the short-code if possible, to pull in JUST the NAME of the forum not the blurb "1 topic in this forum" Maybe i need to change the HTML of the page.. don't know where that would happen as I am not used to editing the html in the ACP just css, and other things like Language.. Thanks for any guidance. ~saraJ
Aiwa Posted November 20, 2018 Posted November 20, 2018 That's pluralization. 1 topic or ? ( !=1) topics It's not a 'short-code'.
Bitlab Media Group Posted November 20, 2018 Author Posted November 20, 2018 Ok thanks, i get you, again im trying to post name of forum, if it can't be pulled through translation, how might i achieve that? When i say short code trying to pull in something as i've seen in translations.. with %% etc.. Just a way to load the name of forum. Again, maybe i need to edit html. I am brand new to IPS been learning for a new client, used to raw html, php, wordpress etc, trying to learn here. Again thanks, ~saraJ
Aiwa Posted November 20, 2018 Posted November 20, 2018 You would have to customize the template and pass the forum name into the language string, in addition to changing the language string to accept another parameter. This isn't something you can do solely in languages because languages are forum agnostic. They don't have any context of where they are being used unless given that information from the theme.
Bitlab Media Group Posted November 20, 2018 Author Posted November 20, 2018 I found this.. i dont know where that string shows up, but seems it loads name of forum.. 4 minutes ago, Aiwa said: You would have to customize the template and pass the forum name into the language string, in addition to changing the language string to accept another parameter. This isn't something you can do solely in languages because languages are forum agnostic. They don't have any context of where they are being used unless given that information from the theme. OK thanks for that comment. ~saraJ
Aiwa Posted November 20, 2018 Posted November 20, 2018 Where the string is used along with how the pluralization works.
Bitlab Media Group Posted November 20, 2018 Author Posted November 20, 2018 yes, i just know understood my 2nd question on that. thanks ok! sorry for shouting the topic.. i know yall arent used to that. all respect. cheers! ~saraJ
Recommended Posts
Archived
This topic is now archived and is closed to further replies.