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)

Trip 09-24-2010 02:39 AM

Just the total number of posts other members voted "yes, this post was helpful" on. I'm thinking its the same data as displayed in the member profile block. I thought it was what $helpfulposts[goodranks] displays, but I could be wrong.
IE: Username has '5' helpful posts.

Basically, I am just trying to show the information $helpfulposts[goodranks] displays in another template other than member profile.

Simon Lloyd 09-25-2010 02:22 PM

Quote:

Originally Posted by Ted S (Post 2102540)
Not sure where to start... You would need to add a few columns, possibly some calculations to the query to get all the data out, that's the fun part (figuring out what you need out). Formatting is just a matter of editing the table output.

How's your familiarity with vB4 code?

vB4? haven't touched it, it seems far too buggy to entertain it at the mo, anyway i really like the flexibility and mods that i have for vB3.8, it's took me quite a while to be comfortable messing with the templates of that :)

I'm not sure i follow you with the calculations, you have already done those for number of votes, all im looking to do is add the author of the post that has been marked helpful in helpfulanswers.php

I know how to show the username for the post but not picking up the post id
HTML Code:

<if condition="$post[userid]"><a href="member.php?$session[sessionurl]u=$post[userid]" target="_blank">$post[username]</a><else />$post[username]</if>
but we would need to pick up the id of the post that was found helpful, as for writing queries, well i'd have more success platting fog!

Do you have time to help with this? you can pm me with a quote if you like :)

Simon Lloyd 09-25-2010 02:56 PM

Ted, just looking at the helpful_answers_topbit template it looks as though i could just do this
HTML Code:

<td class="alt1"><!-- phrase 1="$helpfulanswer[postid]" --><!-- $vbphrase[helpfulanswer_top] --><!-- /phrase --> <a href="./showthread.php?p=$helpfulanswer[postid]#post$helpfulanswer[postid]">$post[username]</a></td>
but, adding that doesn't show in the columns and messes the header ro of helpfulanswers.php and i cant see where to add a column other than there!

yotsume 09-25-2010 06:41 PM

Sure would be nice to have this for vbBlog. Any chance?

Ted S 09-26-2010 12:11 AM

Quote:

Originally Posted by yotsume (Post 2103106)
Sure would be nice to have this for vbBlog. Any chance?

Someone is welcome to extend it, I am supporting vB 3 but not adding significant features for it

Ted S 09-26-2010 12:12 AM

Quote:

Originally Posted by Simon Lloyd (Post 2103035)
Ted, just looking at the helpful_answers_topbit template it looks as though i could just do this
HTML Code:

<td class="alt1"><!-- phrase 1="$helpfulanswer[postid]" --><!-- $vbphrase[helpfulanswer_top] --><!-- /phrase --> <a href="./showthread.php?p=$helpfulanswer[postid]#post$helpfulanswer[postid]">$post[username]</a></td>
but, adding that doesn't show in the columns and messes the header ro of helpfulanswers.php and i cant see where to add a column other than there!

That's the individual row, there's another template, helpful_answers which controls the page the rows display in. You can only call fields that the page has access too, new items you want to add have to be added to the helpfulanswers.php page to become part of the query

Simon Lloyd 09-26-2010 10:53 AM

Ted again thanks for the reply but beyond template edits i'm out of my depth :)

symptome 10-02-2010 10:34 AM

I deinstalled it. But I still have a section for helpful answer system in my admin area (menu on the left hand side). Why?
How to deinstall completely?
Thanks

Trip 10-02-2010 10:39 AM

Do you still have the helpfulanswers.php file in your admincp directory? If you do, remove it and all other files associated with the modification.

symptome 10-02-2010 11:35 AM

Thanks for the reply. It worked.


All times are GMT. The time now is 03:34 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.03920 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
  • (3)bbcode_html_printable
  • (3)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