Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

How to add a title above the 2nd box in the this discussion form ?

How to add a title above the 2nd box in the this discussion form like the 1st box where it has been written 'Write title' ? On which file I have to edit ? I hope that I'm not confusing you with this question.

Comments

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    @Maddox

    Do you mean you want to change the word 'Category'?

    If not, what do you actually want to do?

    Srggamer
  • MaddoxMaddox New
    edited April 2013

    @whu606 .. below the word 'category', I want to write 'body of the discussion'.. Hope that I have made you understand what I want

  • SrggamerSrggamer HardCore Gamer ✭✭✭

    So you want this

    Title:

    Sub Title:

    Content:

    Please fix me up if Im wrong.

  • @Srggamer .. Yes, like this -->

    Title:

    Content:

  • SrggamerSrggamer HardCore Gamer ✭✭✭

    Oh so, you want this.

    Text box and inside just faded text saying Body of Discussion?

    UnderDog
  • @Srggamer .. yes.

    UnderDog
  • peregrineperegrine MVP
    edited April 2013

    the proper way would be to:

    • use the event before bodyinput to insert text. in your themehooks or create a plugin

    ============

    • alternatively you could modify your theme views
    copy
    applications/vanilla/views/post/discussion.php
    
    to
    
    /themes/YOURTHEME/views/post/discussion.php
    
    then modify   /themes/YOURTHEME/views/post/discussion.php
    
    add for e.g. around line 30.
    
    change 
    $this->FireEvent('BeforeBodyInput');
    
    
    to  
    $this->FireEvent('BeforeBodyInput');    
            echo "   MyContents:";
    
    

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

    UnderDoghgtonightSrggamerMaddox
  • peregrineperegrine MVP
    edited April 2013

    @maddox

    I edited above message - in case you don't look at the thread again. I often update from the original.

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

    UnderDog
  • SrggamerSrggamer HardCore Gamer ✭✭✭

    This would be a pretty neat plugin!

  • @Srggamer said:
    This would be a pretty neat plugin!

    here's your chance.

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

  • SrggamerSrggamer HardCore Gamer ✭✭✭

    @peregrine How much would You charge to make one?

  • I don't make bids, I only take pledges and contributions.

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

    Srggamer
  • SrggamerSrggamer HardCore Gamer ✭✭✭

    @peregrine said:
    I don't make bids, I only take pledges and contributions.

    I think This would be good plugin, though should not be focused on only.

  • @peregrine . And how to add another field in the form ? Along with the 2 fields, I want to add another field in the form named 'conclusion'. So there will be 3 fields named 'Title', 'Description' and 'Conclusion'. How to add the 3rd one ?

  • peregrineperegrine MVP
    edited April 2013

    @Maddox

    you would need to write yourself a plugin that adds a field in the database, change the view, etc. etc.

    not for the faint-hearted, unless you have some coding skills.

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

    SrggamerUnderDog
  • SrggamerSrggamer HardCore Gamer ✭✭✭

    @maddox do some research, we shall help you not do it for you

    UnderDog
Sign In or Register to comment.