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 03:34 PM

maybe put that, and some examples on the examples page?

Ted S 02-24-2009 03:40 PM

Unfortunately I don't have the time to document every possible example iteration. This addon is intended to look good out of the box but also provides a great number of variables for people who want to dig in and change things around. Templates are basically basic HTML and those who are familiar with it should have no problems making changes; if you're not it's difficult for me to walk you through all the possibilities even with a dozen examples.

All of the main variables are of listed in the second post with the examples.

Like most variables you can use this one in a conditional to add any code you like be it a bold line saying "Best Rated", a background color, etc...

Capper5016 02-24-2009 04:15 PM

I'd really like to have the post with the highest rating highlighted with a different color.

If anyone can help me set that up, I'd really appreciate it.

On the members profile page, I'd also like to have the "Thumbs Up" and "Thumbs Down" with the members overall stats. Right now it says (member name) Posts have been rated good (_) out of (_) times.

Ted S 02-24-2009 06:41 PM

Quote:

Originally Posted by Capper5016 (Post 1753436)
I'd really like to have the post with the highest rating highlighted with a different color.

The variable for the top post is $threadinfo[toppost] and is only active when enabled. You can use that in a conditional to change the box color.

If you need help learning html I'd suggest the main programming forum here at vBulletin.org as you won't find many people checking hack threads to help others.

Quote:

On the members profile page, I'd also like to have the "Thumbs Up" and "Thumbs Down" with the members overall stats. Right now it says (member name) Posts have been rated good (_) out of (_) times.
Just edit the template helpful_statsbit and add the thumb images where you want them. Remove the phrases or any other text if you don't want it.

Capper5016 02-24-2009 07:34 PM

Theres no reason to be snippy. I'm sure I'm not alone in needing guidance with these variables, and how to use them. I'm sure I'm not the only one who asks where you'd put $threadinfo[toppost].

I've been working with VBulletin for a couple of years, but my job is not web design or coding. Thats why we have these threads, and why people ask questions......and I see a lot worse than the couple I've tossed out there.

As to the overall stats, I dont see variables for that. I have toyed with the different variables, and they all appear to pertain to single posts, not all the users posts.

Ted S 02-24-2009 08:16 PM

I'm sorry if you felt my response was snippy, I was simply trying to direct you to a place where you're more likely to get support for your HTML question. Unfortunately people only tend to check hack threads when they have a question so there's limited opportunity to get support from others in a hack thread versus the larger vBulletin community forums.

As for your question, I think I misunderstood your last post. It sounds like you're looking to add stats about the user's overall rating history to each post... If that's the case there is no such feature in this addon as adding these variables would require an additional query for every post which is not good for server resources.

There are however global rating stats in a user's profile found with the variables $helpfulposts[goodranks] $helpfulposts[badranks] $helpfulposts[totalranks]

Capper5016 02-24-2009 08:28 PM

no no, you had it right.....ideally it would show the members overall stats (total good posts and total bad posts) on their member page, instead of "5 posts out of 5 rated good".

I understand your perspective(and I understand answering silly questions over and over is frustrating), and my feeling is that I can do anything with decent instruction.....but what I see more often than not is a real lack of patience from the people who have the answers. Most of the time the answer is Google it, read the instructions, or use the search feature (all of which I do)........but there are times when that doesnt explain something well....or something that might take 5-10 minutes for you or someone else to explain here, would take 3 hours of research on my part. Then you have the people who want to charge you for the answer.....and to be honest, this is a hobby, not a paying site, and money is tight.

Capper5016 02-24-2009 08:32 PM

Quote:

The variable for the top post is $threadinfo[toppost] and is only active when enabled. You can use that in a conditional to change the box color.
I know a bit of HTML, but this is a bit beyond introductory HTML.

Ted S 02-24-2009 09:36 PM

Generally I'm more willing to help people who take steps themselves (like when you posted some variables and issues) than those who just ask without looking first. But regardless you won't see me say Google it... I can't always provide the help people need but I certainly don't like to drop them off and force them to learn an entire language either.

In any case, the profile has the two variables I mentioned previously controlled from the template I also mentioned before. Right now there's a lot of phrases controlling the layout of that box -- rip all of that out and just use some basic html. The variables carry the votes, the images you can call up directly.

As for the top post it's not basic HTML but still nothing crazy.

For example:

Code:

<if condition="$threadinfo[toppost] == $post[postid]">This is the top rated post!</code>
Using the same logic you could for example add to the table cell holding the post contents to change its color.

If you chose to tinker around and get stuck let me know and we'll find a solution.

Capper5016 02-24-2009 09:48 PM

I completely understand, and agree.... on helping yourself. I've read each and every post in this thread and can understand your reluctance in even answering most questions.

My feeling on the questions I'm asking are that they are ones that might extend the flexibility of this mod for most users. Instead of just installing and running the basics, they see that there are several different, and very useful methods of implementing it. It takes it from a simple "Helpful answers" mod to something much more.


Quote:

Code:
<if condition="$threadinfo[toppost] == $post[postid]">This is the top rated post!</code>
Using the same logic you could for example add to the table cell holding the post contents to change its color.
Changing the color is exactly what I was looking at....but wasnt sure what specific template to edit. I think a lot of the issue I'm running into is what should be edited as a template, and what I should be editing in phrases.

I think it would really help people out to add stuff like the code above to the second post as well.


All times are GMT. The time now is 09:27 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.02185 seconds
  • Memory Usage 1,753KB
  • 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
  • (4)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