Vanilla open source was terminated 1 January 2025 by Higher Logic. See this announcement for more information.

A quirky change in discussions view

phreakphreak MVP
edited March 2013 in Vanilla 2.0 - 2.8

Hi alle,

I'd like to change a connected text string in the discussions view. To create a nice TITLE-Tag i changed the one word saying "Discussions" in the locale.php to my forums name. This is fine and does a good job with Google for me.

Just i one place i'd like to change that. See the screenshot, it's in the Tabheading. I'd like to have "Home" here, but i can't find the file where this is changed...
Can someone lead me there?

I know there is plugin for the "TITLE" somewhere in the addons, but this doesn't work for me the way it works, so i decided to do it that way.

Thanx

  • VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
  • VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla

Comments

  • peregrineperegrine MVP
    edited March 2013

    misread your question, never mind

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • I am having difficulty parsing your question. Correct me if I am wrong, you put a definition in your locale file that changes Discussions to your forum name. There is a specific instance where you do not want this replacement to occur. Right so far?

    In your case, if I understand you correctly, you need to modify the WriteFilterTabs function in the file /vanilla/views/discussions/helper_functions.php file.

    I would approach it as a modification to my theme. Rather than the line saying T('My Discussions');, I would use something unique like T('Phreaks.Modified.Text1'); and update your locale definition of 'My discussions' to 'Phreaks.Modified.Text1'

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Thank you guys and thanx @hgtonight for pointing me to the right file.

    I found it on line 117, ad i didn't wanted to change 'MyDiscussion'.

    <li<?php echo strtolower($Sender->ControllerName) == 'discussionscontroller' && strtolower($Sender->RequestMethod) == 'index' ? ' class="Active"' : ''; ?>><?php echo Anchor(T('PhreakAllDiscussions'), 'discussions', 'TabLink'); ?>

    Changed Anchor(T('AllDiscussions') to Anchor(T('PhreakAllDiscussions')

    Great thanx.

    • VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
    • VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla
Sign In or Register to comment.