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)

FullyTested 03-20-2009 03:43 AM

Version 2.5
Fixed small bug with the stats page.
Added the ability to have the score and rank images display in a separate line when default setting is to not have the thread title in every post.

The following files have changed:
- postrankstats.php (please re-FTP to your server)
- product_postrank.xml (please re-import with 'Allow Overwrite' selected)

Haltech 03-20-2009 05:40 AM

got it to work... voted MOTM!

pete_brady 03-20-2009 12:18 PM

Right so I've been asked to replace every mention of 'rank' with 'donk'.... don't ask.

is this an easy one?

FullyTested 03-20-2009 03:19 PM

Yes it is easy...
Since everything is phrased you can either change it in the product itself if you open it in a text editor and then re-import it, or simply search all phrases via the admin control panel for the word 'rank' and change it that way.

pete_brady 03-20-2009 11:44 PM

Quote:

Originally Posted by FullyTested (Post 1772653)
Yes it is easy...
Since everything is phrased you can either change it in the product itself if you open it in a text editor and then re-import it, or simply search all phrases via the admin control panel for the word 'rank' and change it that way.

excellent, thanks.

ok one more question - can the collapse low ranked posts option be set to on as default for all users without it being forced, i.e. they still have the option to turn it off again?

FullyTested 03-21-2009 02:54 AM

Yes, you can run this SQL query to set both hide and highlight on for all users:

for both:
UPDATE postrank_useroptions SET highlight_post = 1, hide_post = 1

for collapse/hide:
UPDATE postrank_useroptions SET hide_post = 1

for highlight:
UPDATE postrank_useroptions SET highlight_post = 1

pete_brady 03-21-2009 08:51 AM

thanks for that, but i only have postrank_useroptions for users who've already modified their options?

FullyTested 03-21-2009 09:59 AM

pete_brady,

if you have MySQL 4.1.0 or higher:

INSERT INTO postrank_useroptions (userid, highlight_post, hide_post) SELECT userid,1,1 FROM user ON DUPLICATE KEY UPDATE highlight_post = 1, hide_post = 1

pete_brady 03-21-2009 12:57 PM

great, thanks!

Stussi 03-21-2009 01:27 PM

We have a little problem.. after installing and setting up the values i tried to vote some posts.

Unfortunately that doesn't work. After clicking 2 times (about 20 seconds between the clicks) on the + oder - button they turn grey and nothing happens.

Any suggestions?


All times are GMT. The time now is 04:43 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.01279 seconds
  • Memory Usage 1,734KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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