vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Looking for an SQL query (https://vborg.vbsupport.ru/showthread.php?t=66255)

Polo 06-17-2004 05:56 PM

Looking for an SQL query
 
What would be the sql query needed to be exectuted in phpmyadmin to make all the forums show the posts since the begining...

every time i click on a forum there is a message that says "There have been no posts in the last 30 days in this forum" what would be the query so that all the forums will show the posts since the begining...

is this even possible?

thanks in advance...

CarCdr 06-17-2004 06:29 PM

If you are looking to change this behaviour in vBulletin, there are three applicable settings:

Administrative:
Change the default thread cutoff for a forum via the Admin Control Panel :: Forums & Moderators :: Forum Manager :: Some Forum :: Default View Age.
User option:
A user can set their own "Default Thread Age Cut Off" in the User Control Panel.
One-time display:
When viewing a forum listing (i.e., the thread titles), you can change the default date cutoff, toward the bottom of the page under "Display Options".

NTLDR 06-17-2004 08:24 PM

[sql]UPDATE forum
SET daysprune = -1
[/sql]

This will change the setting of every forum to show all the threads (unless you have overrided it with a profile option). You may have to edit and save a forum (no need to make any edits) for the changes to take effect.

Polo 06-18-2004 12:46 PM

Quote:

Originally Posted by NTLDR
[sql]UPDATE forum
SET daysprune = -1
[/sql]

This will change the setting of every forum to show all the threads (unless you have overrided it with a profile option). You may have to edit and save a forum (no need to make any edits) for the changes to take effect.

thank you so much, this is exactly what i was looking for, i appreciate it

Polo 06-21-2004 01:21 PM

mmm... ok, i think this one should be as simple... but what would be the query to update a users join date?

Dean C 06-21-2004 03:38 PM

A user or all users?

Polo 06-21-2004 05:05 PM

Quote:

Originally Posted by Dean C
A user or all users?

A single user.

Dean C 06-21-2004 05:21 PM

Hmm I'm not sure of the mysql equivalent of mktime - i'm sorry :(

Polo 06-21-2004 05:53 PM

Quote:

Originally Posted by Dean C
Hmm I'm not sure of the mysql equivalent of mktime - i'm sorry :(

oh dont worry, thanks for trying to help i appreciate it... anyone else?

Dean C 06-21-2004 06:37 PM

Tell me the date you want to set their join date too and the userid and i'll write you a quick PHP script to run to sort it out :)


All times are GMT. The time now is 05:02 PM.

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.01018 seconds
  • Memory Usage 1,728KB
  • 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
  • (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