Spidean Forums


 < Last Thread   Next Thread >Ascending sortDescending sorting  New Topic  Post Reply
Author: Subject: Set Class Attribute of Topic Images

Junior Member





Posts: 36
Registered: 8/28/2004
Status: Offline

  posted on 12/28/2006 at 09:53 PM
Hello,

I was wondering where or how to set the class attribute for topic images?

I wanted to set up the image reflection script o­n the topic images and to make it work you need to set the class attribute to class="reflect". Currently my AutoTheme just uses the call for the topic image. How do I set the class attribute for this image to make the reflections script work?

Reflection.js script­: http://cow.neondragon.net/stuff/reflection/


 
Reply With Quote Visit User's Homepage

Administrator




Posts: 4549
Registered: 10/7/2002
Status: Online

  posted on 12/28/2006 at 10:41 PM
1. You can try wrapping it in a DIV with that class but I don't know about your application.
2. You can edit the topic-image command in modules/AutoTheme/includes/postnuke/atCommands.php
3. You can look at the command in #2 and use the code to define a Custom Command and add the class attribute.
4. You can build the image tag in the template using other news commands from the User Guide instead of using the topic-image command, for example:

<a href="{news:url:searchtopic}"> <img src="{news:text:topicimage}" class="reflect" /> </a>


-Shawn

 
Reply With Quote
New Topic    Post Reply


Main Menu

Get AutoTheme

New Template

Featured Item

Poll

How do you like the new look?

[ Results | Polls ]

Votes: 30
Comments: 0

Powered by the AutoTheme HTML Theme System
Page created in 0.106995 Seconds