test
Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • amarks Friend
    #168601

    How can I make it so that when someone creates a post in Ja voice, the default amount of votes the creator casts is 1. Not -1 or -2.

    jooservices Friend
    #412974

    Hi
    Let’s me check and reply you in few hours.
    ps:// which JA Voice version you are on ?
    Thank you
    Viet Vu

    jooservices Friend
    #412981

    Hi
    There you are
    Check at file


    ja_voice_j17/components/com_javoice/views/items/view.html.php

    Line 1061


    $list_votes = JHTML::_('select.radiolist', $put, 'votes', "class="inputbox rad" size="1" ", 'value', 'text', $put[0]->value);

    Change $put[0] to another value that match index of votes in array you want to use as default.
    Thank you
    Viet Vu

    ps:// i’ll fw this one to dev team to check if we can allow config default value at backend.
    Thank you
    Viet Vu

    amarks Friend
    #412982

    I’m on 1.7. Thanks Viet!

    amarks Friend
    #412983

    Awesome! I will try that and let you know. It would be great to have default set to 1 because why would someone suggest an idea and vote -1 haha.

    Thanks!

    amarks Friend
    #412984

    That’s perfect! Exactly what I wanted. How can I make it so that after submiting an “idea” it takes me back to the main ja voice page? For some reason it takes me to the “idea’s” comments but no tabs or forum list.

    jooservices Friend
    #412985

    hi
    you mean redirect back to ja voice frontpage after created a idea?
    thank you
    viet vu

    amarks Friend
    #412987

    Yup, precisely

    amarks Friend
    #412988

    Actually, it would just be better to just always have the main navigation tabs there. Because when you click on one of the posts, there’s no way to go back unless you hit the back button.

    jooservices Friend
    #412989

    Uhm
    I’m sorry, your above feature not included in our code.
    If i make patch, it’s okies but i want to mention if you go w/ our next upgrade you’ll need patch it again.


    components/com_javoice/controllers/items.php

    Line 343 & 344.
    Replace by


    $object->content = JURI::current();

    It’ll reload current page instead page of new ideas was posted.
    Thank you
    Viet Vu

    amarks Friend
    #413004

    I’m not sure exactly where to put that. What is it replacing exactly? Also I think a solution for my problem might be to have the “Forum” list displaying on the right side (just like the main page) when viewing a post. That way there will be atleast something to navigate away from that page. Is there a way to have the forums displaying whenever viewing an individual post?

    Thanks Viet

    jooservices Friend
    #413008

    Hi
    Above my post is a patch force to reload current page instead redirect to item page after posted new idea .
    Is that what are you looking for ?
    Thank you
    Viet Vu

    amarks Friend
    #413014

    It didn’t work for me. This is where line 344 would put it:

    if($item->user_id){

    $userinfo = JFactory::getUser($item->user_id);

    $item->username = $userinfo->username;

    $item->userparams = $userinfo->getParameters();

    $items[$k] = $item;

    }

    }
    $object->content = JURI::current();
    }

    return $items;

    }

    jooservices Friend
    #413015

    Ops you put into wrong line.
    Please give me FTP than i can do it.
    Thank you
    Viet Vu

    amarks Friend
    #413016

    Also these buttons aren’t active for some reason. Am I overseeing something?


    1. workflow
Viewing 15 posts - 1 through 15 (of 19 total)

This topic contains 19 replies, has 2 voices, and was last updated by  jooservices 13 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum