PDA

View Full Version : Articles in tag archive sort by DESC order?


webmajstorinet
01-01-2013, 06:52 PM
I'd like to have them in a Descending order, not Ascending. How do i accomplish this?

Example of my problem: http://www.webmajstori.net/forum/tags/tutorial

Thank you

Lynne
01-01-2013, 08:04 PM
Try changing the query to ORDER BY dateline ASC in /vb/search/searchcontroller/tag.php

Bluemax712
04-24-2013, 04:53 AM
Thanks Lynne - I was looking for this change to the archive/index.php
ORDER BY dateline " . iif($pda, 'DESC', 'DESC')

Is there also a way to change it - say make a copy as archive/index2.php

where rather than showing each forum separately by default
it will show all posts in a long list DESC @ 30 per page - no matter which forum?

Lynne
04-24-2013, 04:20 PM
If you make a copy and called it index2.php, then you would need to go through all the files that link to that page and change those links also.

Bluemax712
04-24-2013, 04:46 PM
If you make a copy and called it index2.php, then you would need to go through all the files that link to that page and change those links also.

Well I meant to say make a backup copy first :)
because I would assume it will take a lot more changes to make it do what I was looking for
(ie: change it so it shows one long list of all posts by default)

or is there a mod that does this already that you know of?
ie: a mod that creates a page which shows one long list of all posts from all forums
similar to how the archive page looks - after clicking into a forum

Thanks

Lynne
04-24-2013, 07:08 PM
I do not know of a mod like that and would imagine many sites wouldn't use such a mod because of server load issues and that is why no one has bothered to share such a mod.

Bluemax712
04-24-2013, 09:33 PM
I do not know of a mod like that and would imagine many sites wouldn't use such a mod because of server load issues and that is why no one has bothered to share such a mod.

Found this post which is sort of related:

Need Last 3 days posts/Todays Posts code
https://vborg.vbsupport.ru/showthread.php?t=265840

and your response was:
New Posts in the Last 3 days:
search.php?do=getdaily&days=3&contenttype=vBForum_Post

This is really what I was looking for - apologize for wording it so bad originally
I only a need few days worth as opposed to "all posts from the start"

but would like to change it so the output is in a list form - like the archive
as shown here: https://vborg.vbsupport.ru/archive/index.php/f-251.html

Lynne
04-24-2013, 11:58 PM
If you want the search results to look like those in the archive forum, then you would need to edit the template for the results to remove all the information except the linked title.

Bluemax712
04-25-2013, 01:17 AM
Thanks,

Could you expand on "edit the template for the results"?

Lynne
04-25-2013, 03:08 AM
The template will spit out the box that it currently does - topic on left, last post on the right and the author/firstpost date under the top. You would need to remove all the stuff you don't want - everything except "top on left".

Bluemax712
04-25-2013, 03:25 AM
The template will spit out the box that it currently does - topic on left, last post on the right and the author/firstpost date under the top. You would need to remove all the stuff you don't want - everything except "top on left".

cool thanks - now could you expand on "the template"
which one exactly?