xoops forums

Anonymous

Posted on: 2013/5/16 14:33
Anonymous
Anonymous (Show more)
Posts: 0
Since:
#1

Troubleshooting heyula's TDMDownloads block

After heavily hacking the inline css I managed to fit heyula's TDM blocks hack in my site. There is only one problem left. It messes up the block below, as can be seen at www.nlxoops.nl.

What can I do to fix this?

Anonymous

Posted on: 2013/5/16 15:45
Anonymous
Anonymous (Show more)
Posts: 0
Since:
#2

Re: Troubleshooting heyula's TDMDownloads block

btw, this is what the code looks like now (tdmdownloads_block_new.html)
<style> .btn-list{margin-bottom:19px} .btn-list li{width:100%;margin-bottom:0px;float:left} .btn-list li a,.btn-list li a:visited{height:48px;background:#fff url(http://www.programgezgini.com/uploads/images/btn-list.png) top repeat-x;display:block;border:solid 1px #e1e1e1} .btn-list li a:hover{color:#fff;text-shadow:0 1px 0 rgba(0,0,0,0.2);background-color:#639ee5;background-position:bottom;border-color:#5587c4} .btn-list li img{width:80px;height:45px;margin-right:8px;float:left;border-right:solid 1px #e1e1e1} .btn-list li a:hover img{border-right-color:#5587c4} .btn-list li strong{font-size:1.2em;font-weight:normal;padding-top:6px;display:block} .btn-list li span{color:#8b8b8b;padding-top:3px;display:inline-block} .btn-list li a:hover span{color:#fff;text-shadow:0 1px 0 rgba(0,0,0,0.2)} .btn-list li {list-style-type: none !important } </style>  <div class="btn-list"> <ul>     <{foreachq item=downloads from=$block}>     <li>                                               <A title="<{$downloads.title}>" href="<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" rel="directory"><IMG width="50" height="30"  src="<{$downloads.logourl}>" alt="<{$downloads.title}>" /><STRONG><{$downloads.title}></STRONG><SPAN> </SPAN></A>                                           <{if $downloads.inforation}>         <div class="itemInfo">             <span class="itemPoster"><{$smarty.const._MB_TDMDOWNLOADS_SUBMITDATE}><{$downloads.date}></span>             <span class="itemPostDate"><{$smarty.const._MB_TDMDOWNLOADS_SUBMITTER}><{$downloads.submitter}></span>              <span class="itemReting"><{$smarty.const._MB_TDMDOWNLOADS_REATING}><{$downloads.rating}></span>              <span class="itemHits"><{$smarty.const._MB_TDMDOWNLOADS_HITS}><{$downloads.hits}></span>          </div>         <{/if}>         <{if $downloads.logourl || $downloads.description}>         <div class="itemBody">             <div class="itemText justify">               <{if $downloads.logourl != ""}><{/if}>              <{if $downloads.description != ""}>                 <{$downloads.description}>                 <span class="itemPermaLink">                     <a title="<{$downloads.title}>" href="<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" rel="directory">--></a>                 </span>              <{/if}>           </div>             <div class="endline"></div>         </div>         <{/if}>     <{/foreach}>     </li>     </ul> </div>

heyula

Theme Designer
Posted on: 2013/5/16 16:42
heyula
heyula (Show more)
Theme Designer
Posts: 478
Since: 2008/4/24
#3

Re: Troubleshooting heyula's TDMDownloads block

ben ne yapmak istedi─čini anlamad─▒m.

zyspec

Module Developer
Posted on: 2013/5/16 16:44
zyspec
zyspec (Show more)
Module Developer
Posts: 1075
Since: 2004/9/21
#4

Re: Troubleshooting heyula's TDMDownloads block

You might try just adding:

<div class='clear'></div>


after your final </div> above so that it doesn't interfere with the next block.

By the way... I don't use this module/hack but should <{if $downloads.inforation}> be <{if $downloads.information}>? Seems like a typo

Anonymous

Posted on: 2013/5/16 17:32
Anonymous
Anonymous (Show more)
Posts: 0
Since:
#5

Re: Troubleshooting heyula's TDMDownloads block

No, it's a typo but it's also not a typo. This typo is also in the original block I'll try your suggestion and will report back!

Anonymous

Posted on: 2013/5/16 17:37
Anonymous
Anonymous (Show more)
Posts: 0
Since:
#6

Re: Troubleshooting heyula's TDMDownloads block

This did the trick zyspec, thank you so much!