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)

Capper5016 02-24-2009 10:13 PM

1 Attachment(s)
Heres what I did.....had a little trouble trying to think how I worded it:

Code:

<fieldset class="statistics_group">
            <legend>$vbphrase[helpfulanswer_title]</legend>
            <ul class="list_no_decoration">
<img src="images/buttons/ha_thumbsup.gif" width="11" height="20" border="0" alt="Good" /><strong> $helpfulposts[goodranks]</strong>  <span>Posts Receiving Positive Votes</span><br />
<img src="images/buttons/ha_thumbsdn.gif" width="11" height="20" border="0" alt="Bad" /><strong> $helpfulposts[badranks]</strong>  <span>Posts Receiving Negative Votes</span>           
            </ul>
           
        </fieldset>

Then I used the Phrase manager to edit $vbphrase[helpfulanswer_title] and changed "Helpful Postings" to "Member Posting Reputation"

Results:


Now this has me wanting to tie it in with Cyb's Advanced Forum Stats, adding the ability to list the users with the most positive and negative votes.

Ted S 02-24-2009 10:37 PM

Have to be logged in for that page but I'm glad you got it working. If you want to change things even further you can edit the template to remove the phrases and just write things in the format you want.

As for the top thread, the template to change is postbit or postbit legacy depending on your forum's setup.

Capper5016 02-24-2009 10:48 PM

Posted a screenshot so people could see the result.....

I tried using
Code:

<img src="images/buttons/ha_thumbsup.gif" width="11" height="20" border="0" alt="Good" /><strong> $helpfulposts[goodranks]</strong>  <span>Posts</span><br />
<img src="images/buttons/ha_thumbsdn.gif" width="11" height="20" border="0" alt="Bad" /><strong> $helpfulposts[badranks]</strong>  <span>Posts</span>

I tried to get the Members Posting Reputation to appear under their avatar in the postbit, but it doesnt work. The icons display but the numbers won't.

I need to figure out where in the postbit to place the top thread phrase, and the conditional that changes the box color.

Ted S 02-24-2009 10:56 PM

The member's reputation is not available in postbit as I mentioned before. So while you get an A for using the right code there's nothing to pull data for those variables.

As for the color, I'm not entirely sure which table cell (<td>) you'd want to change... try poking around with a few until you find the one that gives you the look you want.

Capper5016 02-24-2009 11:07 PM

I wasnt using the Reputation plugin I made my own "Member Post Reputation", that was just an attempt to see if I could use those conditionals within the postbit, or anywhere else. I think being able to add this to site stats or something like that would be awesome.

I need to figure out how to use color in this instance, Its been a long time since I've tinkered this deeply in VBulletin code.

Code:

<if condition="$threadinfo[toppost] == $post[postid]">
How would you wrap this in a color tag? Anyone, not just Ted.

Ted S 02-24-2009 11:33 PM

As I mentioned before, the variables for a member's overall reputation aren't available because adding them would require an additional server query for every post -- which is not acceptable.

Capper5016 02-24-2009 11:52 PM

Code:

<if condition="$threadinfo[toppost] == $post[postid]">
Where the heck would I even post this question to get an answer? I need to find out how to wrap it in color tags, and then find out where to place it, in which template.

Ted, thanks for your input on the customizations......feel free to take the rest of the night off.

Ted S 02-25-2009 12:37 AM

I can't tell you where to place it as I haven't poked around enough but I already told you the template (postbit or postbig_legacy depending on your settings). :D

As far as how to use it,

Code:

<td class="alt1" <if condition="$threadinfo[toppost] == $post[postid]">style="background-color:red;"</if> >
Would make a table cell (<td>) colored red if it's the top post.

I'd suggest opening the right template and just playing. You can create a new style as a child and edit that so your members don't see what you're doing until it's complete.

Capper5016 02-25-2009 01:19 AM

I give up, mod works great....nuff said.

maidos 02-25-2009 08:44 AM

Quote:

Originally Posted by Ted S (Post 1753261)
Template edits will let you do exactly what you want; you just need to use the right variable (good rank). All you need to is change the phrase to +{1} and it will show +6 votes if that's the total good votes.

The votes will appear before a user votes themselves... If there are any votes (we don't show 0 of 0).

The image paths are hard coded if you use phrases... If you remove the phrase you can make them however you like.

my intention is to allow users to view the votes before voting themself. Thats what im after.
im not entirely sure but i got lost somewhere btw the phrase because when i did remove it doesnt display anything.

this is the phrase helpfulanswer_x_out_of_y where i can add the pictures together with the votes right? how can i do that since im not sure how to code that


All times are GMT. The time now is 06:14 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.03055 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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