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)

steve71 02-10-2010 10:24 PM

I would like to see the usernames in the helpfulanswers.php page instead of the post ID's


Posts
username

Instead of:

Posts
Post 793677 in thread: Car audio

thx for the help btw

Ted S 02-11-2010 01:14 AM

Got it. What you edited is how the table is created. What you need to edit is the first part of helpfulanswers.php that displays them back.

steve71 02-11-2010 01:58 AM

I'm gonna level with you...I'm pretty green when it comes to php :)

This is the part I located:

Quote:

// sort criteria
switch ($sortfield)
{
case 'rank':
$sqlsort = 'avgrank';
break;
case 'post':
$sqlsort = 'post.title';
break;
case 'forum':
$sqlsort = 'forum.title';
break;
case 'total':
$sqlsort = 'totalrank';
break;
case 'tdate':
$sqlsort = 'lastvote';
break;
default:
$sqlsort = 'avgrank';
}

Ted S 02-11-2010 02:07 AM

steve, I'll just add this to the next update release. Ok? :D

steve71 02-11-2010 02:32 AM

Quote:

Originally Posted by Ted S (Post 1979674)
steve, I'll just add this to the next update release. Ok? :D

Much appreciated...or to the 4.0 version as we will be updating eventually. :)

BWJ 02-11-2010 03:25 PM

Quote:

Originally Posted by steve71 (Post 1979681)
Much appreciated...or to the 4.0 version as we will be updating eventually. :)

And the 3.8.x version... please... :D I think a lot of us are holding back upgrading....

Steve -> Besides - your suggestion with the username is imo definately better than the default one... And nice that Ted seems to be of the same opinion....

Ted S 02-12-2010 04:31 AM

Quote:

Originally Posted by BWJ (Post 1980054)
And the 3.8.x version... please... :D I think a lot of us are holding back upgrading....

Steve -> Besides - your suggestion with the username is imo definately better than the default one... And nice that Ted seems to be of the same opinion....

For now both the 3.8 and 4.0 will get the same features so no worries!

azn_romeo_4u 02-16-2010 04:01 AM

When I hover over "Helpful Post Ratings"

https://vborg.vbsupport.ru/external/2010/02/44.jpg

As you can see, it has no www. How do I fix that? Is there a template I can edit? A php line code I can change? I know that you used bburl and I have a lot of mods that use that also (they all seem to work correctly on www or nonwww), but that particular part of your script on my site don't seem to be using bburl.

Anyone got the same problem?

This causes you to not be logged in if you log into the website under www

Ted S 02-16-2010 04:36 AM

Quote:

Originally Posted by azn_romeo_4u (Post 1983516)
When I hover over "Helpful Post Ratings"



As you can see, it has no www. How do I fix that? Is there a template I can edit? A php line code I can change? I know that you used bburl and I have a lot of mods that use that also (they all seem to work correctly on www or nonwww), but that particular part of your script on my site don't seem to be using bburl.

Anyone got the same problem?

This causes you to not be logged in if you log into the website under www

The mod uses your forum settings via bburl to determine the url:

Line 521
Code:

'link'  => $vbulletin->options[bburl] . '/profile.php?do=helpfulans',

azn_romeo_4u 02-16-2010 05:16 AM

Thanks, on my product-helpfulanswers.xml it was line 420


All times are GMT. The time now is 08:59 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
  • Page Generation 0.02640 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_code_printable
  • (5)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