Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 12-10-2013, 04:42 PM
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Location: England
Posts: 447
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Search Syntax for custom search

I'd like to have a link/button that allows one-click access to global (or at least admin-selected) content... similar to how the activity.php works (shows all content from all areas of suite) but I'd like the results in a 'search results' type layout.

My members do not like the activity.php layout.

However, they are accustomed to the 'today's posts' and 'new posts'.

What I'm after is the search result layout after a search for "multiple content types" so blogs & group comments etc. are all included, but in a tidy manner - the activity.php layout is too new for them and too ... detailed, I guess. For whatever reason they don't like it.

So I'd like to add a link to the effect of:

HTML Code:
<a href="search.php?{vb:raw session.sessionurl}do=getnew&contenttype=vBForum_Post&cms&blog_post&etc.">Newest Content</a>
I found the below link but it doesn't seem to cover more than the forum specific content.

http://www.vbulletin.com/forum/forum...-current-forum

Also, it would be beneficial to have it date-sorted in ascending order, so it gives the full impression of being a typical search.

I'm doing this because most of the site is ignored by members because they use the 'newest posts' link and nothing else.. so blogs & cms entries all go entirely unnoticed by the members.
Reply With Quote
  #2  
Old 12-10-2013, 04:52 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not really sure of what you are trying to do. If you would rather have them use the New Posts, then why not change the navtab that says What's New to instead say New Posts and change the URL for it?
Reply With Quote
  #3  
Old 12-10-2013, 05:12 PM
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Location: England
Posts: 447
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I'm not really sure of what you are trying to do. If you would rather have them use the New Posts, then why not change the navtab that says What's New to instead say New Posts and change the URL for it?
It's to the effect of getting the 'whats new' tab (activity.php) results but in the format of a traditional 'seach.php' result page.

A long-winded way is for me to go to advanced search and leave the keyword box empty but select the basics (threads/posts, articles, blogs/comments, visitor messages) , then use 'sort by date - descending' and 'yesterday and newer' as criteria.

It shows all the recently updated bits - in a traditional search results page.

That's the look I'd like to acquire by using some super fangled search.php code (as described poorly above).

It's possibly best explained by viewing the original post on VB.com


http://www.vbulletin.com/forum/forum...10#post4010910
Reply With Quote
  #4  
Old 12-10-2013, 07:30 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this mod, https://vborg.vbsupport.ru/showthread.php?t=302365
Reply With Quote
  #5  
Old 12-10-2013, 11:27 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah yes, I saw that posted on vb.com also and I answered you there.
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 03:15 PM.


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.06844 seconds
  • Memory Usage 2,194KB
  • Queries Executed 11 (?)
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
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete