![]() |
|
Customize the newpoints language file - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: General (https://sinister.ly/Forum-General) +--- Forum: Announcements (https://sinister.ly/Forum-Announcements) +---- Forum: Suggestions (https://sinister.ly/Forum-Suggestions) +----- Forum: Old Suggestions (https://sinister.ly/Forum-Old-Suggestions) +----- Thread: Customize the newpoints language file (/Thread-Customize-the-newpoints-language-file) |
Customize the newpoints language file - Sir - 10-16-2013 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:![]() 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';
?>RE: Customize the newpoints language file - Oni - 10-16-2013 Maybe. I've made some minor modifications, but we'll see. RE: Customize the newpoints language file - Ryan - 10-16-2013 I like how you get a little amount of points if someone replies to your thread, that would be awesome. RE: Customize the newpoints language file - Sir - 10-16-2013 (10-16-2013, 12:51 PM)Ryan Wrote: I like how you get a little amount of points if someone replies to your thread, that would be awesome. Would definitely inspire people to try and create threads that would get more replies. RE: Customize the newpoints language file - Oni - 10-16-2013 (10-16-2013, 12:51 PM)Ryan Wrote: I like how you get a little amount of points if someone replies to your thread, that would be awesome. I considered doing this, but I am not sure it's a good idea. Could easily be abused. RE: Customize the newpoints language file - Cosmic - 10-16-2013 Hey, this is actually a really good idea. Do et, Oni. RE: Customize the newpoints language file - Ryan - 10-16-2013 (10-16-2013, 12:55 PM)Oni Wrote: I considered doing this, but I am not sure it's a good idea. Could easily be abused. What about this, Only threads with Prefixes (Tutorial, Leak, Etc.) would be run like this? So people wouldn't be spamming the lounge with dumb threads. If you did this I would also suggest adding some more prefixes. RE: Customize the newpoints language file - Sir - 10-16-2013 (10-16-2013, 12:55 PM)Oni Wrote: I considered doing this, but I am not sure it's a good idea. Could easily be abused. Wouldn't the abuse be easily noticed though? (10-16-2013, 12:57 PM)Ryan Wrote: What about this, Only threads with Prefixes (Tutorial, Leak, Etc.) would be run like this? So people wouldn't be spamming the lounge with dumb threads. If you did this I would also suggest adding some more prefixes. Unfortunately that isn't built into the plugin, I don't know if it's even possible to do that without some major modifications. RE: Customize the newpoints language file - Ryan - 10-16-2013 (10-16-2013, 12:58 PM)Sir Wrote: Wouldn't the abuse be easily noticed though? Yes, but people would deny they were abusing it even though it's obvious they were. RE: Customize the newpoints language file - Sir - 10-16-2013 (10-16-2013, 12:59 PM)Ryan Wrote: Yes, but people would deny they were abusing it even though it's obvious they were. That is true, could just say fuck their lies and ban em anyway? Y'know, like a boss... |