-
AuthorPosts
-
amarks Friend
amarks
- Join date:
- July 2011
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 138
- Thanked:
- 1 times in 1 posts
September 15, 2011 at 10:05 pm #168601How 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 Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 16, 2011 at 1:07 am #412981Hi
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 Vups:// i’ll fw this one to dev team to check if we can allow config default value at backend.
Thank you
Viet Vu1 user says Thank You to jooservices for this useful post
amarks Friendamarks
- Join date:
- July 2011
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 138
- Thanked:
- 1 times in 1 posts
September 16, 2011 at 1:12 am #412982I’m on 1.7. Thanks Viet!
amarks Friendamarks
- Join date:
- July 2011
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 138
- Thanked:
- 1 times in 1 posts
September 16, 2011 at 1:14 am #412983Awesome! 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 Friendamarks
- Join date:
- July 2011
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 138
- Thanked:
- 1 times in 1 posts
September 16, 2011 at 1:30 am #412984That’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 Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
amarks Friendamarks
- Join date:
- July 2011
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 138
- Thanked:
- 1 times in 1 posts
September 16, 2011 at 1:55 am #412987Yup, precisely
amarks Friendamarks
- Join date:
- July 2011
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 138
- Thanked:
- 1 times in 1 posts
September 16, 2011 at 1:59 am #412988Actually, 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 Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 16, 2011 at 2:00 am #412989Uhm
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 Vu1 user says Thank You to jooservices for this useful post
amarks Friendamarks
- Join date:
- July 2011
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 138
- Thanked:
- 1 times in 1 posts
September 16, 2011 at 2:43 am #413004I’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 Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
amarks Friendamarks
- Join date:
- July 2011
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 138
- Thanked:
- 1 times in 1 posts
September 16, 2011 at 3:29 am #413014It 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 Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
amarks Friendamarks
- Join date:
- July 2011
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 138
- Thanked:
- 1 times in 1 posts
September 16, 2011 at 3:31 am #413016AuthorPostsThis 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