Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-17-2011, 06:38 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default My take on how "What's New?" should be done

I thought I'd post this over here rather than my traditional choice of vbulletin.com as (a) this sort of stuff is very much modification and related and (b)...well I won't go into (b) actually.

I usually accompany this sort of thread with screenshots but I have been roundly criticised for this in past, even though my main motivation in doing so was avoiding making it look like I was "spamming" by posting links. But, links it is. Anyway this particular thing really needs to be "seen" in action rather than simple screenshots.

With a little help from several of Andreas's modifications and some painstaking tweaks and hacking of my own, I have come up with what I believe to be very close to how I'd like What's New? to actually work.

LINK

Basically this gives you by default, Forums, Groups and Blogs all in the same view. It then has "Tabs" to allow the individual content types to be separated out.

The downside? It's unclean! The search_resultslist template to do all this is now such a mess that it is liable to cause a diplomatic incident if viewed in public! I'm working on whether some of the code can be done in plugins but, frankly, that will be little better. But, it works, and whilst the whole thing might crash a *really* busy site on a rubbish server, mine seems to cope pretty admirably with it.

Has it made people use blogs and groups more? Frankly, no, not yet, but it's only been in place for a week or so.
Reply With Quote
Благодарность от:
HMBeaty
  #2  
Old 11-19-2011, 07:26 PM
Lairston Lairston is offline
 
Join Date: Feb 2010
Location: Western PA
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like it Mark.

I think this is what the What's New should be.

I tried Andreas What's New reloaded mod but it stopped workiing after a few hours. It keeps saying there's nothing new. Have you had anything like that happen? If so, I'd love a fix of some sort.
Reply With Quote
Благодарность от:
Mark.B
  #3  
Old 11-19-2011, 08:04 PM
Juggernaut Juggernaut is offline
 
Join Date: Dec 2009
Location: California
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like it!
Reply With Quote
Благодарность от:
Mark.B
  #4  
Old 11-20-2011, 03:11 AM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

VERY nice!
Reply With Quote
Благодарность от:
Mark.B
  #5  
Old 11-20-2011, 04:05 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting...
Reply With Quote
Благодарность от:
Mark.B
  #6  
Old 11-20-2011, 06:16 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lairston View Post
I like it Mark.

I think this is what the What's New should be.

I tried Andreas What's New reloaded mod but it stopped workiing after a few hours. It keeps saying there's nothing new. Have you had anything like that happen? If so, I'd love a fix of some sort.
I had that, it's something to do with the "list of content types" it installs in the USERCP.

When you visit the user cp this gets "blanked out", meaning no content types are selected. If you then save it you have a problem.

I think that's the issue - I simply removed that (think you untick a plugin) and it worked ok after that, but I do remember it being an issue.

--------------- Added [DATE]1321816734[/DATE] at [TIME]1321816734[/TIME] ---------------

Wayne Luke mentioned on vbulletin.com that the original plan with What's New? was to have tabs. I think a screenshot even appeared. That was the first I'd heard of it as it had all been in the alpha forums back in 2009 apparently.

Anyway that gave me the idea....I'd never thought of it before. I'd already got the various content types to show, then I thought "why not have tabs"?

In an idea world of course, they'd be Ajax-powered etc etc but that's beyond my rather limited skillset.
Reply With Quote
Благодарность от:
Lairston
  #7  
Old 11-20-2011, 08:20 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mark.B View Post
In an idea world of course, they'd be Ajax-powered etc etc but that's beyond my rather limited skillset.
I was actually going to make that suggestion in this thread, however, it would seem like something that would actually increase the page load time for something like that.
Reply With Quote
  #8  
Old 11-20-2011, 08:33 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HMBeaty View Post
I was actually going to make that suggestion in this thread, however, it would seem like something that would actually increase the page load time for something like that.
I guess it would depend how clever you are (and I'm not very!).

You already have the "All" tab loading by default, so that's your page load right there. The trick would be in using the other tabs to AJAX-load the same search result but with the non-required content types filtered out somehow. Rather than loading four separate searches all at once.

I'm sure it could be done but it's way beyond me. I've never really worked with AJAX.
Reply With Quote
  #9  
Old 11-21-2011, 12:48 AM
Mooff Mooff is offline
 
Join Date: Mar 2010
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since the results are already there i would just generate all arrays at once in the php background. And then create all tabs on the first load via vb:each loops.
Reply With Quote
  #10  
Old 11-21-2011, 06:12 AM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mooff View Post
Since the results are already there i would just generate all arrays at once in the php background. And then create all tabs on the first load via vb:each loops.
Thanks...way beyond my knowledge though that.
Reply With Quote
Reply


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 08:45 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.05082 seconds
  • Memory Usage 2,278KB
  • 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
  • (4)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
  • (6)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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