vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Post Ranking System (https://vborg.vbsupport.ru/showthread.php?t=203801)

vbboarder 02-28-2009 07:58 PM

Bug Report: The option to search users who have voted up/down X% of the time does not work. When specified either voted up or voted down, no results were given: I verified the entries in the postrankedby table so there should have been some results for the query. Also, when specified voted down, a warning was given:
Quote:

Warning: arsort() expects parameter 1 to be array, null given in [path]admincp\postrank.php on line 184
.

Feature Request: Provide a statistics page where users can see the top X# of highest, highly, lowly, & lowest ranked posts. Besides listing the postings' titles, it would be helpful to also show users who have voted up and users who have voted down.

inciarco 03-01-2009 09:42 PM

I've just noticed what seems to be another Bug, perhaps related with the one I posted about Very Low Ranked Posts Not Being Hidden for Unregistered Guests, and is that also for Unregistered Guests the Very High Ranked Posts are not being Highlighted as it is being done for Registered Users. :confused:

My Best Regards. ;)

:)

Teresa 03-01-2009 10:47 PM

I'm getting this error:

Warning: require_once([path]/includes/functions_postrank.php) [function.require-once]: failed to open stream: No such file or directory in [path]/showthread.php(984) : eval()'d code on line 4

Fatal error: require_once() [function.require]: Failed opening required '/home/cavycage/public_html/forum/includes/functions_postrank.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cavycage/public_html/forum/showthread.php(984) : eval()'d code on line 4

On vB 3.8.1,downloaded version 1.9 today.

Teresa 03-01-2009 11:04 PM

I'm also getting this when I go into vB Admin options to try to tweak the config settings for this mod:

Parse error: syntax error, unexpected T_STRING in /home/cavycage/public_html/forum/includes/adminfunctions_options.php(397) : eval()'d code on line 4

Parse error: syntax error, unexpected T_STRING in /home/cavycage/public_html/forum/includes/adminfunctions_options.php(397) : eval()'d code on line 4

Teresa 03-01-2009 11:29 PM

Quote:

Originally Posted by Teresa (Post 1758005)
I'm getting this error:

Warning: require_once([path]/includes/functions_postrank.php) [function.require-once]: failed to open stream: No such file or directory in [path]/showthread.php(984) : eval()'d code on line 4

Fatal error: require_once() [function.require]: Failed opening required '/home/cavycage/public_html/forum/includes/functions_postrank.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cavycage/public_html/forum/showthread.php(984) : eval()'d code on line 4

On vB 3.8.1,downloaded version 1.9 today.

I got this fixed by manually uploading every file. For some reason (must have to do with mac issue :mad: ) my normal ftp'ing of files up to my server didn't work.

Teresa 03-02-2009 12:23 AM

Quote:

Originally Posted by Teresa (Post 1758066)
Parse error: syntax error, unexpected T_STRING in /home/cavycage/public_html/forum/includes/adminfunctions_options.php(397) : eval()'d code on line 4

Parse error: syntax error, unexpected T_STRING in /home/cavycage/public_html/forum/includes/adminfunctions_options.php(397) : eval()'d code on line 4.

This got fixed by my manual upload of files as well.

Teresa 03-02-2009 12:54 AM

Since it's not mentioned in the Accountable Actions, I'm curious about something.

What happens when we BAN someone OR we move someone into a group that is NOT approved for ranking posts?

An easily foreseeable situation is when we get into some very heated debates and some users have their friends register to support them. More often than not, they get themselves banned by breaking other rules, but it wouldn't be before a potential flurry of ranking activity.

Teresa 03-02-2009 02:26 AM

I would like more flexible on the reporting.
I'd like to be able to see not just the highest, high, low and lowest posts, but also those with a non-zero activity that aren't ranked yet.

On the more detailed search version, I'd like to not have to choose between up or down, but select ANY vote.

I'd like to be able to see who has voted and there summary by user and sortable on different stat columns.

All that would be very nice!

Thanks for the great mod.

Teresa 03-02-2009 02:54 AM

Also, I would like to be able to add an option to the search pull-down that allows you to search posts by rank. It would select all posts with a non-zero rank activity and sort them top-down by rank and include the post status (high, low...). I would like to be able to sort by the rank column or the status.

I'd like the same idea by user.

Teresa 03-03-2009 02:46 AM

Sorry to have so many requests. But I really do like this mod. Voted MOTM.

I'd really like the ability to have the post results display:
+2 Votes (2 Up / 0 Dn) - basically both the options displayed simultaneously without the toggle link.

FullyTested 03-03-2009 02:36 PM

Version 2.0
Fixed a few bugs and added the following features:
- Manage votes by User or Post via Admin CP
- Auto hide (collapse) now has multi-quote and quick-reply buttons
- If no highlighting colour is specified, that colour is now skipped
- You may now choose if to allow users to rank their own posts
- You may now force post highlighting and/or hiding upon Unregistered users
- Added a top 10 statistics page a link to which is placed at the bottom of the Quick Links drop down menu

UPGRADING:

It is highly recommended you Un-install and then Re-install the product.
Please follow the ReadMe instructions and re-FTP all files to your server.

zglows 03-03-2009 02:48 PM

Wow 2.0! What an update, this mod keeps getting better and better.

Teresa 03-03-2009 04:05 PM

I won't lose my current votes by uninstalling, will I?
Thanks!

Teresa 03-03-2009 04:06 PM

Quote:

Originally Posted by Teresa (Post 1759393)
I won't lose my current votes by uninstalling, will I?
Thanks!

Or my phrase changes?

DobieGillis? 03-03-2009 04:27 PM

interesting Mod, well done!

FullyTested 03-03-2009 04:49 PM

Quote:

Originally Posted by Teresa (Post 1759393)
I won't lose my current votes by uninstalling, will I?
Thanks!

You will.
You don't have to uninstall but is recommended if one has changed the 'Abysmal Rank' (auto delete) settings.

Teresa 03-03-2009 04:54 PM

Quote:

Originally Posted by FullyTested (Post 1759431)
You will.
You don't have to uninstall but is recommended if one has changed the 'Abysmal Rank' (auto delete) settings.

Oh good. I didn't change that, so hopefully, I can do a normal upgrade. Thanks.

FullyTested 03-03-2009 04:57 PM

Teresa, you still need to re-upload all the files (not images) to your server.

vbboarder 03-03-2009 05:17 PM

Thanks for the update.

Bugs Report:
#1: The option to search users who have voted up/down X% of the time still does not work in version 2.0, but the warning message is gone now. When specified either voted up or voted down, no results were given: I verified the entries in the postrankedby table so there should have been some results for the query.

#2: The statistics page works and looks awesome! However, there's 2 minor bugs relating to the Display Stats in Navbar Link. It should be hooked to parse_templates so that the link shows up in non-forum pages, and sessionurl should be used instead of sessionurl_q since you have the '?' query character in the url.

#3: Clicking on the "# rank" link still does not change it to "+upvote / -downvote" in IE7 (works fine in FF3).

#4: There are no date or version number for the templates so VB may not be notifying users that templates need to be reverted when updating. Can you include these info in your templates xml so that we'll know if templates need to be reverted?

Feature Request: Provide an option to force only unregistered users for post highlighting and post hiding. I don't want to force members since they can specify their own settings, but I want to force guests since they don't have their own settings.

inciarco 03-03-2009 08:31 PM

Fantastic Update FullyTested, Thank You Very Much For Sharin It. :up::up::up:

I Voted For This Mod For this Month's MOTM. ;)

All Features Working Fine So Far On My Tests. :up:

Only One Observation (Little Bug), and it's that on Internet Explorer 6 (I don't know if on other Higher Versions Too), the "+ X rank" Link don't Change to the "+Y / -Z" Text, but on FireFox and on Chrome it does. :confused: ;)

My Best Regards.

:)

FullyTested 03-03-2009 10:19 PM

Quote:

Originally Posted by vbboarder (Post 1759451)
#1: The option to search users who have voted up/down X% of the time still does not work in version 2.0,

I think I know why this is. The value for minimum posts ranked by the user is currently compared against the total 'up' votes and total 'down' votes separately instead of the combined total. Will try and fix it for next update.

Quote:

Originally Posted by vbboarder (Post 1759451)
#2: The statistics page works and looks awesome! However, there's 2 minor bugs relating to the Display Stats in Navbar Link. It should be hooked to parse_templates so that the link shows up in non-forum pages, and sessionurl should be used instead of sessionurl_q since you have the '?' query character in the url.

Thanks for letting me know. I shall change that accordingly.

Quote:

Originally Posted by vbboarder (Post 1759451)
#3: Clicking on the "# rank" link still does not change it to "+upvote / -downvote" in IE7 (works fine in FF3).

Quote:

Originally Posted by inciarco (Post 1759550)
Only One Observation (Little Bug), and it's that on Internet Explorer 6 (I don't know if on other Higher Versions Too), the "+ X rank" Link don't Change to the "+Y / -Z" Text, but on FireFox and on Chrome it does.

I think this is a well known bug with IE that has to do with display:none; and display:block; in spans
I don't have IE on my Mac but will see what I can do. Suggestions are most welcome.

Quote:

Originally Posted by vbboarder (Post 1759451)
#4: There are no date or version number for the templates so VB may not be notifying users that templates need to be reverted when updating. Can you include these info in your templates xml so that we'll know if templates need to be reverted?

Will fix that.

Quote:

Originally Posted by vbboarder (Post 1759451)
Provide an option to force only unregistered users for post highlighting and post hiding. I don't want to force members since they can specify their own settings, but I want to force guests since they don't have their own settings.

Will try and fix it for next update.


Thank you for the feedback and for all of you who have voted for this mod.
While this mod is far from being perfect I think it has some potential.

vbboarder 03-03-2009 11:50 PM

Feature Request: Provide a "User Votes" js-enabled link that will show the names of the users who voted up and who voted down. The userinfo area in postbit is probably too small or congested to show all the names, so you may want to use the postbit_end template hook. If not implementing by ajax, provide an option to limit the usergroups whose posts would have this feature to limit the # of extra queries.

Teresa 03-04-2009 04:22 PM

Quote:

Originally Posted by vbboarder (Post 1759686)
Feature Request: Provide a "User Votes" js-enabled link that will show the names of the users who voted up and who voted down. The userinfo area in postbit is probably too small or congested to show all the names, so you may want to use the postbit_end template hook. If not implementing by ajax, provide an option to limit the usergroups whose posts would have this feature to limit the # of extra queries.

I like that idea, but would also request that that feature be secured by usergroup. Our members are really liking the fact that the voting is anonymous--which is a big distinction from the Thanks Mod. I would only want Mods/Admin to see who voted on any given post. But I would LOVE to be able to see that easily on any given post.

Feature Request:
I like the Top 10 Stats. It's a good start, but we need more. We really need the ability to see ALL posts that have been voted on--that is any voting activity. Instead of hard-coded top-10, I'd like a pull-down option of how many to display or 'all' with paging. Also, with all the columns you have in the stats, we would like those columns to be sortable.

Feature Request:
I'd really prefer to see a distinction between, Neutral (WITH VOTES) and Neutral (NO VOTES). Actually, "Neutral WITH VOTES" is of great interest to me, especially the higher the vote count, because those would be our controversial posts. I would prefer to have ONE MORE Category of post, called NEUTRAL, with a score of high-1 through low+1 with ANY voting activity. That way, in the member profile, members can click on their NEUTRAL total post count and go see which posts are getting any votes at all, even though they haven't moved up or down enough to trip a threshold. For example, my thresholds are 10, 5, -5, -10. I would like ALL posts with any votes and a score (including zero) between 4 and -4 to be counted as neutral. So, in addition, it should be clearer on a post when a post moves to NEUTRAL versus NO VOTES. And of course have those titles phrased as well.

Then I wouldn't need the additional report of finding all voted upon posts by user, because it would be there by default in their profile and postbit.

Thanks so much!! Loving this mod.:D

Teresa 03-04-2009 04:32 PM

Feature Request: We still also would like the ability for a member to change their vote. They are making some mistakes with the icons being so close together.

FullyTested 03-05-2009 02:53 AM

Hello Folks,

I will try and find the time to add features to this mod, however, while some features are relatively easy to incorporate, others are code heavy and require a lot more time to write and test.

Version 2.1 is out.
The following files have changed:
- admincp->postrank.php (please re-FTP to your server)
- clientscript->vbulletin_ajax_postrank.js (please re-FTP to your server)
- product_postrank.xml (please re-import with 'Allow Overwrite' selected)

1). Added the ability to force Un-Registered users to have posts highlighted/hidden, while keeping the Registered users' option separate
2). Added the ability to display the detailed post score (+10/-5) on the same line as the total score (+5)
3). Added the phrase 'Not Ranked' which now shows instead of 'Neutral' for posts that have no votes
4). Fixed the % search function
5). Moved the statistics page link to the 'parse_templates' hook
6). Added date and version numbers to all templates

Teresa 03-05-2009 03:27 AM

Quote:

Originally Posted by FullyTested (Post 1760710)
Hello Folks,

I will try and find the time to add features to this mod, however, while some features are relatively easy to incorporate, others are code heavy and require a lot more time to write and test.

You are awesome!! I can't wait to get this uploaded! Whoohoo! :D

Update: Worked Great. Thanks! Looking forward to more enhancements when you can. Cheers.

FullyTested 03-05-2009 04:29 AM

Teresa,

I've just changed the score of 0 (+0/-0) to just 0 so that it looks better.
Just download again and re-import product.

sensimilla 03-05-2009 07:15 AM

I va installed latest version and now i get this error from db

Code:

MySQL Error  : Table 'mydatabase_stylwolny2.postrank' doesn't exist
Error Number  : 1146
Request Date  : Thursday, March 5th 2009 @ 10:47:59 AM
Error Date    : Thursday, March 5th 2009 @ 10:47:59 AM
Classname    : vB_Database
MySQL Version :


FullyTested 03-05-2009 11:31 AM

When do you get the error? When installing or when voting?

inciarco 03-05-2009 01:38 PM

Great Update, FullyTested. :up:

Nice New Features. ;)

Idea For Update: As the SQL Queries of the Mod for the Top Ranking Stats cause Load to the Server, I think It'd be Nice to be able to Set What Usergroups Can See the Post Ranking Stats Page, and the other Usergroups will see a "Don't Have Permissions" Page.

I think a Field to Set the Usergroups Separated by Comma on the Mod's Options, (or the other way you are doing it for the other Options on the Mod), and an If Logic Sentence to Compare List of Authorized Usergroups with the Usergroup of the User trying to access the Top Ranking Stats would do it. ;)

I Always Like to Save the Intensive Server Search Queries of Installes Mods for Registered Users and Not for Guests that Will Only Toy/Play with the Features and cause Unnecessary Loads on the Server. :rolleyes:

Edit: Other Idea: It'd also be Nice to Allow Users to Select the Number (X) of Top X Ranked Posts to be Displayed on the Top Ranked Posts Page; I think that a Field can be Included on the Mod's Options to Set the Number's (X) Options of Ranked Posts, separated with commas, (like the way Admins Set the Options for Number of Posts to be Displayed on Thread's Page on vBulletin's Options), and those Options to Appear on a DropDown Field, and when Selecting the Field Browsing to Display the Page with the Top X Ranked Posts, and/or Provide a "Go" Button. (It's like on the Cybernetec's Advanced Statistics Page ;)).

I Hope You Can Include This Features on Your Next Update, (at least the First One of Usergroups Permissions). :up:

My Best Regards.

:)

sensimilla 03-05-2009 01:58 PM

Quote:

Originally Posted by FullyTested (Post 1760964)
When do you get the error? When installing or when voting?

No idea it was just sent into my mailbox as an error.. it was the only one so far so might be this will never happen again..

dazkeirle 03-05-2009 02:53 PM

ok, I've got it installed and is great in many areas. Going to give my forum some pizzaz.

my only comments are.

ATM highest ranked and lowest ranked are set to a score. Surely there should only be 1 highest ranked and only 1 lowest ranked on any thread, and that should be the one with the highest and lowest number of points, regardless of that number. That would make way more sense.

I can see the option to delete posts with a certain score, but in the readme you mention soft delete, hard delete etc, i see only 1 option, delete. What sort of delete is this by default?

Finally in the stats section the top query doesn't work for me i.e. "search by rank":

Quote:

Database error in vBulletin 3.8.1:

Invalid SQL:

SELECT COUNT(DISTINCT(userid)) AS count
FROM postranktotals AS postranktotals
INNER JOIN user AS user using(userid)
WHERE highest > 0
LIMIT 1;

MySQL Error : Column 'userid' in field list is ambiguous
Error Number : 1052
Request Date : Thursday, March 5th 2009 @ 11:53:41 AM
Error Date : Thursday, March 5th 2009 @ 11:53:42 AM
Script : http://xxx/forum/admincp/postrank.php?do=search_rank
Referrer : http://xxx/forum/admincp/postrank.php?do=search
IP Address : 81.149.131.168
Username : xxx
Classname : vB_Database
MySQL Version : 4.1.22-standard
Other than that, sweet. Well done, will keep an eye on this.

zglows 03-05-2009 03:59 PM

Thanks for the update!

DobieGillis? 03-05-2009 04:02 PM

works like a charm! Thanks!

Teresa 03-05-2009 05:08 PM

Quote:

Originally Posted by FullyTested (Post 1760776)
Teresa,

I've just changed the score of 0 (+0/-0) to just 0 so that it looks better.
Just download again and re-import product.

Thanks! I also second inciarco's feature requests.

vbboarder 03-05-2009 06:50 PM

Thanks for the update!

Bugs Reports:
1. When a user votes, the # of votes do not update via JS in both IE7 & FF3; also in IE7 the phrase, 'you voted up' or 'you voted down', does not show via JS (but does show in FF3).

2. The stats link does not work for VBA installed in non-forum directory. You need to prepend the url with: $vbulletin->options['bburl'] . '/'

3. The search by percentile function still does not work (I'm sure the new files are uploaded). On my test forum, I have 12 entries in the postrankedby table. 1 user voted 6 times (4 ups, 2 downs) and 1 user voted 6 times (2 ups, 4 downs). In the search, I specified user has voted up (and tested down) at least 60% of the time and ranked at least 1 post. There should be 1 result for each search (voted up/down), but both show no entries.

morrow 03-05-2009 09:13 PM

This modification is now working great for me. I updated my VBSEO and the issues all seem to have gone away.

So far, no bugs found. Thanks for this nice mod.

Teresa 03-05-2009 10:25 PM

Since my last upgrade, my top 10 stats link isn't working. It's directing me to this invalid link:
http://www.guineapigcages.com/forum/...ad.php?p=#post

FullyTested 03-05-2009 10:43 PM

I am currently working on the next upgrade.

Is anyone else having IE issues?
Using IE:
1). Does the score toggle still not work?
2). Does the phrase 'You have voted Up' not show when voting?
3). Can you vote at all?

Thanks.

inciarco 03-06-2009 12:27 AM

I Confirm the Bug I Reported a Few Posts Above, about Not Switching on IE6 between the "+X Score" and the (+Y / -Z), Feature. :confused: (On FireFox and Chrome that Feature Works Fine). :(

When Voting it Shades and the "Alt" Text of the Shaded Voting Images say "You Voted Up" or "You Voted Down", when placing the Cursor Over the Images, on IE6 as well as on FireFox and Chrome. :up:

Also When Voting it Appears on the Left "You Voted Up" or "You Voted Down", when Placing the Vote.

It Allows to Vote Fine on IE6 and on FireFox and Chrome. :up:

The Feature For Changing the Vote Would be Nice on One of the Following Updates. ;)

My Best Regards and Thank You Again For this Great Updates. :up:

:)


All times are GMT. The time now is 12:40 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.01578 seconds
  • Memory Usage 1,859KB
  • 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
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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