1
radarx
HELP PLEASE - Linking Module Question
  • 2004/3/23 21:32

  • radarx

  • Just popping in

  • Posts: 19

  • Since: 2004/3/23


I'm a Long Time Lurker that just can't get enough of xoops. Usually I have no trouble finding answers to my question, but I just can't seem to get through this problem.

Two questions - First, in the web links section of my XOOPS site, I need to have them sorted by date by default. I always want the newest links displayed first - ALWAYS. In all catergories all the time. Right now, they're always sorted by title. I also want to completely eliminate the "sort by title" option. I know I probably can't eliminate it completely - if someone where to enter in the correct query string (viewcat.php?cid=3&orderby=titleD) - but i want to eliminate the user option.

Question two - on the main page of links - it lists the newest links - and it lists all the different categories at the top. I want to do two things - First I want to move the catergories listing to the bottom (which I'm sure I can do through the template, but just haven't looked yet), and more importantly, I want to create a block of catergories in the left block. (I'm also sure I can do this with static url "mylinks/viewcat.php?cid=4" placement in a customized block - But it would be far easier to have it done like the category listing on the main link page so I didn't have to manually enter html code into the block everytime I added a catergory.

in addition to that last question, is it possible to list the links by day:

March 22, 2004
--------------

Link 1 box

link 2 box

link 3 box


March 21, 2004
--------------

Link 1 box

link 2 box

link 3 box


whew. any suggestions on how to make my life easier???

If there's a module that's better than the default - please let me know.

One last question that's already been answered I'm sure - but the default module directory structure is "modules/mylinks/viewcat.php?cid=7" where the 'mylinks' in the url is the module. If I simply rename the directory from 'mylinks' to 'monkey' BEFORE installing the module, will the url show as "modules/monkey/viewcat.php?cid=7" - or will renaming the directory cause trouble with the programming of the module???


Thanks again.

2
javier
Re: HELP PLEASE - Linking Module Question
  • 2004/3/23 22:31

  • javier

  • Not too shy to talk

  • Posts: 184

  • Since: 2002/8/6 1


Hi
For display always the newest links first:

inside Mylinks module ,search viewcat.php file.

Viewcat.php
change
$orderby "title ASC";

to
$orderby "date ASC";


-----------------------
For remove the sort by title option, simply modify the template file:

in your admin panel, go to system admin--->templates-->Web Links--->mylinks_viewcat.html

and remove the following:

<{$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>)


Good Luck

3
radarx
Re: HELP PLEASE - Linking Module Question
  • 2004/3/24 0:03

  • radarx

  • Just popping in

  • Posts: 19

  • Since: 2004/3/23


Awesome.

You're my hero.

Login

Who's Online

55 user(s) are online (44 user(s) are browsing Support Forums)


Members: 0


Guests: 55


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