Bravo List
Register
Go Back   > Bravo List > P2P > Forum > Community Cafe
Reply
Thread Tools
  #1  
Old 19th August 2010, 14:12
HUnter83 HUnter83 is offline
Senior Member
 
Join Date: Aug 2010
United Kingdom
Posts: 46
Thumbs down Image Error
can someone help my images wont show and iv tried everything i can think of

main pat of staff.php where the code for this is ...

Code:
<?
$act = $_GET["act"];
if (!$act) {
// Get current datetime
$dt = gmtime() - 180;
$dt = sqlesc(get_date_time($dt));
// Search User Database for Moderators and above and display in alphabetical order
$res = mysql_query("SELECT * FROM users WHERE class>=".UC_UPLOADER.
  " AND status='confirmed' ORDER BY username" ) or sqlerr();
while ($arr = mysql_fetch_assoc($res))
{
  $land = mysql_query("SELECT name,flagpic FROM countries WHERE id=$arr[country]") or sqlerr();
  $arr2 = mysql_fetch_assoc($land);
  $staff_table[$arr['class']]=$staff_table[$arr['class']].
"<td class=embedded><a class=altlink href=userdetails.php?id=".$arr['id'].">".
    $arr['username']."</a></td>".

    "<td class=embedded> ".("'".$arr['last_access']."'">$dt?"<img src=".$pic_base_url."button_online.gif border=0 alt=\"online\">":"<img src=".$pic_base_url."button_offline.gif border=0 alt=\"offline\">" )."</td>".
    
    "<td class=embedded><a href=sendmessage.php?receiver=".$arr['id'].">".
    "<img src=".$pic_base_url."button_pm.gif border=0></a></td>".
"<td class=embedded><img src=".$pic_base_url."/flag/$arr2[flagpic] border=0 width=19 height=12></td>\n";
  // Show 3 staff per row, separated by an empty column
  ++ $col[$arr['class']];
  if ($col[$arr['class']]<=2)
    $staff_table[$arr['class']]=$staff_table[$arr['class']]."<td class=embedded>&nbsp;</td>";
  else
  {
    $staff_table[$arr['class']]=$staff_table[$arr['class']]."</tr><tr height=15>";
    $col[$arr['class']]=0;
  }
}
begin_frame("Staff");
?>

<table width=675 cellspacing=0>
<tr>
<tr><td class=embedded colspan=11>All software support questions and those already answered in the FAQ will be ignored.</td></tr>
<!-- Define table column widths -->
<td class=embedded width="35">&nbsp;</td>
<td class=embedded width="15">&nbsp;</td>
<td class=embedded width="25">&nbsp;</td>
<td class=embedded width="85">&nbsp;</td>
<td class=embedded width="45">&nbsp;</td>
<td class=embedded width="35">&nbsp;</td>
<td class=embedded width="35">&nbsp;</td>
<td class=embedded width="85">&nbsp;</td>
<td class=embedded width="15">&nbsp;</td>
<td class=embedded width="35">&nbsp;</td>
<td class=embedded width="45">&nbsp;</td>
</tr>
<tr><td class=embedded colspan=15><b>SysOps</b></td></tr>
<tr><td class=embedded colspan=15><hr color="#4040c0" size=1></td></tr>
<tr height=15>
<?=$staff_table[UC_SYSOP]?>
</tr>
<tr><td class=embedded colspan=15>&nbsp;</td></tr>
<tr><td class=embedded colspan=15><b>Administrators</b></td></tr>
<tr><td class=embedded colspan=15><hr color="#4040c0" size=1></td></tr>
<tr height=15>
<?=$staff_table[UC_ADMINISTRATOR]?>
</tr>
<tr><td class=embedded colspan=15>&nbsp;</td></tr>
<tr><td class=embedded colspan=15><b>Moderators</b></td></tr>
<tr><td class=embedded colspan=15><hr color="#4040c0" size=1></td></tr>
<tr height=15>
<?=$staff_table[UC_MODERATOR]?>
</tr>
<tr><td class=embedded colspan=15>&nbsp;</td></tr>
<tr><td class=embedded colspan=15><b>Uploaders</b></td></tr>
<tr><td class=embedded colspan=15><hr color="#4040c0" size=1></td></tr>
<tr height=15>
<?=$staff_table[UC_UPLOADER]?>
</tr>
</table>

<? end_main_frame(); ?>
<?
if (!$act) {
$dt = gmtime() - 180;
$dt = sqlesc(get_date_time($dt));
// LIST ALL FIRSTLINE SUPPORTERS
// Search User Database for Firstline Support and display in alphabetical order
$res = mysql_query("SELECT * FROM users WHERE support='yes' AND status='confirmed' ORDER BY username LIMIT 10") or sqlerr();
while ($arr = mysql_fetch_assoc($res))
{
 $land = mysql_query("SELECT name,flagpic FROM countries WHERE id=$arr[country]") or sqlerr();
 $arr2 = mysql_fetch_assoc($land);
 $firstline .= "<tr height=15><td class=embedded><a class=altlink href=userdetails.php?id=".$arr['id'].">".$arr['username']."</a></td>
 <td class=embedded> ".("'".$arr['last_access']."'">$dt?"<img src=".$pic_base_url."button_online.gif border=0 alt=\"online\">":"<img src=".$pic_base_url."button_offline.gif border=0 alt=\"offline\">" )."</td>".
 "<td class=embedded><a href=sendmessage.php?receiver=".$arr['id'].">"."<img src=".$pic_base_url."button_pm.gif border=0></a></td>".
 "<td class=embedded><img src=".$pic_base_url."/flag/$arr2[flagpic] border=0 width=19 height=12></td>".
 "<td class=embedded>".$arr['supportfor']."</td></tr>\n";
}
Click the image to open in full size.

and when u rightclick the broken image u get this

location : c:\www so i know sumits wrong because its not picking up the image from the [place it should
Reply With Quote
  #2  
Old 19th August 2010, 14:19
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
is
PHP Code:
$pic_base_url 
defind?
if not or even just try by adding
PHP Code:
$pic_base_url "where image is"
just after <? line 2
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #3  
Old 19th August 2010, 14:31
HUnter83 HUnter83 is offline
Senior Member
 
Join Date: Aug 2010
United Kingdom
Posts: 46
Default
$pic_base_url = "C:\www\xampp\htdocs\pic"; is where my pics are and iv tried both your ways still nothing all my other images work except these

and $pic_base_url is in my bittorrent.php
Reply With Quote
  #4  
Old 19th August 2010, 17:51
KustomizeR KustomizeR is offline
Senior Member
 
Join Date: May 2008
Posts: 26
Default
Right click on an image and select "View image" and see what url it has, then compare it with $pic_base_url :)
Reply With Quote
Reply

Tags
error , image


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

Forum Jump



All times are GMT +2. The time now is 06:48. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.