Jump to content
  • 0

FluxCP not showing itesm list


Kido

Question


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

Hello, i was editing my FluxCP the item list to traduce it to spanish, but when i finished it did not loaded anymore, i thinked that i may made a mistake that made the item list to no show, so i just replaced the index-php with a safe copy but it stills does not load, anyone may know what happened ):?

 

 

here is the path:

public_html/themes/mytheme/item/index.php

and here is my index.php script, this one should be the working one:

<?php if (!defined('FLUX_ROOT')) exit; ?>

<h2>Items</h2>

<p class="toggler"><a href="javascript:toggleSearchForm()">Search...</a></p>

<form class="search-form" method="get">

	<?php echo $this->moduleActionFormInputs($params->get('module')) ?>

	<p>

		<label for="item_id">Item ID:</label>

		<input type="text" name="item_id" id="item_id" value="<?php echo htmlspecialchars($params->get('item_id')) ?>" />

		...

		<label for="name">Name:</label>

		<input type="text" name="name" id="name" value="<?php echo htmlspecialchars($params->get('name')) ?>" />

		...

		<label for="type">Type:</label>

		<select name="type">

			<option value="-1"<?php if (($type=$params->get('type')) === '-1') echo ' selected="selected"' ?>>

				Any

			</option>

			<?php foreach (Flux::config('ItemTypes')->toArray() as $typeId => $typeName): ?>

				<option value="<?php echo $typeId ?>"<?php if (($type=$params->get('type')) === strval($typeId)) echo ' selected="selected"' ?>>

					<?php echo htmlspecialchars($typeName) ?>

				</option>

				<?php $itemTypes2 = Flux::config('ItemTypes2')->toArray() ?>

				<?php if (array_key_exists($typeId, $itemTypes2)): ?>

					<?php foreach ($itemTypes2[$typeId] as $typeId2 => $typeName2): ?>

					<option value="<?php echo $typeId ?>-<?php echo $typeId2 ?>"<?php if (($type=$params->get('type')) === ($typeId . '-' . $typeId2)) echo ' selected="selected"' ?>>

						<?php echo htmlspecialchars($typeName . ' - ' . $typeName2) ?>

					</option>

					<?php endforeach ?>

				<?php endif ?>

			<?php endforeach ?>

		</select>

		...

		<label for="equip_loc">Equip Locations:</label>

		<select name="equip_loc">

			<option value="-1"<?php if (($equip_loc=$params->get('equip_loc')) === '-1') echo ' selected="selected"' ?>>

				Any

			</option>

			<?php foreach (Flux::config('EquipLocationCombinations')->toArray() as $locId => $locName): ?>

				<option value="<?php echo $locId ?>"<?php if (($equip_loc=$params->get('equip_loc')) === strval($locId)) echo 

and this is the one with error:

<?php if (!defined('FLUX_ROOT')) exit; ?>

<h2>Objetos</h2>

<p class="toggler"><a href="javascript:toggleSearchForm()">Buscar...</a></p>

<form class="search-form" method="get">

	<?php echo $this->moduleActionFormInputs($params->get('module')) ?>

	<p>

		<label for="item_id">ID del objeto:</label>

		<input type="text" name="item_id" id="item_id" value="<?php echo htmlspecialchars($params->get('item_id')) ?>" />

		...

		<label for="name">Nombre:</label>

		<input type="text" name="name" id="name" value="<?php echo htmlspecialchars($params->get('name')) ?>" />

		...

		<label for="type">Tipo:</label>

		<select name="type">

			<option value="-1"<?php if (($type=$params->get('type')) === '-1') echo ' selected="selected"' ?>>

				Cualquiera

			</option>

			<?php foreach (Flux::config('ItemTypes')->toArray() as $typeId => $typeName): ?>

				<option value="<?php echo $typeId ?>"<?php if (($type=$params->get('type')) === strval($typeId)) echo ' selected="selected"' ?>>

					<?php echo htmlspecialchars($typeName) ?>

				</option>

				<?php $itemTypes2 = Flux::config('ItemTypes2')->toArray() ?>

				<?php if (array_key_exists($typeId, $itemTypes2)): ?>

					<?php foreach ($itemTypes2[$typeId] as $typeId2 => $typeName2): ?>

					<option value="<?php echo $typeId ?>-<?php echo $typeId2 ?>"<?php if (($type=$params->get('type')) === ($typeId . '-' . $typeId2)) echo ' selected="selected"' ?>>

						<?php echo htmlspecialchars($typeName . ' - ' . $typeName2) ?>

					</option>

					<?php endforeach ?>

				<?php endif ?>

			<?php endforeach ?>

		</select>

		...

		<label for="equip_loc">Se equipa en:</label>

		<select name="equip_loc">

			<option value="-1"<?php if (($equip_loc=$params->get('equip_loc')) === '-1') echo ' selected="selected"' ?>>

				Any

			</option>

			<?php foreach (Flux::config('EquipLocationCombinations')->toArray() as $locId => $locName): ?>

				<option value="<?php echo $locId ?>"<?php if (($equip_loc=$params->get('equip_loc')) === strval($locId)) echo 

thanks i hope you guys can  help me with this ):

 

Edit:

it even does not edit the button at the right ):

>>>

 

Second Edit:

I solved it, i had to delete the whole "item" folder from public_html/themes/mytheme/item

and replace it with the backup one

now finally it works (:

thank you all!

Edited by Kido
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

All you need to do is create a Spanish language file o.o

 

where to do that D:? 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

wa i got this error now ):

 

Parse error: syntax error, unexpected '' => '' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /home/tairyuro/public_html/lang/en_us.php on line 349

 

Edit:

solved, just missing a ' on the start of the line 349

Edited by Kido
Link to comment
Share on other sites

×
×
  • Create New...