1
tedsmith
Mylinks Ver 1.1 - How to Remove 'Top Rated' Option
  • 2005/8/10 16:08

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


As the subject suggests, is there any way of removing the 'Top Rated' menu option when the user clicks on the 'MyLinks' link and also is there a way to turn off the ability to rate a link in the first place?

In our case, it may cause political issues if users are able able to rate the links, and then other users to be able to see how they've been rated!

Thanks

Ted

2
jlm69
Re: Mylinks Ver 1.1 - How to Remove 'Top Rated' Option
  • 2005/8/10 17:00

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


First you would need to remove the sub menu in the main menu, go to mylinks/xoops_version.php and either comment out or remove these 2 lines:

$modversion['sub'][3]['name'] = _MI_MYLINKS_SMNAME3;
$modversion['sub'][3]['url'] = "topten.php?rate=1";

Then you would need to go into the mylinks/templates folder and find mylinks_link.html

change


<{$lang_hits}><{$link.hits}>   <{$lang_rating}><{$link.rating}> (<{$link.votes}>)


to this


<{$lang_hits}><{$link.hits}>


then just below that remove this part

<{$lang_ratethissite}> |

you will need to update the module in module administration for changes to be applied.

That should do it.

John

3
tedsmith
Re: Mylinks Ver 1.1 - How to Remove 'Top Rated' Option
  • 2005/8/10 20:50

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Thanks a lot! I will try that tomorrow.

Great

Ted

4
tedsmith
Re: Mylinks Ver 1.1 - How to Remove 'Top Rated' Option
  • 2005/8/11 17:26

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Worked a treat chap. Thanks!!

Login

Who's Online

208 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 208


more...

Donat-O-Meter

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

Latest GitHub Commits