vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - [AJAX] Helpful Answers - Post Rating System (plus many sub-features) (https://vborg.vbsupport.ru/showthread.php?t=204117)

trotskid 06-26-2009 10:46 PM

Quote:

Originally Posted by Ted S (Post 1836120)
How about...

Code:

$post[avgrank] = number_format($post[avgrank], 2);
$post[totalrank] = number_format($post[totalrank], 2);


Not yet, but I?ll wait for the new version :)

This post has been ranked 8.33 out of 10 with 3.00 votes.
This post has been ranked 7.00 out of 10 with 1.00 votes.


And sometimes shows like this: This post has been ranked 8.0 out of 10 with 24 votes (when only there are 3 votes until refresh the page); This post has been ranked 8.00 out of 10 with 3.00 votes.

Greetings

Ted S 06-27-2009 12:04 AM

Well that's no good. I'll do some testing and work on a better beta for you

Noctavia 06-27-2009 02:28 AM

1 Attachment(s)
I've read through most of the pages so far (skimmed past a lot that didn't seem to apply) and haven't found an answer yet.

How do I remove the dividing line all together? I'd like to have the "did you find helpful" part either on the bottom left hand side, or at the top right hand side of the title. But either option results in an additional line being added.

I've attached images as example...

Noctavia 06-27-2009 05:14 AM

Ok, managed to get the line gone and to where I wanted. One last question...

Is there a way to change the colour of the text instead of the background colour for posts over a certain possitive score? So, for example, any post that gets 10 positive marks against it, has the entire text turn green?

Ted S 06-27-2009 03:01 PM

Sure. You can use the variables shown in post #1 of this thread along with vbulletin conditionals to format posts however you like.

Noctavia 06-27-2009 11:28 PM

Since I've not written any code before in my life, is it possible to get an idea of where I might need to place it? And what I need to include? I gather I'm meant to put it around something in the postbit_legacy template, but outside of that I'm clueless.

From further looking, I assume I place something around this section:
PHP Code:

        <!-- message -->
        <
div id="post_message_$post[postid]">$post[message]</div>
        <!-- / 
message --> 

What I need is to turn text green if the post receives more than 25 positive votes. Turn red if it's got 25 or more negative votes. And stay the same if it's anywhere in between.

Ted S 06-28-2009 03:50 AM

Something along the lines of...

Code:

<if condition="$post[goodrank] > 10">
<span style="color:red;">$post[message]</span>
<else />
$post[message]
</if>


tpearl5 06-30-2009 02:51 PM

Quote:

Originally Posted by Ted S (Post 1837584)
Give the attached plugin a shot.

Note... This is code is NOT FULLY TESTED. Please use on a dev server or prepare to uninstall.

Note... This will update your existing user table structure to add a field to track unread helpfulanswer notices. Installing may take a minute.

hs anyone had a chance to test this a little?

NLP-er 06-30-2009 03:04 PM

Waiting, and waiting for this stable version... ;) Great mod I'm already using and waiting with update till stable version. Any clue when it will be released?

Ted S 06-30-2009 06:10 PM

Lots of travel this month but I hope to get it done soon. The more comments people give on the beta the faster that will be.


All times are GMT. The time now is 09:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02545 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete