vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   Is there a way to replace the rep bar with likes? (https://vborg.vbsupport.ru/showthread.php?t=324455)

mbgelsin 02-16-2017 06:15 AM

Is there a way to replace the rep bar with likes?
 
I would like the number of likes to be shown instead of the rep-blocks but there does not seem to be a simple way to do this from what I've found. I saw a product that could edit postbit to show user fields but being new to vb5 I could use a little handholding.

Thank you

delicjous 02-16-2017 07:02 AM

Hi,

not really sure what you want to do.

Would you like to disable the reputationbar and display the users likes instead?

Here are some links:

https://www.vbulletin.com/docs/html/...ons_reputation
https://www.vbulletin.com/forum/foru...ags-on-postbit
https://vborg.vbsupport.ru/showthread.php?t=313240
https://vborg.vbsupport.ru/showthread.php?t=308655

I don't look into it but I think you have to make/ use an addon (doesn't exist right now) to show a summery of users-likes.

mbgelsin 02-16-2017 01:41 PM

That is indeed what I'm looking for, disable rep bar and just display the amount of likes.

I will need to wait it out or get good at making mods I guess :)

delicjous 02-21-2017 06:15 PM

Looked a little deeper... should be a great trial to learn.

You could use the great mod-skeleton from Replicant:
https://vborg.vbsupport.ru/showthread.php?t=323006

This select outputs a table of user and a like count:
SELECT whoadded, count(*) AS counter
FROM `vB_reputation` /*replace or change the table_prefix*/
GROUP BY whoadded

Then you could display it at "{vb:hook 'conversation_userstats'}"in the template "conversation_userinfo" and reference the like-count-user to the $conversation['userid']

Hope that will help you a bit.


All times are GMT. The time now is 02:11 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.01050 seconds
  • Memory Usage 1,713KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete