Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Login with an Image: CSSLogin with an Image: CSS
Previous
 
Next
New Post
8/27/2008 5:54 PM
 

I am creating an HTML skin and would like to replace the [login] token with a CSS reference and an image.  From reading various posts I edited the Skin.XML file and added a reference to the [Login] token:

<Object>
    <Token>[LOGIN]</Token>
    <Settings>
      <Setting>
        <Name>CSSControl</Name>
        <Value>Loginout</Value>
      </Setting>
    </Settings>
  </Object>

I have the CSS class referenced in a <TD> cell and an image set to its background.  However that is where I am stuck.  How do I define the server control to only be active when the Login image is clicked?

 

 
New Post
8/28/2008 3:45 AM
 

You need to attack it from a different angle.

If you know how to use the language editor, you'll need to go hunting for the entry that puts the actual login text on the page. I'm not sure where it is off the top of my head...probably in Admin/Skins

Once you've found it, test by putting another word in and confirm that the text changes. Then replace the text with a cdata reference to the image file you want displayed in its place. It will look something like this below, but with the angle brackets replace by curved brackets - because the forum will otherwise make this invisible:

(![CDATA[(img src="/Portals/XX/skins/skinname/imagefile.png")]])

You should be able to hack it together from there.

Rob

 
New Post
8/28/2008 12:08 PM
 

Perfect tks!

I changed the skin.xml to reflect an image vs text.

<Token>[LOGIN]</Token>
    <Settings>
      <Setting>
        <Name>Text</Name>
        <Value><![CDATA[<img img border ="0" src="LogOn-Off.png"alt="Login/Logout"> ]]></Value>
      </Setting>
      <Setting>
        <Name>LogOffText</Name>
        <Value><![CDATA[<img img border ="0" src="LogOn-Off.png"alt="Login/Logout"> ]]></Value>
      </Setting>
    </Settings>

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Login with an Image: CSSLogin with an Image: CSS


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out