Default Avatar

Styles, Theme, Cosmetic and Appearance related tips, tricks, tweaks, and Graphics

Moderator: STG Styles Team

Forum rules
NOTE: Post full styles only in the Styles Forum

Re: Default Avatar

Postby Barry 441 » 27 Feb 2008, 22:12

Sorry but I'm not sure if I should be posting this question here or under Ika's 'Glacier' style thread but something about this is not jelling.

I just tried setting this on v 1.1.1 of his style and now the topic is off to the left when viewing it instead of being centered.
You can view it here. Layout

Hoping someone with fresh eyes and beter knowlege of the code could tell me why.
Thank you for any assistance you can offer.

This is the original code for sf_glacier/template/viewtopic_body.html
Code: Select all
         <dt>
            <!-- IF postrow.POSTER_AVATAR -->
               <!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br />
            <!-- ENDIF -->
            <!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
         </dt>


and this is my edited code.
Code: Select all
         <dt>
            <!-- IF postrow.POSTER_AVATAR -->
               <!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.png" width="90" height="90" alt="You didn't select an avatar" /><br />
            <!-- ENDIF -->
            <!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
         </dt>
Barry 441    
Cadet II
Cadet II
 
Posts: 21
Joined: 21 Feb 2008, 08:26
Location: Colrain, MA
Favorite Team: Chicago Bears
Gender: Male
phpBB Knowledge: 2


Re: Default Avatar

Postby Stoker » 28 Feb 2008, 01:39

I see the problem.
However it doesn't appear when using firefox.

I don't use this style, but it looks great.

Are You sure that the error is because of this code change?
Try to change it back and see.
Stoker
Stoker    
Borg Drone
Borg Drone
 
Posts: 401
Joined: 24 Nov 2007, 11:05
Location: Denmark
Favorite Team: Highslide JS
Gender: Male
phpBB Knowledge: 4

Re: Default Avatar

Postby Barry 441 » 28 Feb 2008, 06:26

Good morning Stoker,

I didn?t think to try it in Firefox or Safari until after I had given up for the night and was laying in bed with the code dancing through my head.

It tried putting the original file from Glacier and it once again displayed correctly. I even copied over the file from prosilver and it displayed correctly. I still haven't really figured out how the different files interact with each other but perhaps the problem lies in one of the .css files that somehow controls viewtopicbody.html?...
I am teaching myself CSS at the moment so it really is starting to make some sense when I look at the code.

I did have this working correctly earlier in the week when I was using version 1.1.0 of the files.

Ika has posted that he will be documenting the changes to the code for 1.1.1 so perhaps that will shed some light on the issue. It?s odd because it really isn?t a big change in code to display a default avatar.

This is the only actual addition? the insertion of this line:

Code: Select all
<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.png" width="90" height="90" alt="You didn't select an avatar" />
Barry 441    
Cadet II
Cadet II
 
Posts: 21
Joined: 21 Feb 2008, 08:26
Location: Colrain, MA
Favorite Team: Chicago Bears
Gender: Male
phpBB Knowledge: 2

Re: Default Avatar

Postby Stoker » 28 Feb 2008, 06:39

Barry 441 wrote:This is the only actual addition? the insertion of this line:

Code: Select all
<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.png" width="90" height="90" alt="You didn't select an avatar" />


Hello Barry

It has been morning for a while in Denmark :grin:

I really have no clue why Glacier doesn't accept that addition?

But You can try this instead:
Code: Select all
<!-- ELSE --><img src="images/no_avatar.png" width="90" height="90" alt="You didn't select an avatar" />
[/quote]
Then the default avatar should be placed in the root/images folder instead.
Above is not tested.
Stoker
Stoker    
Borg Drone
Borg Drone
 
Posts: 401
Joined: 24 Nov 2007, 11:05
Location: Denmark
Favorite Team: Highslide JS
Gender: Male
phpBB Knowledge: 4

Re: Default Avatar

Postby Barry 441 » 28 Feb 2008, 07:33

:hello:
Still didn't work. I may by pass this issue for now and go back to the original file. There are other issues that I've just realized.
In testing this issue I tried to set my own Avatar and found that it is telling me that I have no galleries. I have placed one .jpg file in the default location for avatars and I'm pretty sure I have all the settings correct in the ACP so... :blink:
Barry 441    
Cadet II
Cadet II
 
Posts: 21
Joined: 21 Feb 2008, 08:26
Location: Colrain, MA
Favorite Team: Chicago Bears
Gender: Male
phpBB Knowledge: 2

Re: Default Avatar

Postby Stoker » 28 Feb 2008, 09:41

Barry 441 wrote::hello:
Still didn't work. I may by pass this issue for now and go back to the original file. There are other issues that I've just realized.
In testing this issue I tried to set my own Avatar and found that it is telling me that I have no galleries. I have placed one .jpg file in the default location for avatars and I'm pretty sure I have all the settings correct in the ACP so... :blink:


Well, I think that You have to look at Your Board.
I have just installed the Glacier light style and did the edits for default avatar.
I have no problems with it at all.
Stoker
Stoker    
Borg Drone
Borg Drone
 
Posts: 401
Joined: 24 Nov 2007, 11:05
Location: Denmark
Favorite Team: Highslide JS
Gender: Male
phpBB Knowledge: 4

Re: Default Avatar

Postby Ika » 28 Feb 2008, 11:04

I think he might have resolved this... Barry could you update here please... there was a lot of info in our conversation on .com this morning. Thanks.
Image
05.08.09 The Black Ice Project
Please use the forums for support requests. Review the Board Rules here.
Ika    
STG Styles Team
STG Styles Team
 
Posts: 1618
Joined: 08 Jul 2007, 09:57
Location: Charlotte, NC USA
Favorite Team: Pittsburgh Steelers
Gender: Male
phpBB Knowledge: 8

Re: Default Avatar

Postby Barry 441 » 28 Feb 2008, 16:08

Not really resolved but it seems to be narrowed down to an IE7 issue. We were thinking that perhaps it was a 'cache' issue but....
I purged and refreshed everrything. I am actually seeing the changes in Firefox and it's not an issue in that browser, so I don't think it is style or site cache.

I tried the change again and checked from another pc here in the house that has not ever been to the site... so there would not be any issues of browser cache.
>
>
Copied the edited viewtopic_body.html
Purged:
ACP >> Styles
--Template
--Theme
--Imageset
Purged site cache:
ACP >> General

Looks fine in Safari
Looks fine in Firefox
IE7 on a PC that has not been to the site before... there is still the same issue.

I'm 2/3 of the way there. :thumbsup:
Barry 441    
Cadet II
Cadet II
 
Posts: 21
Joined: 21 Feb 2008, 08:26
Location: Colrain, MA
Favorite Team: Chicago Bears
Gender: Male
phpBB Knowledge: 2

Re: Default Avatar

Postby Stoker » 28 Feb 2008, 16:42

The menu in the Top also gives an error in IE7
It just doesnt work.

I noticed that You have made some changes in that menu.
Also some css changes has been made.

I suggest You first upload an original overall_header.html and see if that solves the problem.
Then the original css files.
Keep doing this untill You find the problem.

overall_header.html is my best guess.

I have testet glacier on my own site and it works fine in IE7 with the default avatar changes.
Stoker
Stoker    
Borg Drone
Borg Drone
 
Posts: 401
Joined: 24 Nov 2007, 11:05
Location: Denmark
Favorite Team: Highslide JS
Gender: Male
phpBB Knowledge: 4

Re: Default Avatar

Postby Stoker » 28 Feb 2008, 16:51

Stoker wrote:The menu in the Top also gives an error in IE7
It just doesnt work.


This is only when wiewing a topic. It works fine on the index page.
Stoker
Stoker    
Borg Drone
Borg Drone
 
Posts: 401
Joined: 24 Nov 2007, 11:05
Location: Denmark
Favorite Team: Highslide JS
Gender: Male
phpBB Knowledge: 4

PreviousNext

Return to Styles Tweaks, Tips and Graphics

Who is online

Users browsing this forum: No registered users and 3 guests