Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

1.1.6 avatar question

Quote Reply
1.1.6 avatar question
How did you prevent all of the current user icons from being displayed in the EDIT USER PROFILE?

I do not want people to be able to choose from icons that are currently being used by other people. On this site, it is not even an option.
Quote Reply
Re: [shiner] 1.1.6 avatar question In reply to
I see the code in user_profile_basic - but I am scared to delete the wrong thing.
Quote Reply
Re: [shiner] 1.1.6 avatar question In reply to
In 1.1.6 you can't use icons other users have uploaded. You get a choice from icons the admin has uploaded, or the choice of keeping your own icon.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] 1.1.6 avatar question In reply to
ok great - how do I delete icons that I had previously uploaded? If I go to ADMIN->USERS->ICONS I get a page full of errors - all 11 icons say this:



icon_filename

(http://www.investingdd.com/cgi-bin/forum/images/Unknown Tag: 'icon_filename')
Quote Reply
Re: [shiner] 1.1.6 avatar question In reply to
The page I am referring to is /admin/templates/admin/user_icons.html

I am looking through the language variables section and do not see the referenced names.


the language variables for the new avatar feature are found under the USER language variables.


What table is being queried here?

<%GForum::Config::tpl_get("image_url")%>

Something is keeping a record of what the admin has uploaded as icons.

Last edited by:

shiner: Jun 16, 2002, 7:26 AM
Quote Reply
Re: [shiner] 1.1.6 avatar question In reply to
Anyone else having difficulty here? I even tried deleting the images from the forum/images directory - but they show up in user's EDIT USER PROPERTIES as FILE NOT FOUND icons...

Where can I delete their record at?
Quote Reply
Re: [shiner] 1.1.6 avatar question In reply to
ok - more progress, but no answers -

<%GForum::Config::tpl_get("image_url")%>

refers to the gforum subdirectory of the admin directory

cgi-bin/forum/admin/gforum

config repesents config.pm -> found in cgi-bin/forum/admin/gforum


tpl_get is a subroutine found in config.pm - This sub is "Useful to bring one or more variables into the templates."









$COMPILE{tpl_get} = __LINE__ . <<'END_OF_SUB';
sub tpl_get {
my (@vars) = @_;
return { map { $_ => $GForum::CFG->{$_} } @vars }
}
END_OF_SUB






This lead me to look for vars - but the coding says that these items are hand coded in admin/gforum/config/data.pm

so there I found this!!!



'user_icons' => {
'AIPN' => 'aipn.jpg',
'Dale Jarret #1' => 'gem2.gif',
'Doc' => 'doc.jpg',
'Jeff Gordon #1' => 'gordon.jpg',
'Lil\' E #1' => 'earnhart.jpg',
'Lil\' E #2' => 'gemini2.jpg',
'Sterling Marlin' => 'marlin.jpg',
'Tony Stewart' => 'stewart.jpg',
'Yankees' => 'NYY.gif',
'Yoda' => 'scarp.jpg',
'md' => 'md.jpg',
'walking man' => 'walking.gif',
'whirl' => 'whirl.jpg'



it should read:

'user_icons' => {},

PROBLEM SOLVED!!! Whewwww!

Last edited by:

shiner: Jun 20, 2002, 5:59 AM
Quote Reply
Re: [shiner] 1.1.6 avatar question In reply to
The problem is obviously that obnoxious Tony Stewart jpg. Delete it and you should have no further problems.

Cool
Quote Reply
Re: [shiner] 1.1.6 avatar question In reply to
One of the GForum libraries was broken, which is why all the broken images appeared. The latest package available for download fixes the problem.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com