Login Register


Customize the newpoints language file filter_list
Author
Message
Customize the newpoints language file #1
The current newpoints page looks bleh, editing the mods language file could easily make it look much better. In my opinion anyway.

Here's an example of mine at my forum.

Here's a screenshot:
Spoiler:
[Image: 12bdd7e009d0add43078d559148fefd1.png]


This is the code I used:
Spoiler:

PHP Code:
<?php /*************************************************************************** * * NewPoints plugin (/inc/languages/newpoints.lang.php) * Author: Pirata Nervo * Copyright: © 2009-2011 Pirata Nervo * * Website: http://www.mybb-plugins.com * * NewPoints plugin for MyBB - A complex but efficient points system for MyBB. * ***************************************************************************/ /**************************************************************************** This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. ****************************************************************************/ $l['newpoints'] = "Forum Gold Shop"; $l['newpoints_home'] = 'Home'; $l['newpoints_menu'] = 'Menu'; $l['newpoints_donate'] = 'Donate'; $l['newpoints_donated'] = 'You have successfully donated {1} to the selected user.'; $l['newpoints_user'] = 'User'; $l['newpoints_user_desc'] = 'Enter the username you want to send Forum Gold to.'; $l['newpoints_amount'] = 'Amount'; $l['newpoints_amount_desc'] = 'Enter the amount of Forum Gold you want to send to the user.'; $l['newpoints_reason'] = 'Reason'; $l['newpoints_reason_desc'] = '(Optional) Enter a reason for the donation.'; $l['newpoints_submit'] = 'Submit'; $l['newpoints_donate_subject'] = 'New donation'; $l['newpoints_donate_message'] = 'Hello, I\'ve just sent you a donation of {1}.'; $l['newpoints_donate_message_reason'] = 'Hello, I\'ve just sent you a donation of {1}. Reason:[quote]{2}[/quote]'; $l['newpoints_donations_disabled'] = 'Donations have been disabled by the administrator.'; $l['newpoints_cant_donate_self'] = 'You can\'t send a donation to yourself.'; $l['newpoints_invalid_amount'] = 'You have entered an invalid amount of points.'; $l['newpoints_invalid_user'] = 'You have entered an invalid user name.'; $l['newpoints_donate_log'] = '{1}-{2}-{3}'; $l['newpoints_stats_disabled'] = 'Statistics have been disabled by the administrator.'; $l['newpoints_statistics'] = 'Statistics'; $l['newpoints_richest_users'] = 'Richest Users'; $l['newpoints_last_donations'] = 'Last Donations'; $l['newpoints_from'] = 'From'; $l['newpoints_to'] = 'To'; $l['newpoints_noresults'] = 'No results found.'; $l['newpoints_date'] = 'Date'; $l['newpoints_not_enough_points'] = 'You don\'t have enough points. Required: {1}'; $l['newpoints_task_ran'] = 'Backup Forum Gold task ran'; $l['newpoints_amount_paid'] = 'Amount Paid'; $l['newpoints_source'] = 'Source'; $l['newpoints_home_desc'] = '<ul><li>Forum Gold is WsF\'s unique system for rewarding users for various actions on our forums.</li> <li>You may spend them in the shop, or use them to trade with other users for outside items or services (at your own risk).</li> <li>The various rewards for actions are listed below.</li> <li><span style="color:gold;text-shadow: 0px 0px 8px #bfa333;"><span style="color: gold;background:url( http://widespreadforums.com/images/rc599e.gif );"><b>VIPs</b></span></span> are paid double these rates. For more information on becoming a <span style="color:gold;text-shadow: 0px 0px 8px #bfa333;"><span style="color: gold;background:url( http://widespreadforums.com/images/rc599e.gif );"><b>VIP</b></span></span> click <a href="http://widespreadforums.com/Forum-VIP-Signup"</a><u>HERE</u></a></li> </ul> <!-- Row Highlight Javascript --> <script type="text/javascript"> window.onload=function(){ var tfrow = document.getElementById(\'tfhover\').rows.length; var tbRow=[]; for (var i=1;i<tfrow;i++) { tbRow[i]=document.getElementById(\'tfhover\').rows[i]; tbRow[i].onmouseover = function(){ this.style.backgroundColor = \'#171515\'; }; tbRow[i].onmouseout = function() { this.style.backgroundColor = \'#2f2f2f\'; }; } }; </script> <center><style type="text/css"> table.tftable {font-size:12px;color:#fbfbfb;width:60%;border-width: 1px;border-color: #686767;border-collapse: collapse;} table.tftable th {font-size:12px;background-color:#171515;border-width: 1px;padding: 8px;border-style: solid;border-color: #686767;text-align:left;} table.tftable tr {background-color:#2f2f2f;} table.tftable td {font-size:12px;border-width: 1px;padding: 8px;border-style: solid;border-color: #686767;} </style> <table id="tfhover" class="tftable" border="1"> <tr><th>Action</th><th>Reward</th></tr> <tr><td>You start a new thread</td><td>1.5 Forum Gold</td></tr> <tr><td>Another user posts a reply to a thread you started</td><td>0.1 Forum Gold</td></tr> <tr><td>You post a reply to another users thread</td><td>0.7 Forum Gold</td></tr> <tr><td>Trade goods or services to another WsF user</td><td>Varies</td></tr> <tr><td>Win a WsF official contest or event</td><td>Varies</td></tr> </table></center>'; $l['newpoints_action'] = 'Action'; $l['newpoints_chars'] = 'Chars'; ?>
I'm out. Y'all needa sense of humor. Peace.






Messages In This Thread
Customize the newpoints language file - by Sir - 10-16-2013, 11:21 AM



Users browsing this thread: 1 Guest(s)