Re: Code



FXDWG wrote:
"Jerry Stuckle" <jstucklex@xxxxxxxxxxxxx> wrote in message news:f5ydnW79X93UASranZ2dnUVZ_tjinZ2d@xxxxxxxxxxxxxx
FXDWG wrote:
> 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.
if ($row['user_avatar'] && $user->optionget('viewavatars'))
{
$avatar_img = '';
switch ($row['user_avatar_type'])
{
case AVATAR_UPLOAD:
$avatar_img = $config['avatar_path'] . '/';
break;

case AVATAR_GALLERY:
$avatar_img = $config['avatar_gallery_path'] . '/';
break;
}
$avatar_img .= $row['user_avatar'];
$avatar_img = '<img src="' . $avatar_img . '" width="' . $row['user_avatar_width'] . '" height="' . $row['user_avatar_height'] . '" alt="' . $username . '" title="' . $username . '" />';
$user_colour = ($row['user_colour']) ? ' style="color:#' . $row['user_colour'] .'"' : ''; }
Here is the suggested fix for this problem. It doesn't work, we tried it.
if ($row['user_avatar'] && $user->optionget('viewavatars'))
{
$avatar_img = '';
/*
switch ($row['user_avatar_type'])
{
case AVATAR_UPLOAD:
$avatar_img = $config['avatar_path'] . '/';
break;

case AVATAR_GALLERY:
$avatar_img = $config['avatar_gallery_path'] . '/';
break;
}
*/
$avatar_img .= $row['user_avatar'];
$avatar_img = '<img src="./download.php?avatar=' . $avatar_img . '" width="' . $row['user_avatar_width'] . '" height="' . $row['user_avatar_height'] . '" alt="' . $username . '" title="' . $username . '" />';
$user_colour = ($row['user_colour']) ? ' style="color:#' . $row['user_colour'] .'"' : ''; }
Jamie,

This is PHPBB, right?

I would suggest you ask this on the PHPBB user forums. Had you done so, you would have had an answer by now.

The people there are familiar with the code, and should be able to tell you almost immediately why it isn't working.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================




> You mean the support forums?
> We HAVE been there. And this problem is discussed.
> Everyone says they can fix it, but none of the suggested fixes works.
> I think we just haven't stumbled across the correct fix yet.
> But we will. I'm sure.
>
> PHPBB boasts that it is one of the easiest to use pieces of software.
> Maybe for users it is, but for anyone trying to make it work, it's a
> nightmare unless you are like you folks and know PHP code backwards &
> forwards.
>
> Jamie
>

(Top posting fixed)

So you expect people who have know knowledge of the product to be able to do better than those who are much more knowledgeable about it?

I have always find PHPBB to be easy to install and administer. Additionally, I have always gotten great support from their forums when I have had a problem. The same is true of other webmasters I've talked with about it.

I don't think your problem is with the product or the people trying to support it.

And please don't top post.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================

.



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)
  • Windows Update error 0x800A01AD
    ... forum and now working through the suggested fixes I've found in the posts. ... So far I've re-enabled Automatic Updates and BITS and checked the permissions ... I reregistered them because it was suggested as a fix for the first problem I ... I've checked the Windows Update log and no error messages there, ...
    (microsoft.public.windowsupdate)
  • Re: Font and Icons
    ... Do you have any advice on how to fix it? ... Its not in safe mode. ... Have you not read the previous posts in this thread in that archaic web ... If you had then you would have seen the suggested fixes for this problem. ...
    (microsoft.public.windowsxp.newusers)
  • Re: oncheck -cI
    ... After trying a few suggested fixes from IBM support they have come up ... Have IBM Down Systems Dept. connect to our server and fix the ... We are evaluating which one option to choose as our next step. ...
    (comp.databases.informix)