1
paggps
MyDownloads: simpler and with less links (how to?)
  • 2005/11/17 14:28

  • paggps

  • Just popping in

  • Posts: 10

  • Since: 2005/6/15


Hello community,
I'm using the standard MyDownloads module (Xoops 2.0.13), and I need it to display each file with less links and information. I want to eliminate all the information as follows:

Resized Image

What files should I modify to have this ?
Should I modify a .PHP or a template file ?

Thank you very much.

2
TottoBG
Re: MyDownloads: simpler and with less links (how to?)
  • 2005/11/17 19:20

  • TottoBG

  • Not too shy to talk

  • Posts: 111

  • Since: 2005/8/18


It should all be in the template. Take a look at the url when you see this so wich .php file is actually called and edit in an editor to see wich template it's calling. So after that go to your administration -> System -> Templates and in your template package look for the mydownloads link and getting through it look for the template your were looking for and edit it.

3
paggps
Re: MyDownloads: simpler and with less links (how to?)
  • 2005/11/17 21:41

  • paggps

  • Just popping in

  • Posts: 10

  • Since: 2005/6/15


Thank you very much TottoBG.
The .php file showing that result is:
/modules/mydownloads/index.php

The problem is, that I can't identify within the source of that index.php where is the name of the template used.

At the beginning it has:
include "header.php";
$myts =& MyTextSanitizer::getInstance(); // MyTextSanitizer object
include_once XOOPS_ROOT_PATH."/class/xoopstree.php";
$mytree = new XoopsTree($xoopsDB->prefix("mylinks_cat"),"cid","pid");
$xoopsOption['template_main'] = 'mylinks_index.html';
include XOOPS_ROOT_PATH."/header.php";

Sorry, but I am not skilled in XOOPS code to find the template file. Can you help on this?
Thank you,
Pablo.



Quote:

TottoBG wrote:
It should all be in the template. Take a look at the url when you see this so wich .php file is actually called and edit in an editor to see wich template it's calling. So after that go to your administration -> System -> Templates and in your template package look for the mydownloads link and getting through it look for the template your were looking for and edit it.

4
bb2120
Re: MyDownloads: simpler and with less links (how to?)
  • 2005/11/17 22:04

  • bb2120

  • Not too shy to talk

  • Posts: 179

  • Since: 2005/7/6 1


The templates folder for mydownloads is at www.yoursite.com/modules/mydownloads/templates/

You can edit the layout of listings here. You will need some HTML knowledge and PHP/Smarty understanding in order to edit these files. If you do not have these skils, then just hope that someone will be kind enough to offer you help!

5
Shine
Re: MyDownloads: simpler and with less links (how to?)
  • 2005/11/17 23:13

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


It's not that difficult.
Open templates: mydownloads_link

This template is getting included within the mydownloads_index.html template and the categories.

Search for the parts which calls those parts and uncomment them. That's all.

I.e.:
<{$lang_rating}></b><{$link.rating}> (<{$link.votes}>)
This piece of smarty code refers to.....exactly: rating and vote counts.

For the singlelink view you have to edit the template mydownloads_singlelink.html
The code pieces and html layout are exactly the same as the above mentioned html template.

Hope this helps,
Grtz., Shine

6
paggps
Re: MyDownloads: simpler and with less links (how to?)
  • 2005/11/22 14:19

  • paggps

  • Just popping in

  • Posts: 10

  • Since: 2005/6/15


Thank you very much Shine, but I'm still in troubles:
I could't find the template mydownloads_link; I found mydownloads_index.html, but inside it, I can't find the piece of text you are pointing...
Also, I couldn't find mydownloads_singlelink.html.
Thank you very much for your help.



Quote:

Shine wrote:
It's not that difficult.
Open templates: mydownloads_link

This template is getting included within the mydownloads_index.html template and the categories.

Search for the parts which calls those parts and uncomment them. That's all.

I.e.:
<{$lang_rating}></b><{$link.rating}> (<{$link.votes}>)
This piece of smarty code refers to.....exactly: rating and vote counts.

For the singlelink view you have to edit the template mydownloads_singlelink.html
The code pieces and html layout are exactly the same as the above mentioned html template.

Hope this helps,
Grtz., Shine

7
bb2120
Re: MyDownloads: simpler and with less links (how to?)
  • 2005/11/22 15:09

  • bb2120

  • Not too shy to talk

  • Posts: 179

  • Since: 2005/7/6 1


It's singlefile.html, not singlelink.html

Login

Who's Online

228 user(s) are online (162 user(s) are browsing Support Forums)


Members: 0


Guests: 228


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