Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorMr K
    • CommentTimeJul 15th 2006 edited
     # 1
    Okay .. I'm trying to make a new theme to share based on http://studiowhiz.com/

    However, to do create this I ended up adding to the following files
    Vanilla.Class.Discussion.php
    Vanilla.Class.DiscussionManager.php

    In the Discussion Manager I added (amoung other things)
    // Get first comment body
    $s->AddJoin('Comment', 'tcb', 'CommentID', 't', 'FirstCommentID', 'left join');
    $s->AddSelect('Body', 'tcb', 'CommentBody');

    And in Discussion I ended up adding (amoung other things)
    $this->CommentBody = '';

    To have it populating etc

    So ... is it possible to extend the system through a theme only? It'd be kinda silly to say "Download this theme, but only if you have Blog 2.0 installed"
    Any help, pointers etc .... much appreciated
  1.  # 2
    Only if you can somehow replicate in the output what those bits of code do to the internal workings. Which i think you'd struggle to do. I dont really think it's such a problem to have extension-theme dependancies though.
    • CommentAuthorMr K
    • CommentTimeJul 15th 2006
     # 3
    yeah I kinda was thinking that ... I mean the whole idea of MVC/Themes is that we remove the core code, and themes just display - their is NO processing done in them. Hmm ... okay ... I guess that means I have to finally tackle extensions!
  2.  # 4
    haha. Enjoy!
    • CommentAuthorMr K
    • CommentTimeJul 15th 2006
     # 5
    bully :(
Add your comments
    Username Password
  • Format comments as