Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Need to move tag/indicator from meta to title

ZhaanZhaan Professional fool ✭✭
edited January 2015 in Vanilla 2.0 - 2.8

Hiya, hope y'all had a good xmas & NYE!

As for my problem -- I want to move the "tag" indicator ("Announcement", "Closed", etc.) from the discussion meta field to the actual discussion title. I basically want it to look like this:

[Closed] This is a very important topic title.

I've been digging around inside views/discussions/helper_functions.php, but I'm not quite sure what to do. Could any of you guys help me out?

Using 2.1.7, default theme. Any help will be appreciated!

Best Answers

Answers

  • peregrineperegrine MVP
    edited January 2015

    if you are going to go with r_j's plugin. which would be the simplest way to do it.

    then just use css element focus in on class to hide the Tag with a display:none

    Tag-Announcement

    do the same thing with Closed.

    the other way you could do it is via your own plugin

    and check for Announcements,,,,

    perhaps in Discussion name handler

     $Discussion = $Sender->EventArguments["Discussion"];
      if(val('Announce', $Discussion) >= 1) {
    
         insert code to change title.
    
    
     }
    

    add css to remove tag.

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

  • peregrineperegrine MVP
    edited January 2015

    yes it depends on his ultimate reason for doing what he wants to do.

    r_j - you didn't like my xmas effect :wink:

    could change it to the colors of your country flag :)

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

  • R_JR_J Ex-Fanboy Munich Admin

    @peregrine said:
    r_j - you didn't like my xmas effect :wink:

    It definitely needs some reindeers ;)

  • peregrineperegrine MVP
    edited January 2015

    .

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

  • ZhaanZhaan Professional fool ✭✭

    Thank you all for your input!

Sign In or Register to comment.