Fork me on GitHub

Watch

GitHub Core

Show your support for Zikula! Sign up at Github account and watch the Core project!




GitHub Modules

Forum Activity

Forum feed

» Visit forum | » View latest posts

Need help with my topic icons  Bottom

  • OK, here's the deal. I was updating my theme.php when my upload crapped out and the file was incomplete. Sad thing is that I don't have access to a backup of that file. So, I though I'd just get the theme.php from downloading the theme again. They changed it. Now instead of my topic icons being on the right (where I like them) they are on the left. LAME! Any suggestions?
  • What theme?
    There's generally two way of showing the topic icon in the theme (in the themeindex and themearticle functions). The short-hand way which only works with left-aligned icons:

    Code

    ."$preformat[searchtopic]\n"

    you can wrap a SPAN around it and right-align it:

    Code

    ."<span style=\"float: right;\">$preformat[searchtopic]</span>\n"

    or you may find something like this in there:

    Code

    <a href=\"$links[searchtopic]\"><img src=\"images/topics/$info[topicimage]\" border=\"0\" Alt=\"$info[topictext]\" align=\"left\" hspace=\"10\" vspace=\"10\"></a>

    In that case, just change align from left to right.

    I put these two styles in my stylesheet to give me a choice:

    Code

    .TopicImgLeft {
        float: left;
        vertical-align: top;
        margin-left: 0px;
        margin-right: 6px;
        margin-top: 2px;
        margin-bottom: 4px;
    }
    .TopicImgRight {
        float: right;
        vertical-align: top;
        margin-left: 6px;
        margin-right: 0px;
        margin-top: 2px;
        margin-bottom: 4px;
    }
    That includes some tweaking of the margins to align the image and text better.
    And in the theme:

    Code

    ."<span class=\"TopicImgRight\">$preformat[searchtopic]</span>\n"


    Martin :D
  • I just need to know what file I need to modify to get it to work
  • Hmmm i cant find where to edit it in the C-Orange theme.
  • Martin gave you an awesome response.
    When he writes "in the theme" I believe he means theme.php and when he writes "stylesheet" he means style.css.
    I'm not sure I understand your question or that anyone needs to add to that response but another method might be to try the "br clear" type tags. HTMLGoodies, Webmonkey...find directions how to use em' anywhere.

This list is based on users active over the last 60 minutes.