Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

how to improve titles ?

edited September 2006 in Vanilla 1.0 Help
Hi all ,

i want make discussion's titles look like :
DISCUSSION_NAME - CATEGORY
How to do that ?
( sorry i dont know how vanilla's php scripts work ...) .

Thanks ,

Bouazza .

Comments

  • Go into comments.php, and on line 42, change$Context->PageTitle = $CommentGrid->Discussion->Name; into $Context->PageTitle = $CommentGrid->Discussion->Name.' - '.$CommentGrid->Discussion->Category;
  • Thanks very much SirNot , i have another question , is there a documentation about vanilla's php scripts ?
  • edited September 2006
    like http://lussumo.com/docs ?
  • No , i mean a doc for developpers .
  • The 'find in files' function in emeditor to come in handy a lot, but it also helps to explore the source and try to figure out how mark has approached the project/its components (eg. where is he most likely to have put function/class/variable assignment/whatever X?).
  • I dont find this line on my comments.php :
    $Context->PageTitle = $CommentGrid->Discussion->Name;
    Its because i use Vanilla Blue theme , but i ill try to see how the theme's scripts are designed ...
  • Ah yes , you mean Vanilla's comment.php on the root and not the theme's one !
  • Where is the Context class declaration ?

    Thanks for your time !
  • edited September 2006
    Look in library/Framework/Framework.Class.Context.php. Almost each class is in a file in library with its name in the title.
This discussion has been closed.