Differents buttons and translation in certain forums

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
king577
Registered User
Posts: 64
Joined: Mon Mar 01, 2010 7:28 pm

Differents buttons and translation in certain forums

Post by king577 » Tue Mar 16, 2010 12:45 pm

How to make forum buttons and translation different in certain forums than the rest of the community?

I mean that a forum button to add a new topic will look different in one forum than the button to add a new topic in other forums.

As for the translation: I want it to be written in all forums "Mark topics read" and only in one forum would be written "Mark articles read".

sorry for my bad English.
Sorry for the mistakes I do from time to time in English. This is not my native language. I am trying to improve my English, so please notify me about any mistakes I make. Thanks! :)

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51824
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Differents buttons and translation in certain forums

Post by Brf » Tue Mar 16, 2010 1:19 pm

You can create a new style with your different imageset buttons, and use that style for your one forum.

king577
Registered User
Posts: 64
Joined: Mon Mar 01, 2010 7:28 pm

Re: Differents buttons and translation in certain forums

Post by king577 » Tue Mar 16, 2010 1:36 pm

thank you!

what about different translation?
Sorry for the mistakes I do from time to time in English. This is not my native language. I am trying to improve my English, so please notify me about any mistakes I make. Thanks! :)

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51824
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Differents buttons and translation in certain forums

Post by Brf » Tue Mar 16, 2010 1:58 pm

Translation?
Just replace the variable-link with whatever text you want in your new style.

king577
Registered User
Posts: 64
Joined: Mon Mar 01, 2010 7:28 pm

Re: Differents buttons and translation in certain forums

Post by king577 » Tue Mar 16, 2010 6:48 pm

thank you again

how can I create new variables in the languages files?
Sorry for the mistakes I do from time to time in English. This is not my native language. I am trying to improve my English, so please notify me about any mistakes I make. Thanks! :)

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51824
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Differents buttons and translation in certain forums

Post by Brf » Tue Mar 16, 2010 6:53 pm

Well, for instance, you can find

Code: Select all

	'MARK_TOPICS_READ'		=> 'Mark topics read',
in language/en/viewforum.php and put in your own

Code: Select all

	'MARK_ARTICLES_READ'		=> 'Mark articles read',
Then in viewforum_body.html, replace

Code: Select all

{L_MARK_TOPICS_READ}
with

Code: Select all

{L_MARK_ARTICLES_READ}
Be sure to edit that language file with an editor capible of saving with encoding UTF-8(w/o BOM)

king577
Registered User
Posts: 64
Joined: Mon Mar 01, 2010 7:28 pm

Re: Differents buttons and translation in certain forums

Post by king577 » Tue Mar 16, 2010 6:57 pm

I don't have more questions.

Thank you very much!
Sorry for the mistakes I do from time to time in English. This is not my native language. I am trying to improve my English, so please notify me about any mistakes I make. Thanks! :)

Locked

Return to “[3.0.x] Support Forum”