Jump to content
  • 0

Hide column in view Mob Database


ahhak1989

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  12/12/12
  • Last Seen:  

As title, my table in view Monster Database is

Name Level State Rate Cast Time Delay Cancelable Target Condition Value

I want to hide the column "Condition & Value"

I go to remove the following :

 'condition'   => $row[10],
 'value'	   => $row[11],
 'val1'	    => $row[12],
 'val2'	    => $row[13],
 'val3'	    => $row[14],
 'val4'	    => $row[15],
 'val5'	    => $row[16],
 'emotion'	 => $row[17],
 'chat'	    => $row[18]

in modules/monster/view.php but error come out...

Anyone know how to do it?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

you should edit the HTML / PHP part...i mean inside your themes folder ....not the modules folder...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Edit /fluxcp-1.0/themes/default/monster/view.php and remove these lines indicated:

Index: themes/default/monster/view.php
===================================================================
--- themes/default/monster/view.php	(revision 1125)
+++ themes/default/monster/view.php	(working copy)
@@ -200,8 +200,6 @@
		<th>Delay</th>
		<th>Cancelable</th>
		<th>Target</th>
-		<th>Condition</th>
-		<th>Value</th>
	</tr>	
	<?php foreach ($mobSkills as $skill): ?>
	<tr>
@@ -213,14 +211,6 @@
		<td><?php echo $skill['delay'] ?>s</td>
		<td><?php echo htmlspecialchars(ucfirst($skill['cancelable'])) ?></td>
		<td><?php echo htmlspecialchars(ucfirst($skill['target'])) ?></td>
-		<td><em><?php echo htmlspecialchars($skill['condition']) ?></em></td>
-		<td>
-			<?php if (!is_null($skill['value']) && trim($skill['value']) !== ''): ?>
-				<?php echo htmlspecialchars($skill['value']) ?>
-			<?php else: ?>
-				<span class="not-applicable">None</span>
-			<?php endif ?>
-		</td>
	</tr>
	<?php endforeach ?>
</table>

Link to comment
Share on other sites

×
×
  • Create New...