vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin.org Site Feedback (https://vborg.vbsupport.ru/forumdisplay.php?f=7)
-   -   Suggestion: User Option On Filtering Of Latest Mods (https://vborg.vbsupport.ru/showthread.php?t=116258)

sabret00the 05-21-2006 12:31 PM

Suggestion: User Option On Filtering Of Latest Mods
 
I'd like to suggest being able to filter out styles/template mods on the latest mods list on the portal.

Chris M 05-21-2006 01:18 PM

So are you suggesting it or just thinking about suggesting it? :p

Chris

Marco van Herwaarden 05-21-2006 01:36 PM

Or different categories, or maybe a filter, sounds like a good idea. Maybe it can be done while we upgrade vb.org

Xenon 05-21-2006 07:17 PM

hmm, that would make a need to rewrite the whole system on that part. as the values are cached right now...

hmm, maybe later :)

sabret00the 05-21-2006 11:39 PM

Quote:

Originally Posted by Xenon
hmm, that would make a need to rewrite the whole system on that part. as the values are cached right now...

hmm, maybe later :)

you can still cache it.

make an array of 20 latest mods, 10 styles, 10 hacks, then serialize that.

then in real time, loop through that array to give you the ten latest results, if you got the filter, you ignore the styles if not then you include them. it's still the same amount of queries as before, just like 10 extra lines of code max. :)

Xenon 05-22-2006 12:38 PM

yes i know ;)

we ahve plans to change the portal at all a bit more, so this should be done then as well :)

sabret00the 05-22-2006 01:30 PM

Quote:

Originally Posted by Xenon
yes i know ;)

we ahve plans to change the portal at all a bit more, so this should be done then as well :)

good news, i thought i was gonna have to whip out the code for you :p

Xenon 05-22-2006 02:46 PM

if that will happen one day, i think i will give up the job as coding team leader and take over the 'i got old team'

Revan 05-22-2006 03:36 PM

Quote:

Originally Posted by sabret00the
you can still cache it.

make an array of 20 latest mods, 10 styles, 10 hacks, then serialize that.

then in real time, loop through that array to give you the ten latest results, if you got the filter, you ignore the styles if not then you include them. it's still the same amount of queries as before, just like 10 extra lines of code max. :)

Or index the array differently, have a deep array with hacks and styles as master array indexers then autonumber within those arrays.
For all the sense that made.
I don't see how it would require more than a rewrite of the line that makes the cache array, as that could check parent forum ID.

*ahem*

sabret00the 05-22-2006 07:53 PM

i was thinking
PHP Code:

$array = array($hackid => array($hackid$hacktitle$hackforumid$hackthreadid));
$newarr '';

foreach (
$array AS $k)
{
  
$check $vbulletin->userinfo['fieldX'];
  if (isset(
$check))
  {
    
$newarr .= ($k[hackforumid] != $check) ? "<li>" . eval(fetch_template('portal_latesthacks')) . "</li>" '';
  }


something like that.


All times are GMT. The time now is 02:13 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.02472 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_php_printable
  • (3)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