21
m0nty
Re: Change the displayed layout of the Download Module
  • 2004/7/8 14:56

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


in the templates section, select the template set.. there's no need to upload a new template..

clone the default set 1st..

then goto admin preferences and set the cloned template set as default.. then you can edit the templates.. without cloning, XOOPS won't let u edit templates..

once done select the wfdownloads template from that list on the templates page and click list

then you'll see all the template html files for that module..

22
tedsmith
Re: Change the displayed layout of the Download Module
  • 2004/7/8 15:05

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Cool Monty - cheers for that. I've managed to do all that now, so that's cool.

Problem is, I assume you have to understand html well enough to change all the layout? There no WYSIWYG type view is there, or is that something else I'm messing up!? I always owrry that if I change the code it will mess something else up! Still I can always take a copy first and just have a go. No change of you sending me a copy of your wfdwonloads_viewcat.html file is there to tedsmith28@yahoo.co.uk?

23
m0nty
Re: Change the displayed layout of the Download Module
  • 2004/7/8 15:39

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


nah there isn't a wysiwyg editor, so yeah a little html knowledge is needed..

i could send u mine.. but i've done mine so that it uses CSS classes.. so it wouldn't be much good to you without those classes in your style.css file..

but here it is anyway:

wfdownloads_viewcat.html

<{if $catarray.imageheader != ""}>
<br /><div align = 'center'><{$catarray.imageheader}></div><br />
<{/if}>

<div class="wfdheader" align = 'left'><{$description}></div><br />

<div align = 'center' class = 'itemPermaLink'><{$catarray.letters}></div>
<div class="wfdtoolbar" align = 'center'><{$catarray.toolbar}></div><br />

<div align= "center" style="margin-left: 5px; padding: 0px;">
<table width="80%" align = "center">
<tr>
<{foreach item=subcat from=$subcategories}>
<td align="left"><a href="viewcat.php?cid=<{$subcat.id}>"><{$subcat.title}></a>&nbsp;(<{$subcat.totallinks}>)<br />
<{if $subcat.infercategories}>
&nbsp;&nbsp;<{$subcat.infercategories}>
<{/if}>
</td>
<{if $subcat.count is div by 2}>
</tr><tr>
<{/if}>
<{/foreach}>
</tr>
</table>
</div>
<br />
<div class="wfdheader"><{$category_path}></div>
<br />
<{if $show_links == true}>
<div class="wfdsortlist" align="center"><small><b>
<{$lang_sortby}></b>&nbsp;<{$lang_title}> (
<a href="viewcat.php?cid=<{$category_id}>&orderby=titleA">
<img src="images/up.gif" border="0" align="middle" alt="" /></a>
<a href="viewcat.php?cid=<{$category_id}>&orderby=titleD">
<img src="images/down.gif" border="0" align="middle" alt="" /></a>
)
&nbsp;
<{$lang_date}> (
<a href="viewcat.php?cid=<{$category_id}>&orderby=dateA">
<img src="images/up.gif" border="0" align="middle" alt="" /></a>
<a href="viewcat.php?cid=<{$category_id}>&orderby=dateD">
<img src="images/down.gif" border="0" align="middle" alt="" /></a>
)
&nbsp;
<{$lang_rating}> (
<a href="viewcat.php?cid=<{$category_id}>&orderby=ratingA">
<img src="images/up.gif" border="0" align="middle" alt="" /></a>
<a href="viewcat.php?cid=<{$category_id}>&orderby=ratingD">
<img src="images/down.gif" border="0" align="middle" alt="" /></a>
)
&nbsp;
<{$lang_popularity}> (
<a href="viewcat.php?cid=<{$category_id}>&orderby=hitsA">
<img src="images/up.gif" border="0" align="middle" alt="" />
</a><a href="viewcat.php?cid=<{$category_id}>&orderby=hitsD">
<img src="images/down.gif" border="0" align="middle" alt="" /></a>
)
<br />
<b><{$lang_cursortedby}></b>
</small></div>
<br />
<{/if}>

<{if $page_nav == true}>
<div align="left"><{$lang_page_nav}>: <{$pagenav}></div><br />
<{/if}>

<table width="100%" cellspacing="0" cellpadding="10" border="0">
<tr>
<td width="100%" align="center">
<!-- Start link loop -->
<{section name=i loop=$file}>
<{include file="db:wfdownloads_download.html" down=$file[i]}>
<{/section}>
<!-- End link loop -->
</td></tr>
</table>

<{if $page_nav == true}>
<div class="wfdtoolbar" align="right"><{$lang_page_nav}>: <{$pagenav}></div>
<{/if}>

<{include file="db:system_notification_select.html"}> </div>

you'll need to edit the classes tho.

here's the classes for style.css

.wfdheader
{
font-size: 11px;
background-image: url(til_menu_top.gif);
height: 20px;
vertical-align: middle;
line-height: 20px;
font-weight: bold;
padding: 0px;
border-top: 0px solid #33ff99;
border-left: 0px solid #000000;
border-right: 0px solid #000000;
border-bottom: 0px solid #33ff99;
}
.wfdtoolbar
{
font-size: 11px;
background-color: #222222;
height: 20px;
vertical-align: middle;
line-height: 20px;
font-weight: bold;
padding: 0px;
border-top: 0px solid #33ff99;
border-left: 0px solid #000000;
border-right: 0px solid #000000;
border-bottom: 0px solid #33ff99;
}
.wfdsortlist
{
font-size: 11px;
background-color: #333333;
height: 20px;
vertical-align: middle;
line-height: 20px;
padding: 0px;
border-top: 0px solid #33ff99;
border-left: 0px solid #000000;
border-right: 0px solid #000000;
border-bottom: 0px solid #33ff99;
}

u will need to edit this : background-image: url(til_menu_top.gif);

as u won't have that image.. maybe best to change it to background-color: #cccccc; (or whatever colour u use)

24
tedsmith
Re: Change the displayed layout of the Download Module
  • 2004/7/8 17:32

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


That's it now - I'm thru! Fed up - giving up!

Thanks anyway fella - I cloned the default theme, then told XOOPS to use the clone template in the preferences. Then I copied the code you stated into my wfdownloads_viewcat.html file overwriting what was there origially, and saved it. I then copied the css data to my style.css file for my theme (currently alightFC), went to the site. No change. Refreshed it. No change. Just looks exactly the same!!

I'm so fed up I could cry. All I want is one bloody module to act as a download facility with text that flows neatly and normally instead of some wrapped up mess!!

Thanks anyway mate - you're a gent for spending all this time with me.

25
Bender
Re: Change the displayed layout of the Download Module
  • 2004/7/8 17:49

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


DonĀ“t Panic. I know its annoying but ...

Did you activate Update module template .html files from themes/your theme/templates directory? in preferences?

Tried to clean out templates_c directory manually?

26
tedsmith
Re: Change the displayed layout of the Download Module
  • 2004/7/8 18:11

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


I think I've got it working kind of, once I did what you all said, - thanks!

Yes it seems to work more or less on my own personnal site. I already had the 'update template' feature turned on, but had not cleared the templates_c folder. Now I just need to make sure it works on the one at work, otherwise I won't be popular!! I will say that the results don't always seem to be the same though. Sometimes things are displayed differently? I'll try it at work and if no go I'll wait till Monday when hopefully the finished version will be done.

Thank you both of you (and everyone else) so very much for your help!!

Login

Who's Online

134 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 134


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits