Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Reputation comment in post - karma for 3.5 Details »
Reputation comment in post - karma for 3.5
Mod Version: 1.0.1, by l3vi (Member) l3vi is offline
Developer Last Online: Apr 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.2 Rating: (6 votes - 4.67 average) Installs: 82
Released: 16 Dec 2005 Last Update: 23 Jul 2006 Downloads: 214
Not Supported  

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!

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	shot1.jpg
Views:	1595
Size:	36.9 KB
ID:	39451   Click image for larger version

Name:	shot2.jpg
Views:	1254
Size:	36.1 KB
ID:	39452  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 16 Dec 2005, 02:11
dieselpowered's Avatar
dieselpowered dieselpowered is offline
 
Join Date: Aug 2004
Location: Arizona
Probably would be a good idea to give a better description as well as a screenshot. I am sure you will be asked anyway
__________________
CommanderTalk.com --> www.commandertalk.com
Reply With Quote
  #3  
Old 16 Dec 2005, 03:07
YOimYO YOimYO is offline
 
Join Date: Oct 2005
Hi, could i get a better description as well as a screenshot :P


jk

sounds nice


Ill test it out



thx
Reply With Quote
  #4  
Old 16 Dec 2005, 03:34
Ravage1 Ravage1 is offline
 
Join Date: Dec 2005
it is okay, not very impressive, but it works.....
Reply With Quote
  #5  
Old 16 Dec 2005, 03:45
l3vi l3vi is offline
 
Join Date: Dec 2005
Thanks guys,

first time around on all this. ;p

Its been updated!
Reply With Quote
  #6  
Old 16 Dec 2005, 03:46
l3vi l3vi is offline
 
Join Date: Dec 2005
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.
Reply With Quote
  #7  
Old 16 Dec 2005, 05:46
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
How is it with queries? I found that the 3.0 one ran way too many extra queries so I had to remove it.
Reply With Quote
  #8  
Old 16 Dec 2005, 06:08
rb290's Avatar
rb290 rb290 is offline
 
Join Date: Oct 2005
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 ?
Reply With Quote
  #9  
Old 16 Dec 2005, 06:23
rb290's Avatar
rb290 rb290 is offline
 
Join Date: Oct 2005
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
Reply With Quote
  #10  
Old 16 Dec 2005, 07:51
l3vi l3vi is offline
 
Join Date: Dec 2005
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.
Reply With Quote
  #11  
Old 16 Dec 2005, 07:55
l3vi l3vi is offline
 
Join Date: Dec 2005
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.

Last edited by l3vi; 16 Dec 2005 at 08:01.
Reply With Quote
  #12  
Old 16 Dec 2005, 08:03
l3vi l3vi is offline
 
Join Date: Dec 2005
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.

Last edited by l3vi; 16 Dec 2005 at 08:08.
Reply With Quote
  #13  
Old 16 Dec 2005, 09:12
rb290's Avatar
rb290 rb290 is offline
 
Join Date: Oct 2005
what do the queries do ?
make it run slower or ???
Reply With Quote
  #14  
Old 16 Dec 2005, 10:06
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
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.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #15  
Old 16 Dec 2005, 12:43
Enthonia Tech Enthonia Tech is offline
 
Join Date: Nov 2005
Real name: Muhammad Haris
Thanks A Lot!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 05:09.

Layout Options | Width: Wide Color: