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)

Milez 04-04-2009 09:33 PM

First of all a huge round of applause for both this awesome plugin and his work on many others. You rock Ted :)

Now to an issue I (and likely others) have. Concerning highlighting the top rated post with this code in all instances of class="alt1" or class="alt2" in your postbit template:

Code:

<if condition="$thread[toppost] == $post[postid]">background-color:#CCCCCC;</if>
This works fine. Unfortunately it has 2 unusual problems that make it unusable (at least for me):

1. If you click edit on the post, you lose the BG color changes.
2. if you receive a PM from a user with a high rated post, the BG color will appear. Very strange as I understand the if conditional but not sure why this occurs :/

Feel free to PM Ted and I could show you this on my dev machine.

Milez 04-04-2009 09:35 PM

Hmm perhaps an 'if page is Showthread' conditional is needed to solve no. 2. Not so sure about 1 though.

Ted S 04-05-2009 04:49 AM

Interesting stuff.

Edit post I don't think I can do much about and of course it's only something seen in select instances.

For the second issue add AND THIS_SCRIPT == 'showthread' to the conditional.

mohammad6006 04-06-2009 01:26 PM

how can i enable this plugin just for one forum?

Ted S 04-06-2009 06:11 PM

Quote:

Originally Posted by mohammad6006 (Post 1785019)
how can i enable this plugin just for one forum?

by default this is off in all forums so you'd just want to enable it in one.

Milez 04-06-2009 06:40 PM

Ted just wanted to confirm for you that AND THIS_SCRIPT == 'showthread' fixes the issue with the PMs as it should. So for anyone else background colors for highlighting top post can be like:

Code:

<if condition="$thread[toppost] == $post[postid] AND THIS_SCRIPT == 'showthread'">background-color:#CCCCCC;</if>
Do you have any idea what file is being called when posts are edited? Did anyone else get around the background color changes not taking effect after a post edit?

Ted S 04-06-2009 10:41 PM

When a post is edited inline it's an ajax javascript call so there is no script associated... it's all javascript.

Quantnet 04-07-2009 03:36 AM

Good stuff, Ted
I have been using 1.5.4 for a while and only get to play with the latest version until now.
When I tried to use ha_import to import the thanks mod to this, it ran halfway and got this error

Invalid SQL:
UPDATE post SET totalrank=totalrank + 1,
goodrank=goodrank + 1 WHERE postid = 548;

MySQL Error : Unknown column 'totalrank' in 'field list'
Error Number : 1054

mohammad6006 04-07-2009 10:25 AM

Quote:

Originally Posted by Ted S (Post 1785216)
by default this is off in all forums so you'd just want to enable it in one.

no

i say another thing

i want this plugin just work for one section

for example on this forum we have General vBulletin Discussions and Programming Discussions
i want this plugin enable for Programming Discussions and no need this plugin in other forums

xcuz for bad english

Ted S 04-07-2009 05:18 PM

Quote:

Originally Posted by mohammad6006 (Post 1785652)
no

i say another thing

i want this plugin just work for one section

for example on this forum we have General vBulletin Discussions and Programming Discussions
i want this plugin enable for Programming Discussions and no need this plugin in other forums

xcuz for bad english

Like I said, you can enable it in just one forum.


All times are GMT. The time now is 04:22 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.02655 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)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