vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   My take on how "What's New?" should be done (https://vborg.vbsupport.ru/showthread.php?t=274200)

Mark.B 11-17-2011 06:38 PM

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.

Lairston 11-19-2011 07:26 PM

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.

Juggernaut 11-19-2011 08:04 PM

I like it!

HMBeaty 11-20-2011 03:11 AM

VERY nice!

Boofo 11-20-2011 04:05 AM

Interesting...

Mark.B 11-20-2011 06:16 PM

Quote:

Originally Posted by Lairston (Post 2269678)
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.

HMBeaty 11-20-2011 08:20 PM

Quote:

Originally Posted by Mark.B (Post 2270019)
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.

Mark.B 11-20-2011 08:33 PM

Quote:

Originally Posted by HMBeaty (Post 2270068)
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.

Mooff 11-21-2011 12:48 AM

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.

Mark.B 11-21-2011 06:12 AM

Quote:

Originally Posted by Mooff (Post 2270160)
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. :o


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01215 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete