Re: Code



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

"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
==================



.



Relevant Pages

  • Re: Code
    ... mostly we're trying to fix bugs that we stumble across. ... 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. ... I would suggest you ask this on the PHPBB user forums. ...
    (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: Code
    ... Steve wrote: ... 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. ... And don't get too frustrated, working out problems with these portals and forums can be irritating, but the can be worked out. ...
    (alt.php)
  • Re: IE 6 Shutdown automatically
    ... > Does anyone have any suggestions on how to fix this problem. ... > When I try to open this support forums in IE it loads the page then closes, ... Prev by Date: ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • 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)