Icon stuff

Discuss news styles, css code, and other Coranto customizations in here...the possibilities are endless, so have at it!

Moderator: Spunkmeyer

Icon stuff

Postby Pirate Elf » Mon Oct 28, 2002 2:05 pm

Recently I added a new style to my site, so that my posters could add their own icon since some of them don't know html I added that Select Pic thing that doesn't work. My question is thus:

1: is there a version of select pic(that shows the img) that will produce a <img src="whateverselected"> instead of http://whateverselected

2: This is the part for this forum: Is there a way to make it so if they have their icon already set under their user info to make coranto ask if they have that set, and if not use what they selected?

I think it would be an easy if command or something, but i am just learning cgi and using coranto as my learning tool. The current style looks something like

<Field: UserField_Icon><Field: CustomField_Icon> -<Field: User>

but what I want it to do is check and see if there is an icon or not, if not then use the customfield icon, but if there is then simply use user field icon.

So anythoughts?
Pirate Elf
 
Posts: 732
Joined: Wed Jan 31, 2007 9:45 pm

Re: Icon stuff

Postby l0rdphi1 » Mon Oct 28, 2002 2:18 pm

Pirate Elf wrote:1: is there a version of select pic(that shows the img) that will produce a <img src="whateverselected"> instead of http://whateverselected

That's an option on Select Pic's config page.
User avatar
l0rdphi1
 
Posts: 3590
Joined: Sat Mar 09, 2002 10:03 pm
Location: Pennsylvania, United States of America

Uhh...

Postby Pirate Elf » Mon Oct 28, 2002 2:33 pm

My Select Pic thing has settings under main settings and all you get is:
SelectIcon

Icons Path:
The path to the directory that contains the icons. No trailing slash.

Icons URL:
The URL to the directory containing the icons. No trailing slash.

Icon Types:
Permitted file extensions to be listed. Seperate each entry with a space. To include all file extensions enter a *.
Stuff like that. No selection of whether I can use img src tags. No the select img thing you updated allows that but I get mad javascript errors since I updated to multipart.

But besides all that I think I figured out something that would work, but I still need help

style:
<If: Field: UserField_Icon>
<Field: UserField_Icon>
<If: Else>
<Field: CustomField_Icon>
</If>
<If: Field: CustomField_Icon>
<img src="<Field: CustomField_Icon>">
<If: Else>
</If> -<Field: User>
Now that works BUT it will show the userfield icon always. So if a person on my site is stupid and selects that. it will show two icons. I want it to only show whichever icon is filled in. IE if they have not filled out a user icon due to stupidity of not knowing basic commands. Then I want them to use the little pulldown menu, select url (because of above problems) and it will use that icon intead
Pirate Elf
 
Posts: 732
Joined: Wed Jan 31, 2007 9:45 pm


Return to Customization

Who is online

Users browsing this forum: No registered users and 1 guest

cron