Register Chat Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Pig's configurable rep gems Details »»
Pig's configurable rep gems
Mod Version: 1.00, by boozehound (Contributor) boozehound is offline
Developer Last Online: Sep 2007 Show Printable Version Email this Page

This thread is in the Modification Graveyard.
vB Version: 3.5.3 Rating: (3 votes - 5.00 average) Installs: 18
Released: 12 Jan 2006 Last Update: Never Downloads: 94
Not Supported DB Changes Uses Plugins Template Edits Additional Files  

A port to 3.5.x of this hack.

Description
  • Change the amount of reputation needed to acquire each reputation image (gem) as displayed in the postbit among other places
  • Change the type of image displayed for each level
  • Optionally insert a line break (or other markup) before one or more of the images

Installing this extension adds:
  • One database table.
  • Two plugins.
  • Two templates.
  • 18 phrases.
  • One php file.
  • One xml file.
at a cost of:
  • One (small) query per page involving display of reputation (showthread, showpost, memberlist, member).

Installation
  • Download product.zip and unpack it.
  • Upload the files in the upload directory:
    • admincp/repgems.php
    • includes/xml/cpnav_pig_rep_gems.xml
  • Install the product by importing the product-pig_rep_gems.xml file into the product manager in Admin CP
Additionally, you can upload the images in 'additional images.zip' to the images/reputation directory (read 'usage' below).

Usage

(Refer to the screenshots)

After installation reputations will appear as normal. Refresh your Admin CP and you'll find a new link in the 'User Reputations' section of the navigation frame labelled 'Manage Reputation Images'.

(see screen1.png)

Use the upper form to change the settings for each reputation image and the lower form to add new images.
  • 'Minimum reputation' specifies the minimum amount of reputation a user must have to acquire the image. For negative reputations, the values are (-1 * the minimum).
  • The value of 'Image suffix' determines which type of image is shown for each level. A blank value corresponds to the standard dark green or dark red reputation images. A value of 'high' corresponds to the brighter coloured reputation images. These files are named reputation_highpos.gif and reputation_highneg.gif for positive and negative reputations respectively, whereas the 'blank' images are named reputation_pos.gif and reputation_highpos.gif respectively.
  • If one wanted to add a new type of image, for example reputation_maxpos.gif and reputation_maxneg.gif as found in 'additional images.zip' then they should be uploaded to images/reputation and the value of 'max' should be used in the 'Image suffix' field.
  • If you wish to insert a line break before a particular reputation image, change the 'insert break' setting to 'yes'. By default, this will result in the contents of the template 'postbit_pig_reputation_break' being inserted before the reputation image. This template by default contains simply:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.


Screenshots
  • screen1.png show the Admin CP settings page after a new installation of the product.
  • screen2.png shows the settings page after two levels have been added, the types of image altered and a break inserted before image 8.
  • screen3.png shows the effect of the settings shown in screen2.png
  • screen4.png shows the settings page using two line breaks and a custom image type ('max').
  • screen5.png shows the effect of the settings shown in screen4.png.

Download Now

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

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	screen1.png
Views:	544
Size:	70.9 KB
ID:	40878Click image for larger version

Name:	screen2.png
Views:	415
Size:	25.1 KB
ID:	40879Click image for larger version

Name:	screen3.png
Views:	401
Size:	53.3 KB
ID:	40880Click image for larger version

Name:	screen4.png
Views:	374
Size:	24.5 KB
ID:	40881Click image for larger version

Name:	screen5.png
Views:	478
Size:	53.7 KB
ID:	40882

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Pig's post report system boozehound vBulletin 3.5 Add-ons 39 17 Jul 2007 15:47
Pig's Subscription Gift boozehound Modification Graveyard 49 08 May 2007 21:22

Comments
  #2  
Old 12 Jan 2006, 19:23
ThePimp's Avatar
ThePimp ThePimp is offline
 
Join Date: Feb 2005
Interesting
Reply With Quote
  #3  
Old 12 Jan 2006, 19:51
nexialys
Guest
 
very...

* nexialys look at the install button...


to minimalise the change of 1 query, wouldn't it be good to store the data in the cache??
Reply With Quote
  #4  
Old 12 Jan 2006, 19:57
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Originally Posted by ThePimp
Interesting
I agree...
__________________
Think Hype Networks | MeandIsis
Reply With Quote
  #5  
Old 12 Jan 2006, 20:03
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Originally Posted by nexialys
very...

* nexialys look at the install button...


to minimalise the change of 1 query, wouldn't it be good to store the data in the cache??
I don't know how to do that yet.
__________________
The Student Room
Reply With Quote
  #6  
Old 12 Jan 2006, 21:40
WNxWakko's Avatar
WNxWakko WNxWakko is offline
 
Join Date: Apr 2003
Very nice, Installed and works perfect.
__________________
WNxWakko
http://warriornation.net
http://gamersphere.com
Reply With Quote
  #7  
Old 12 Jan 2006, 22:48
WNxWakko's Avatar
WNxWakko WNxWakko is offline
 
Join Date: Apr 2003
Ok, when I read a PM, I get this error at the top of my page,

Warning: Invalid argument supplied for foreach() in /includes/functions_reputation.php(140) : eval()'d code on line 14
__________________
WNxWakko
http://warriornation.net
http://gamersphere.com
Reply With Quote
  #8  
Old 12 Jan 2006, 23:00
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Originally Posted by WNxWakko
Ok, when I read a PM, I get this error at the top of my page,
Update your product with this XML file (also updated in first post zip).

I omitted to include 'private' as one of the scripts that this hack applies to.
Attached Files
File Type: xml product-pig_rep_gems.xml (7.3 KB, 21 views)
__________________
The Student Room
Reply With Quote
  #9  
Old 12 Jan 2006, 23:06
WNxWakko's Avatar
WNxWakko WNxWakko is offline
 
Join Date: Apr 2003
Ok there seems to be another problem with this mod. Very strange one at that.

When I use quick reply on any post, I now get the transistion page saying,

This post is a duplicate of a post that you have posted in the last five minutes. You will be redirected to that thread.

Click here if your browser does not automatically redirect you.
However the reply is there.

I know its your mod because when I uninstall your mod, that problem goes away, reinstall mod, problem comes back.

Not on full Reply, Only on Quick reply.
__________________
WNxWakko
http://warriornation.net
http://gamersphere.com
Reply With Quote
  #10  
Old 12 Jan 2006, 23:13
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Originally Posted by WNxWakko
Ok there seems to be another problem with this mod. Very strange one at that.

When I use quick reply on any post, I now get the transistion page saying,



However the reply is there.

I know its your mod because when I uninstall your mod, that problem goes away, reinstall mod, problem comes back.

Not on full Reply, Only on Quick reply.
I can't reproduce this problem on my system. Does anyone else get this?
__________________
The Student Room
Reply With Quote
  #11  
Old 12 Jan 2006, 23:48
WNxWakko's Avatar
WNxWakko WNxWakko is offline
 
Join Date: Apr 2003
This is frustrating. Cant figure out why your mod does this.
__________________
WNxWakko
http://warriornation.net
http://gamersphere.com
Reply With Quote
  #12  
Old 12 Jan 2006, 23:55
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Originally Posted by WNxWakko
This is frustrating. Cant figure out why your mod does this.
Neither can I, it doesn't have anything to do with posting. Can you try disabling the mod's plugins one by one to determine which one the problem lies with?
__________________
The Student Room
Reply With Quote
  #13  
Old 13 Jan 2006, 00:01
WNxWakko's Avatar
WNxWakko WNxWakko is offline
 
Join Date: Apr 2003
Well if I turn off Reputation gem levels - fetch_reputation_image() then i can quick reply. If I turn off the other one, I get all kinds of crazy errors. Not sure if this helps.
__________________
WNxWakko
http://warriornation.net
http://gamersphere.com
Reply With Quote
  #14  
Old 13 Jan 2006, 00:41
WNxWakko's Avatar
WNxWakko WNxWakko is offline
 
Join Date: Apr 2003
Alright, I figured out how to fix this.

Change this
if(in_array(THIS_SCRIPT, array('showthread','showpost','memberlist','member','private')))
to this
if(in_array(THIS_SCRIPT, array('showthread','showpost','memberlist','member','private','newreply')))
__________________
WNxWakko
http://warriornation.net
http://gamersphere.com
Reply With Quote
  #15  
Old 13 Jan 2006, 00:45
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Originally Posted by WNxWakko
Alright, I figured out how to fix this.

Change this


to this
Aha, schoolboy error on my part. Thanks. Product updated.
__________________
The Student Room
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 15:46.

Layout Options | Width: Wide Color: