![]() |
Quote:
Quote:
Quote:
To me, it seems like while hiding the post, it is placing the "collapse" button instead of "expand" button. setting display: none; and display: block; thru firebug works fine. so the problem is placing the wrong button in there. Quote:
to hide a post, Code:
li#post_203404 div.postdetails, li#post_203404 div.postfoot { insert something like this in span.nodecontrols [i just copy pasted the collapse code that i get; it should be the expand code): HTML Code:
<a class="collapse" id="collapse_ppost_203404" href="#top"><img src="images/buttons/collapse_40b.png" alt="" title="Collapse this Post"></a> when clicked again, set display: none; |
template name: helpful_answers_hidelowstart
contents: Code:
also, Ted, what does this option do? "Enable Single Post Voting" |
Has the problem with all posts collapsing when you have a negative rating?
I want to have bad posts get collapsed but not when only ONE person votes it negatively. I want bad posts to collapse when they get at least 5 negative votes. Unfortunately, once any post is hidden they are all hidden. Was mentioned and replied to here: https://vborg.vbsupport.ru/showthrea...86&post2062886 |
hey Ted. I have modified it a bit. I believe this UI is much better (and simple) than lots of texts.
i have moved it to post footer; after multi quote button. http://img819.imageshack.us/img819/993/capturez.png anyways, I have two problems. It seems post.goodrank is not initialized to 0 (but post.badrank is 0) when a post is not voted (up or down) even once. so i can never get a /\ 0 | 0 \/ it is always /\ | 0 \/ http://img96.imageshack.us/img96/9761/captureagm.png 2nd problem: I'm not sure how I can update the counters and images using ajax. if you can give me some hint, I'm sure i can manage it. I have modified the _roll template properly. all it needs to do is update codes according to the template. |
Quote:
sure is - can you share how you achieved this? |
Quote:
I want this! |
Quote:
|
Quote:
Code:
$post['goodrank'] = int($post['goodrank']); Quote:
Code:
<a href="./helpfulanswers.php?do=rate&postid={vb:raw post.postid}&rank=1" <vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return helpfulanswers_rate({vb:raw post.postid}, 1);" </vb:if> rel="nofollow" onmouseover="document.post_{vb:raw post.postid}_up.src='images/buttons/ha_arrowup.gif';" onmouseout="document.post_{vb:raw post.postid}_up.src='images/buttons/ha_arrowup_gray.gif';"><img name="post_{vb:raw post.postid}_up" src="images/buttons/ha_arrowup_gray.gif" width="11" height="20" border="0" alt="{vb:rawphrase helpfulanswer_yes}" /></a> |
Quote:
The css styles for your post will generally still show, i'm looking to see what's getting overriden... vb css is pretty evil. |
Quote:
Quote:
Quote:
If Ted feels like, he can even include it in the core product. Quote:
After rating, I get the msg "...thanks for rating...". But I want to update the counter and arrow images. I'm not sure from where the ajax response text is coming from.[/s] I managed to pull it off :) Quote:
then add a hide post button if necessary. |
All times are GMT. The time now is 04:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|