1
abdala
Sort Articles By Author
  • 2003/12/5 21:46

  • abdala

  • Just popping in

  • Posts: 42

  • Since: 2003/2/5 1


Is it possible to modifly the wfsections module to enable us to sort articles by author as well? how?

Thanks,
Abdala

2
CBlue
Re: Sort Articles By Author

Sort articles by author where?

3
abdala
Re: Sort Articles By Author
  • 2003/12/6 17:34

  • abdala

  • Just popping in

  • Posts: 42

  • Since: 2003/2/5 1


Articles in a certain category under wfsections module.

Thanks,
Abdala

4
CBlue
Re: Sort Articles By Author

Sorry, I should have been more specific with my question. Sort the articles by author in wfsection admin or on the page that the user sees?

5
abdala
Re: Sort Articles By Author
  • 2003/12/7 21:34

  • abdala

  • Just popping in

  • Posts: 42

  • Since: 2003/2/5 1


The one that the user sees.

Thanks,
Abdala

6
CBlue
Re: Sort Articles By Author

Okay, even more specific...on what page of wfsections (or block) do you want this option to be, for the users to see?

I need to know this so that I can tell you what file you will need to edit and how to edit it.

7
abdala
Re: Sort Articles By Author
  • 2003/12/8 22:36

  • abdala

  • Just popping in

  • Posts: 42

  • Since: 2003/2/5 1


It is the "WF-Section Recent" block and the place where I want to sort the articles by author is under the topic id i.e. .../modules/wfsection/index.php?category=x.

Thanks and I appreciate your help!

Abdala

8
CBlue
Re: Sort Articles By Author

I tried to do this for you by editing files on my wfsection module and I couldn't figure out exactly how to call the authors to show up when you click sort by. I was able to get sort by authors as an option on the page but when you click on the arrows to sort it, it won't bring it up in that order.

Hopefully someone else can figure out what code to use.

It's the index.php file in the wfsection root folder. Here is the first option's code.
echo "
" . _WFS_SORTBY1 . " ";
echo " " . _WFS_TITLE1 . " ()";

To add the author, you have to add it like it is written above but have _WFS_AUTHER1 instead of the title1 and order by (I think) authorA and below that authorD. You have to add define("_WFS_AUTHER1","Author"); into the language/yourlanguage/main.php file.

This gets the new option in the page but when you click on sort by author up/down arrows, it won't sort it by author.

So there must be another step or two that needs to be done in order to get it to work. Maybe it's the name author that needs to be changed to something else or it could be another file that needs to be edited.

9
abdala
Re: Sort Articles By Author
  • 2003/12/11 20:47

  • abdala

  • Just popping in

  • Posts: 42

  • Since: 2003/2/5 1


Thanks for the reply. I haven't had much time to play with the above code lately, but I shall do that and see what happens.

Thanks again,
Abdala

10
CBlue
Re: Sort Articles By Author

You're welcome, Abdala! I don't know if what I found will help you to be able to do what you want though. But it never hurts to try.

Login

Who's Online

305 user(s) are online (206 user(s) are browsing Support Forums)


Members: 0


Guests: 305


more...

Donat-O-Meter

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

Latest GitHub Commits