Re: Code
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Sun, 17 Feb 2008 09:14:48 -0500
FXDWG wrote:
"Jerry Stuckle" <jstucklex@xxxxxxxxxxxxx> wrote in message news:f5ydnW79X93UASranZ2dnUVZ_tjinZ2d@xxxxxxxxxxxxxx> You mean the support forums?FXDWG wrote:> Lets first start out with the small bits. What exactly kind ofJamie,
> 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'] .'"' : ''; }
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
==================
> 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
==================
.
- Follow-Ups:
- Re: Code
- From: FXDWG
- Re: Code
- References:
- Prev by Date: Re: Hello World question
- Next by Date: Re: Code
- Previous by thread: Re: Code
- Next by thread: Re: Code
- Index(es):
Relevant Pages
|