Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 01-01-2013, 06:52 PM
webmajstorinet webmajstorinet is offline
 
Join Date: Feb 2012
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Articles in tag archive sort by DESC order?

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
Reply With Quote
  #2  
Old 01-01-2013, 08:04 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try changing the query to ORDER BY dateline ASC in /vb/search/searchcontroller/tag.php
Reply With Quote
  #3  
Old 04-24-2013, 04:53 AM
Bluemax712 Bluemax712 is offline
 
Join Date: Oct 2010
Posts: 186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 04-24-2013, 04:20 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 04-24-2013, 04:46 PM
Bluemax712 Bluemax712 is offline
 
Join Date: Oct 2010
Posts: 186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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
Reply With Quote
  #6  
Old 04-24-2013, 07:08 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 04-24-2013, 09:33 PM
Bluemax712 Bluemax712 is offline
 
Join Date: Oct 2010
Posts: 186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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
Reply With Quote
  #8  
Old 04-24-2013, 11:58 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 04-25-2013, 01:17 AM
Bluemax712 Bluemax712 is offline
 
Join Date: Oct 2010
Posts: 186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks,

Could you expand on "edit the template for the results"?
Reply With Quote
  #10  
Old 04-25-2013, 03:08 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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".
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04400 seconds
  • Memory Usage 2,251KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete