Ok so I have the following problem. I installed a shop hack on my forum and it really works great except for one thing: if I open the shop pop up window tow of many links don't work. I have really tried to figure out why but I just can't find the problem. I looked up my databse prefixes, they are allright. I tried many things but I don't know what to do anymore. The hack is older (but it is for the right forum software) so I don't get any support from the creator anymore. The code of the two links that don't work are:
Code:
<tr class="newsbody" >
<td colspan="3" valign="top" align='center' bgcolor=#434765> <a href="index.php?act=shop&store=job">Job
Office</a>
</tr>
<?php
// Begin Special Job
if ($store == 'job')
{
$sql = "SELECT * FROM `ibf_jobs`";
$query4 = mysql_query($sql);
while ( $row4 = mysql_fetch_array($query4)) {
$iname = $row4["name"];
$idesc = $row4["desc"];
$izeny = $row4["zeny"];
$iid = $row4["id"];
$posts = $row4["posts"];
?>
<tr>
<td width="55" height="18" valign="center" class="newsbody">
<center><img src="html/shop/jobs/<?php echo($iname); ?>.gif"><center>
</td>
<td width="427" class="newsbody">
<?php echo($iname); ?><br><?php echo($idesc); ?><br>Required Zeny: <?php echo($izeny); ?><br>
Required Posts: <?php echo $posts; ?>
</td>
<td width="75" valign="center" align="center" class="newsbody">
<a href="javascript:openwin('index.php?act=job&j=<?php echo($iid); ?>',250,100)">Change Job</a>
</td>
</tr>
<?php
}
}
?>
<tr class="newsbody" >
<td colspan="3" valign="top" align='center' bgcolor="#434765"> <a href="index.php?act=shop&store=summon">Summon
Shop</a>
</tr>
<?php
// Begin Summon Shop
if ($store == 'summon')
{
$sql = "SELECT * FROM `ibf_summons`";
$query4 = mysql_query($sql);
while ( $row4 = mysql_fetch_array($query4)) {
$iname = $row4["name"];
$idesc = $row4["desc"];
$izeny = $row4["zeny"];
$iid = $row4["id"];
?>
<tr>
<td width="55" height="18" valign="center" class="newsbody">
<center><img src="html/shop/summons/<?php echo($iname); ?>.gif"><center>
</td>
<td width="427" class="newsbody">
<?php echo($iname); ?><br><?php echo($idesc); ?><br>Required Zeny: <?php echo($izeny); ?><br>
</td>
<td width="75" valign="center" align="center" class="newsbody">
<a href="javascript:openwin('index.php?act=summon&j=<?php echo($iid); ?>',250,100)">Change Summon</a>
</td>
</tr>
the strange thing about it is, that the links above DO work. I give an example of them too.
Code:
<tr class="newsbody">
<td colspan="3" valign="top" align='center'>
<a href='index.php?act=shop&store=<?php echo($cat); ?>&moo=<?php echo($type); ?>'><?php echo($rname); ?></a>
</tr>
<?
if ($ibforums->input['moo'] == $type)
{
// We now begin showing the content of the thread
$sql = "SELECT `id`,`name`,`desc`,`zeny`,`type` FROM `ibf_shop` WHERE 1 AND `type` LIKE '$type' ORDER BY `zeny` ASC";
$query4 = mysql_query($sql);
while ( $row3 = mysql_fetch_array($query4)) {
$iname = $row3["name"];
$idesc = $row3["desc"];
$izeny = $row3["zeny"];
$iid = $row3["id"];
?>
<tr>
<td width="55" height="18" valign="top" class="newsbody">
<?php
if ($izeny > $zeny)
{
?>
<div align="center" onmouseover="popup(556)" onmouseout="popout()">
<font color='#FF0000'><?php echo($izeny); ?></font>
<?php
}
else
{
?>
<div align="center" onmouseover="popup(555)" onmouseout="popout()">
<font color='#0099FF'><?php echo($izeny); ?></font>
<?php
}
?>
</div></td>
<td width="427" valign="top" class="newsbody">
<a href="javascript:void(0);" onmouseover="return overlib('Description: <?php echo($idesc); ?>');" onmouseout="return nd();"><?php echo($iname); ?></a>
</td>
<td width="75" valign="top" class="newsbody"> <div align="center"> <a href="javascript:openwin('index.php?act=buy&item=<?php echo($iid); ?>',250,100)">Buy!</a></div> </td>
</tr>
If you guys could help me that would be so awesome!
Greetings
Bloods
|