Re: Code



Steve wrote:
"FXDWG" <FXDWG2002@xxxxxxxxxxx> wrote in message news:scntj.2899$0%3.322@xxxxxxxxxxx
Lets first start out with the small bits. What exactly kind of
improvements would you like to make? Once we know what direction you
want to go, we can help you get there. Hopefully.

Scotty

Well, mostly we're trying to fix bugs that we stumble across.
So with that in mind, let me present one.

We are running a portal on our site.
On that portal we're supposed to be able to see an avatar.
A number of other people have commented in support forums that the error lies with in a certain file.
We have looked at this file and even attempted to institute the suggested fixes. But none of them work.
Now I AM confident the error is in the file suggested. But I am dubious of the suggested fixes.
Anyone want to look at the code and suggest a solution?
Here is the section of code that we believe to be in error.

==============

put this just before the 'if':

echo '<pre style="font-size:10px;">' . print_r(array($row, $user), true) . '</pre>';

then post the results...we're trying to see the variable values inside the user object and the $row array at the time of evaluation in the 'if'...i'm guessing the values aren't what you're expecting and the conditional code is not being run.


Sound advice because the code outputs proper image src html.

Now is the download.php file on your web server?
If it is, where is it located?
Is it located in the same folder as the files calling it?

I am asking to make sure the line:

../download.php

in

$avatar_img = '<img src="./download.php?avatar=' . $avatar_img . '" width="' . $row['user_avatar_width'] . '" height="' . $row['user_avatar_height'] . '" alt="' . $username . '" title="' . $username . '" />';

is actually pointing to download.php

And don't get too frustrated, working out problems with these portals and forums can be irritating, but the can be worked out.
And in the process you end up learning quite a bit.

Good luck
Scotty

.



Relevant Pages

  • Re: Code
    ... Everyone says they can fix it, but none of the suggested fixes works. ... PHPBB boasts that it is one of the easiest to use pieces of software. ... A number of other people have commented in support forums that the error ...
    (alt.php)
  • Re: Code
    ... On that portal we're supposed to be able to see an avatar. ... A number of other people have commented in support forums that the error ... lies with in a certain file. ... the suggested fixes. ...
    (alt.php)