Skip to content

Commit

Permalink
1.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMacLab committed Jun 13, 2014
1 parent 23f1d05 commit 894848b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 14 deletions.
2 changes: 1 addition & 1 deletion game-on.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Description: Adds support for a point system and currency for your users.
Authors: Semar Yousif, Vincent Astolfi, Ezio Ballarin, Forest Hoffman, Austin Vuong, Spencer Nussbaum, Isaac Canada
Author URI: http://maclab.guhsd.net/
Version: 1.7.2
Version: 1.7.3
*/
include('go_datatable.php');
include('types/types.php');
Expand Down
2 changes: 1 addition & 1 deletion go_clipboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function go_clipboard_menu() {
<th class="header" style="width:6%;"><a href="#" >ID</a></th>
<th class="header" style="width:6%;"><a href="#" ><?php echo go_return_options('go_class_b_name'); ?></a></th>
<th class="header" style="width:10%;"><a href="#" >Name</a></th>
<th class="header" style="width:10%;""><a href="#" >Gamertag</a></th>
<th class="header" style="width:10%;"><a href="#" >Gamertag</a></th>
<th class="header" style="width:8%;"><a href="#" >Rank</a></th>
<th class="header" style="width:8%;"><a href="#" ><?php echo go_return_options('go_focus_name'); ?></a></th>
<th class="header" style="width:6%;"><a href="#" ><?php echo go_return_options('go_currency_name'); ?></a></th>
Expand Down
34 changes: 22 additions & 12 deletions go_comments.php
Original file line number Diff line number Diff line change
@@ -1,28 +1,38 @@
<?php

function go_display_comment_author(){
function go_display_comment_author() {
global $comment;
$user_id = $comment->user_id;
$author = $comment->comment_author;
if($user_id == 0){
if ($user_id == 0) {
return $author;
} else{
} else {
$points = get_user_meta($user_id, 'go_rank', true);
$focus = get_user_meta($user_id, 'go_focus', true);
if($focus){
if(is_array($focus)){
foreach($focus as $val){

if (!empty($focus)) {
if (is_array($focus)) {
foreach ($focus as $val) {
$careers .= $val.'/';
}
$careers = substr($careers, 0, strlen($careers)-1);
}else{
$careers = substr($careers, 0, (strlen($careers) - 1));
} else {
$careers = $focus;
}
}
if($careers){
return $author.'<br/>'.'('.$careers.', '.$points[0][0].')';
}else{
return $author.'<br/>'.'('.$points[0][0].')';

if (!empty($careers)) {
if (!empty($points)) {
return $author.'<br/>'.'('.$careers.', '.$points[0][0].')';
} else {
return $author;
}
} else {
if (!empty($points)) {
return $author.'<br/>'.'('.$points[0][0].')';
} else {
return $author;
}
}
}
}
Expand Down

0 comments on commit 894848b

Please sign in to comment.