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.

Shoutbox as home page Feature .

edited July 2011 in Vanilla 2.0 - 2.8
Hi there !

I,ve managed to add a shoutbox in the right panel thats working OK for time being.
Cant remember if it is Van2Shout or Chatroll .

Anyways , Some users requested that the Shoutbox should be a Main Feature on the homepage (above all discussions )

Is it possible to change the module positions and resize the Shoutbox ?

http://www.thedotspot.co.za/vanilla/
Tagged:

Best Answer

Answers

  • lucluc ✭✭
    Answer ✓
    Answer found by OP.
  • OP ? Observing Post ?

    Anyways , gonna go this route and try and move the Shoutbox .
    http://vanillaforums.org/docs/themeguide/toc

    Will update when i have found a solution !
  • HI Luc.

    thanks for the reply but it havent solved my problem yet !
  • lucluc ✭✭
    OP: Original Poster.
    Yep, apparantly read too fast, answer not found :).
  • well , I busy downloading wamp or xamp and see if i can modify some files .
  • lucluc ✭✭
    Currently the shootbox goes into the Panel asset.
    To be above all discussions, it needs to go the Content asset (IIRC), and then, yes, you probably need some theming.
  • edited August 2011
    thanks for the reply luc.

    ye , that makes sense . looks like i,m heading in the right direction.

    The thing is , i only go basic HTML/CSS and PHP skills available to complete this task , but i think its my little exercise to figure it out .

    Perhaps , if you'd be so kind . You mind pointing me in a direction where likeminded coders hang out that could explain to process of moving the shoutbox .

    i,m at this stage of the fight
    http://vanillaforums.org/docs/themeguide/function

    And hopefully we can have a modified theme to share with the community .
  • lucluc ✭✭
    @DanielNel, to do the change Panel to Content, it's there:

    https://github.com/Caerostris/Van2Shout/blob/master/class.van2shouttext.php#L22

    After, it should be CSS, I guess, or maybe use this, in your config file to move the modules:
    $Configuration['Modules']['Vanilla']['Content'] = array('MessageModule', 'Notices', 'NewConversationModule', 'NewDiscussionModule', 'CategoryModeratorsModule',
    'Content', 'Ads');
  • Thanks so much for the post , i actualy e-mailed caerostris , but he said he stopped developing and thought i dont want to bother him too much . I will see what i can do about the mod .
  • @DanielNel, to do the change Panel to Content, it's there:

    https://github.com/Caerostris/Van2Shout/blob/master/class.van2shouttext.php#L22

    After, it should be CSS, I guess, or maybe use this, in your config file to move the modules:
    $Configuration['Modules']['Vanilla']['Content'] = array('MessageModule', 'Notices', 'NewConversationModule', 'NewDiscussionModule', 'CategoryModeratorsModule',
    'Content', 'Ads');
    @luc

    if you mind , do you mind to explain what do ?

    change this line

    public function AssetTarget() {
    return 'Panel';

    to

    public function AssetTarget() {
    return 'Content';

    ????

    and add:
    $Configuration['Modules']['Vanilla']['Content'] = array('MessageModule', 'Notices', 'NewConversationModule', 'NewDiscussionModule', 'CategoryModeratorsModule',
    'Content', 'Ads');

    to the vanilla/conf/config-defaults.php file ?
  • lucluc ✭✭
    For the first part, yes.

    For the 2nd, you should put it in config.php (it's already in config-defaults.php).
    Then, you may have to try to switch it's content so the order works for you. For instance, maybe up 'Content' right after 'Notices'.
    But maybe it's not even necessary, you'll have to try.
  • Great stuff ! thanks for support and helping others like me .
    Hope everybody appreciate it .

    I,ll give it a go soon and post some results .

    Thanks
    D
  • edited August 2011
    @ Luc .

    I tried the above method without any luck , but i saw sombody who got the tweak right . Perhaps he,ll make posts about his mod .

    Thanks
Sign In or Register to comment.