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)

Ted S 03-22-2009 05:30 PM

That would need a different mod as this is built to just track posts but similar code could definitely be used.

Ted S 03-22-2009 05:53 PM

Version 1.6.7 beta has been released which adds one new feature allowing guests to see voting links. Once a guest clicks on the voting icon they are taken to a page prompting them to register. This feature is optional and disabled by default.

This is hopefully the final version of the beta with a stable release coming shortly.

tpearl5 03-23-2009 03:21 PM

Thanks Ted - that works great!

tpearl5 03-23-2009 04:16 PM

Quote:

Originally Posted by Ted S (Post 1733465)

Highlighting the top rated post:

Step 1 - Set "Get Top Post per Thread" to on in your Helpful Answers settings.
Step 2 - Open your postbit or postbit_legacy template (whichever your forum uses)
Step 3 - Find all instances of class="alt1" and class="alt2"
Step 4 - At each instance add the following code directly after style="
Code:

<if condition="$thread[toppost] == $post[postid]">background-color:#CCCCCC;</if>
#CCCCCC is the color to highlight the post with. You may change this to another HTML Color Code

Step 5 - Repeat this for each instance (there may be as many as 5 depending on the template)
For example:
Code:

<td class="alt1" align="$stylevar[right]" style="<if condition="$thread[toppost] == $post[postid]">background-color:#CCCCCC;</if>border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">

I see that if two posts have the same rating (in this case 1) the first one gets 'toppost'. Here's an example:
http://cellphoneforums.net/lg/t29264...n-cracked.html

What do you think about a 'toppost threshold' or an option to 'make toppost' by the thread starter or admin ?

Also, is how many topppost's a user has something good to put in their profile/postbit?

Ted S 03-24-2009 01:17 AM

I get what you're saying but more options means more load and I just don't see the advantage on that for the entire user base. Changing this youself would be easy.... just alter the sorting criteria in that query.

I'll look at the user stat for down the road although it's an intensive query given the way the data is stored.

tomawebdev 03-24-2009 11:48 AM

Anyone have a french lang for this or plan to translate ?

Ted S 03-24-2009 01:24 PM

I have not seen any translation packs for this but given how little text there really is I don't imagine it would be hard to do.

tpearl5 03-24-2009 06:08 PM

Quote:

Originally Posted by Ted S (Post 1775491)
I get what you're saying but more options means more load and I just don't see the advantage on that for the entire user base. Changing this youself would be easy.... just alter the sorting criteria in that query.

I'll look at the user stat for down the road although it's an intensive query given the way the data is stored.

Gotcha.

Do you think something like this this could be used to add a decoration to the thread in forumdisplay?
Code:

<if condition="$thread[toppost]"><img src="/toppost.gif"></if>

Ted S 03-25-2009 02:35 AM

Forum Display doesn't get the top post (since there is no posts pulled in to the thread list). What are you trying to do exactly?

vbplusme 03-25-2009 11:46 AM

Hello Ted,

I just tried to install 1.5.4 and got this error message (same a reported before, it flashed up on the screen and finished the install)

Quote:

Parse error: syntax error, unexpected T_STRING in /home/public_html/admincp/plugin.php(1995) : eval()'d code on line 4
I uninstalled it and reinstalled and this time it stayed up on the screen so I could copy it.

I think its a problem and am wary to just let it run without know the cause of the error and fix it or understand its impact to my site.

BTW, as I said, its been reported before but has never been resolved as far as I can see.

TIA for your attention.


All times are GMT. The time now is 08:58 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.02355 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
  • (3)bbcode_code_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