vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Reputation comment in post - karma for 3.5 (https://vborg.vbsupport.ru/showthread.php?t=103046)

l3vi 12-15-2005 10:00 PM

Reputation comment in post - karma for 3.5
 
This is my first hack for vbulletin that will show user comments in the post that they gave reputation for. Very popular with the users, they eat it up.

no one ever ported the first one from 3.0. so I wrote a new one just for 3.5.

Download, unzip and read install.txt

Don't forget to click installed if you installed it!

This hack makes each post's reputation visible to everyone. please see screen shots for examples

Modifications: add a little code to postbit template and install the xml file.

Install Time: 2 minutes max

Difficulty: Easy

Screenshot attached of a post with reputation comments!

dieselpowered 12-16-2005 12:11 AM

Probably would be a good idea to give a better description as well as a screenshot. I am sure you will be asked anyway :)

YOimYO 12-16-2005 01:07 AM

Hi, could i get a better description as well as a screenshot :P


jk :D

sounds nice :)


Ill test it out :D



thx ;)

Ravage1 12-16-2005 01:34 AM

it is okay, not very impressive, but it works.....

l3vi 12-16-2005 01:45 AM

Thanks guys,

first time around on all this. ;p

Its been updated!

l3vi 12-16-2005 01:46 AM

Quote:

Originally Posted by Ravage1
it is okay, not very impressive, but it works.....

What where you expecting? its the same style of mod for 3.0 that no one could get around to porting, so when I moved to VB and seen no one had done it I wrote a new one.

Reeve of shinra 12-16-2005 03:46 AM

How is it with queries? I found that the 3.0 one ran way too many extra queries so I had to remove it.

rb290 12-16-2005 04:08 AM

few questions

for everyone that gets commented in the thread, does it show for them all ? or does it only show the comments for the thread creator. also, can everyone see the comments or only your own ?

rb290 12-16-2005 04:23 AM

and when I went into a thread It gave me this:


Database error in vBulletin 3.5.2:

Invalid SQL:

SELECT user.username, reputation.reputation, reputation.reason
FROM reputation AS reputation
LEFT JOIN user AS user ON(user.userid = reputation.whoadded)
WHERE postid = 4096
ORDER BY reputation.dateline LIMIT;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5
Error Number : 1064
Date : Friday, December 16th 2005 @ 01:23:14 AM
Script : http://thugonline.net/showthread.php?p=4096#post4096
Referrer : http://thugonline.net/index.php
IP Address : 69.158.161.4
Username : DOPE.MAN
Classname : vb_database

l3vi 12-16-2005 05:51 AM

Quote:

Originally Posted by rb290
few questions

for everyone that gets commented in the thread, does it show for them all ? or does it only show the comments for the thread creator. also, can everyone see the comments or only your own ?


everyone can see it.

l3vi 12-16-2005 05:55 AM

Quote:

Originally Posted by rb290
Invalid SQL:

SELECT user.username, reputation.reputation, reputation.reason
FROM reputation AS reputation
LEFT JOIN user AS user ON(user.userid = reputation.whoadded)
WHERE postid = 4096
ORDER BY reputation.dateline LIMIT;

Its missing the end of the query after LIMIT should have a number.


replace: in manage plugins > edit plugin

$post_reputations_bit = $this->registry->db->query_read("
SELECT user.username, reputation.reputation, reputation.reason
FROM " . TABLE_PREFIX . "reputation AS reputation
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = reputation.whoadded)
WHERE postid = ".$post['postid']."
ORDER BY reputation.dateline LIMIT ".$this->registry->options['maxrepgv']
);

with:

$post_reputations_bit = $this->registry->db->query_read("
SELECT user.username, reputation.reputation, reputation.reason
FROM " . TABLE_PREFIX . "reputation AS reputation
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = reputation.whoadded)
WHERE postid = ".$post['postid']."
ORDER BY reputation.dateline"
);

As this is my first mod for vbull I would have to find someone with more exp to be able to tell us why your board is not getting $this->registry->options['maxrepgv']

Unless its not set in admin under reputation options.

l3vi 12-16-2005 06:03 AM

Quote:

Originally Posted by Reeve of shinra
How is it with queries? I found that the 3.0 one ran way too many extra queries so I had to remove it.


It will run a query on each post, with one join. I have not noticed any big or small dif on my boards.

rb290 12-16-2005 07:12 AM

what do the queries do ?
make it run slower or ???

Paul M 12-16-2005 08:06 AM

Quote:

Originally Posted by l3vi
As this is my first mod for vbull I would have to find someone with more exp to be able to tell us why your board is not getting $this->registry->options['maxrepgv']

The answer to that is quite simple - 'maxrepgv' does not exist in default vbulletin.

It is a setting added by my "Display Reputation Given" hack which you obviously must have installed.

Enthonia Tech 12-16-2005 10:43 AM

Thanks A Lot! :)

l3vi 12-16-2005 03:03 PM

hehe thanks Paul,

I have updated the script so that it has no limit, should run in a standard board now. ;p

Skitzzo 12-16-2005 03:41 PM

I wish I had seen this earlier... I just paid a guy for porting over a different version of this... oh well... nice hack anyway.

YOimYO 12-27-2005 10:52 PM

awesome !!!! :D

zylstra 01-02-2006 03:42 AM

Can you add the functionality to turn the system on/off per forum?

Thanks.

On second thought forget my ridiculous comment, I don't know why I suggested it. I like the mod!

lazytown 02-03-2006 01:52 AM

Can this be made anonymous (unless the user chooses to write their handle in the comment)?

-vissa

Lord Brar 02-05-2006 12:03 PM

Excellent work! Thanks :)

HHU 03-08-2006 09:10 PM

Would be great to be able to turn it on / off for specific forums... other then that nice owrk

Borgs8472 03-08-2006 09:17 PM

^ ^
I have the ported 3.0 version that I paid for which you can turn off by forum. PM me if you want it. Just $5.

realraptor 07-22-2006 10:40 PM

Anyone got this working for 3.5.4? I'm using vB 3.5.4 and for some reason, only myself (Admin) seem to be able to have full functionality. Other users have their comment posted, but their usernames and "disagree/agree" do not appear.

l3vi 07-22-2006 10:57 PM

I just ran into this bug the other week, and wrote a fix for it. I just updated it today.

The problem was that some users do not have reputation points to give so their user name was not showing. As noted it is fixed now.

realraptor 07-22-2006 11:06 PM

Quote:

Originally Posted by l3vi
I just ran into this bug the other week, and wrote a fix for it. I just updated it today.

The problem was that some users do not have reputation points to give so their user name was not showing. As noted it is fixed now.

Thanks for the fix!

Chicago_VLNU_4s 07-28-2006 05:12 AM

can some1 explain this so that a total begginner like me can understand? where do i find all this other stuff at? i uploaded the .xml file, easy, now i gotta find all this other stuff? where is it at?

realraptor 08-01-2006 01:18 PM

Quote:

Originally Posted by Chicago_VLNU_4s
can some1 explain this so that a total begginner like me can understand? where do i find all this other stuff at? i uploaded the .xml file, easy, now i gotta find all this other stuff? where is it at?

AdminCP > Styles & Templates > Style Manager > [your vB style] > Under "Your Style Options" select "Edit Templates" > Scroll to "Postbit Templates" and click it > Edit (click) either Postbit or Postbit Legacy or both depending on which one you are using.

Postbit legacy is where you have the username, location, postcount etc. stuff on the left of a post.

Postbit is when the poster details is on the top of a post.

apokphp 08-14-2006 10:52 PM

will this be updated for 3.6? I really enjoyed this hack, but it doesn't work properly on an upgraded forum.

dxguru 08-15-2006 06:34 AM

I just upgraded to 3.6, redid the template change and reinstalled the product ... works fine :)

Partsking 08-25-2006 07:15 PM

Anyone else having issues with people injecting html code in the comments?

xtrass 11-11-2006 03:14 AM

I'm stuck on this...

Step 2.

Upload the product via the Product Manager using the supplied XML file.

where is the Product Manager?

Newbie here on latest version.

pls provide step by step for a complete noob thx!

oK i FOUND IT!

that was easy :)

Bullibeisser 01-26-2007 09:22 AM

in 3.6.4 it doesnt work, Im using german version of vbull 3.6.4.

is there something wrong ?

Quote:

TO INSTALL:

Step 1; in postbit template;

Find: <!-- / message -->

ADD THIS AFTER IT:

<!-- #### SHOW REPUTATION GIVEN IN POST START - BY LEVI THORNTON #### -->
<if condition="$show['post_reputation_gv']">
<br>
<fieldset class="fieldset" style="border-color:#DDDDDD;">
<legend>Comments on this post</legend>
<div style="padding:12px">
$post_rep_gv
</div>
</fieldset>
</if>
<!-- #### SHOW REPUTATION GIVEN IN POST END - BY LEVI THORNTON #### -->

jimbocook 02-12-2007 01:00 AM

Anyway to mod this so that the rep comments appear immediately on the page in 3.6x? As it is now, since the rep comments are added via AJAX it takes a page refresh to see them.

JulianWolf 06-05-2007 10:15 PM

An easy question, that drives me mad:

Where does the word "agrees" come from? I run this Hack in german langague, so I just hardcodet the sentence "comments" in the template-change.

But I can´t find "agrees" in the langague and I can´t find it in the templates. Where can I change it?

Best wishes, Julian!

steve71 07-04-2007 04:06 AM

Quote:

Originally Posted by JulianWolf (Post 1262075)
An easy question, that drives me mad:

Where does the word "agrees" come from? I run this Hack in german langague, so I just hardcodet the sentence "comments" in the template-change.

But I can?t find "agrees" in the langague and I can?t find it in the templates. Where can I change it?

Best wishes, Julian!

My guess would be check the XML file that comes with this hack.

JulianWolf 07-04-2007 05:33 AM

Oh ... that´s a good Idea. Thx!

ColdSpirit 07-14-2007 12:18 AM

this work in vb3.6.7? or there is any mod like this for 3.6.7??
thanks in advance!!

Piccante 07-19-2007 07:42 PM

Doesn't work in 3.6.7PL :(

Shame, I've just upgraded from 3.5.4 where this was one of my members' favourite features.......

Atwal 07-19-2007 08:04 PM

it works on 3.6.7PL i've seeen it on some sites


All times are GMT. The time now is 05:50 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.01395 seconds
  • Memory Usage 1,818KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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