|
Medals Plugin Customization
|
|
01-13-2008, 07:21 PM
(This post was last modified: 02-23-2008 02:12 AM by EviLito.)
Post: #1
|
|||
|
|||
|
Medals Plugin Customization
Hi there,
If you would like to have a medals system in your forum (and award the best members of your forum with them), you may want to install this plugin: -------------------------------------------------------------- SkunkMedals Plugin: http://mods.mybboard.net/view/skunkmedals However, the latest version is found here: https://code.launchpad.net/ncaanetwork (I had to download one by one the files... well, at least there are few of them) Edit: The above link doesn't seem to work anymore. So I decided to attach the whole plugin package in this post. This updated version removed the fixed size of medal images so you can set any image size you want... you may even set different images sizes for each medal =D-------------------------------------------------------------- The bad thing with this plugin is that the medals are set in a row in the postbit zone (the mini-profile shown in the users posts). So... if an user has too many medals, it may crash your forum layout (x_x) Additionally, the medals are shown just down the postbit... and it doesn't look so good... There was a time when this forum had that plugin installed, and FirefoxWiz modified the Postbit template so the medals were shown in a nice "groupbox"... but, with this modification, in the private messages (and some other areas) the groupbox appeared without medals in it. Well... I decided to modify the latest version plugin code in order to solve this two problems. I'm sharing the file (attached). You may want to customize this parts of the file: PHP Code: $medals_per_line = 5; they're aligned to the left in each line so they look like "scoutboys" badges :mrgreen: ... as you can see in this screenshot:And also you may want to change this part of the file to change the title of the "groupbox": PHP Code: $post['medals'] = "<br><fieldset><legend><strong>Badges</strong>To apply this customization of the plugin, you just need to replace the original file "inc/languages/plugins/medals.php" with the attached in this thread. Enjoy *<=o) Edit: If you want the badges to be centered in the container (groupbox), you can change this part of the second part of code shown before: Quote:<td align=\"left\"> to this: Quote:<td align=\"center\"> and... of course, you can align the medals to the right as well: Quote:<td align=\"right\"> UPDATE: I've updated tha attached file. Now you can make the number of medals per line be automatically fixed in the available space of each user (wich may be affected by screen resolution, medals sizes, browser window size, etc) If this is what you want to do, you just need set to zero the "medals_per_line" parameter. How? Just find this line of code, and set zero, this way: PHP Code: $medals_per_line = 0; So, example: a 800x600 user may see only 3 medals per line, but a 1024x768 user may see 5 medals per line. In both examples, the medals will try to fill the available space inside the medals container. If you have some comments you are welcome to post them here ![]() Enjoy again :thumb1: UPDATE 2: The link to the latest version of the plugin doesn't seem to work anymore. So I decided to attach the whole plugin package in this post. The plugin license allows me to do that The attached package contains my modified file, so have that in mind. It's not the original version.
|
|||
|
01-20-2008, 03:15 AM
Post: #2
|
|||
|
|||
|
RE: Medals Plugin Customization
Very cool and helpful. Did you post this on the mybb thread for the mod?
|
|||
|
01-22-2008, 02:06 AM
(This post was last modified: 01-22-2008 02:08 AM by EviLito.)
Post: #3
|
|||
|
|||
RE: Medals Plugin Customization
NetSage Wrote:Very cool and helpful. Did you post this on the mybb thread for the mod?Glad you found it helpful Erm.. the MyBB thread.. well.. no ;-D but I've just searched, found this thread there, and posted the same message there. So, NOW the anser is Yes bloodbower Wrote:thanx ı like the pulingThat's nice But please don't double post ;-)ByResul Wrote:Turkey Versiyons and edit ------>What? :lol:
|
|||
|
01-24-2008, 12:58 AM
Post: #4
|
|||
|
|||
|
RE: Medals Plugin Customization
It is soooo much cool
i really appreciate ur work |
|||
|
01-24-2008, 05:00 PM
Post: #5
|
|||
|
|||
RE: Medals Plugin Customization
jasmine Wrote:It is soooo much coolThank you. I hope you can enjoy of this nice plugin mod soon.
|
|||
|
01-24-2008, 08:04 PM
Post: #6
|
|||
|
|||
|
RE: Medals Plugin Customization
wow this is very helpful! thanks alot for this
|
|||
|
02-02-2008, 08:20 PM
Post: #7
|
|||
|
|||
|
RE: Medals Plugin Customization
omg YESthis is exactly what this plugin needed
THANKS! |
|||
|
02-07-2008, 10:01 AM
Post: #8
|
|||
|
|||
|
RE: Medals Plugin Customization
Would like to have and use that one.. Thanks
|
|||
|
02-09-2008, 04:00 PM
Post: #9
|
|||
|
|||
|
RE: Medals Plugin Customization
Thanks, i've seen a similar thing for other forums but didn't have it for mybb. it's definitely useful.
|
|||
|
02-15-2008, 04:21 PM
Post: #10
|
|||
|
|||
|
RE: Medals Plugin Customization
They just put something like this at ubuntuforums.
That is not me . Starcraft(2)!!! and Lifehacker!Believe in the cake! ![]() Please say Windows rather than any variants; it doesn't help anyone. "You Call down the thunder and I'll reap the whirlwind!" ~Terran Ghost |
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help


so you can set any image size you want... you may even set different images sizes for each medal =D![[Image: muestragroupboxmedallaskp2.th.png]](http://img265.imageshack.us/img265/7747/muestragroupboxmedallaskp2.th.png)
![[Image: firma_evil.png]](http://i537.photobucket.com/albums/ff331/EviLito/varios/firma_evil.png)



Erm.. the MyBB thread.. well.. no ;-D but I've just searched, found
.