Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mdee responded to »Short URL questions« 12:02 AM
- mesteele101 responded to »Problem in Database Connection« 21. May
- mesteele101 created topic »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 20. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
- mazdev responded to »zikula 1.3.3. and IE9« 19. May
- mesteele101 responded to »How to install Zikula for MSSQL ??? - Part II« 19. May
- mesteele101 created topic »File packaging« 16. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Need help with my topic icons
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Sep 17, 2004
- Posts: 15
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? -
**unknown user**
- Rank: Helper
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 676
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:
That includes some tweaking of the margins to align the image and text better.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;
}
And in the theme:
Code
."<span class=\"TopicImgRight\">$preformat[searchtopic]</span>\n"
Martin :D -
**unknown user**
- Rank: Helper
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 569
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.
- Moderated by:
- Support
