Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 03-08-2005, 01:15 PM php forum bug
Novice Talker

Posts: 9
Trades: 0
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
Bloods is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to php forum bug
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10637 seconds with 12 queries