1
benell
Editing Links / Downloads
  • 2003/12/30 17:04

  • benell

  • Just popping in

  • Posts: 63

  • Since: 2003/12/7


In the downloads / links

you have below each link:
download:
Rate this File | Modify | Report Broken File | Tell a Friend | Comments (0)

Link:
Rate this Site | Modify |Report Broken Link | Tell a Friend | Comments (0)

Now Modify is only for admins i presume, so i want to remove everything BUT NOT Report broken link/file and modify

How do i do that?

2
kahumbu
Re: Editing Links / Downloads
  • 2003/12/30 17:33

  • kahumbu

  • Documentation Writer

  • Posts: 277

  • Since: 2003/8/23


The Modify link allows users to 'suggest' modifications in the link, usually the description. The site admin would have to approve the modifications/suggestions.

For changing the contents, go to the template admin (System Admin -> Templates), and change mylinks_link.html. They can be found at the lower part of the template. I guess, the safest way to do it is to comment them out, instead of deleting them.

3
benell
Re: Editing Links / Downloads
  • 2003/12/30 18:33

  • benell

  • Just popping in

  • Posts: 63

  • Since: 2003/12/7


<table class="outer" width='100%' cellspacing='0'>
<tr>
<td class="head" colspan='2' align='left' height="18"><{$lang_category}> <{$link.category}></td>
</tr>
<tr>
<td class="even" width='60%' align='left' valign="bottom"><a href='visit.php?cid=<{$link.cid}>&lid=<{$link.id}>' target='_blank'><img src='images/link.gif' border='0' alt='<{$lang_visit}>'><b><{$link.title}></b></a></td>
<td class="even" align='right' width='40%'><b><{$lang_lastupdate}></b><{$link.updated}></td>
</tr>
<tr>
<td class="odd" colspan='2' align='left'><{$link.adminlink}><b><{$lang_description}></b><br />
<{if $link.logourl != ""}>
<a href="<{$xoops_url}>/modules/mylinks/visit.php?cid=<{$link.cid}>&lid=<{$link.id}>" target="_blank"><img src="<{$xoops_url}>/modules/mylinks/images/shots/<{$link.logourl}>" width="<{$shotwidth}>" alt="" align="right" vspace="3" hspace="7"/></a>
<{/if}>
<div style="text-align: justify"><{$link.description}></div><br /></td>
</tr>
<tr>
<td class="even" colspan='2' align='center'><b><{$lang_hits}></b><{$link.hits}> <b>&nbsp;&nbsp;<{$lang_rating}></b><{$link.rating}> (<{$link.votes}>)</td>
</tr>
<tr>
<td class="foot" colspan='2' align='center'><a href="<{$xoops_url}>/modules/mylinks/ratelink.php?cid=<{$link.cid}>&lid=<{$link.id}>"><{$lang_ratethissite}></a> | <a href="<{$xoops_url}>/modules/mylinks/modlink.php?lid=<{$link.id}>"><{$lang_modify}></a> |<a href="<{$xoops_url}>/modules/mylinks/brokenlink.php?lid=<{$link.id}>"><{$lang_reportbroken}></a> | <a target="_top" href="mailto:?subject=<{$link.mail_subject}>&body=<{$link.mail_body}>"><{$lang_tellafriend}></a> | <a href="<{$xoops_url}>/modules/mylinks/singlelink.php?cid=<{$link.cid}>&lid=<{$link.id}>"><{$lang_comments}> (<{$link.comments}>)</a></td>
</tr>
</table>
<br />


How do i comment them out??
when i use // or /* */i doesnt work??

I only want to keep reportbroken link

4
kahumbu
Re: Editing Links / Downloads
  • 2003/12/30 18:51

  • kahumbu

  • Documentation Writer

  • Posts: 277

  • Since: 2003/8/23


All template files are html files. Use the HTML comments <!-- --> to comment out the parts you do not want.

Just go through each anchor and link in that last td to find what you need.


5
Stewdio
Re: Editing Links / Downloads
  • 2003/12/30 19:32

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


Thats right, you were 'almost' right with your comment code, except that it's for php. kahumbu's suggestion is html comments, what you are looking for.

Just thought I would point out the difference

Cheers

Login

Who's Online

127 user(s) are online (79 user(s) are browsing Support Forums)


Members: 0


Guests: 127


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