vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   TOTW: Thread of the Week Poll - Version 1.16 (https://vborg.vbsupport.ru/showthread.php?t=74737)

Marco van Herwaarden 04-09-2005 06:03 AM

Quote:

Originally Posted by fiber1
Thanks I guess that works... Sorry never seen that approach yet! :D

That is default behaviour for all multiselect fields:
- Simple click: deselect all and select only the one you clicked
- Control Click: togle state of the line you clicked, keeping all previously selected
- shift click: select from/until lines.

Kru 04-09-2005 01:14 PM

It works like a charm. Great work MarcoH64 and big thank you for the changes that I requested. :)

Lionel 04-13-2005 09:39 AM

Quote:

Originally Posted by MarcoH64
When it is time to rune the Rule again according to the schedule, it will close the current poll, post the results (and give away the uCash points if set) and create a new Poll.

It is not happening for me in that order. Seems that it is creating the new poll first, then post the results and close the poll last. So, for example in forumhome, last thread column will show April 2nd instead of April 9th.

I manually change the title for every thread created to make it as Week Ending 00/00/0000. And whenever the cron runs, the closed thread displays as last posted instead of new poll.

Lionel 04-13-2005 09:45 AM

Quote:

Originally Posted by Lionel
Thanks for considering it. Real nice hack! Couldn't that be achieved now by doing something like:

Best thread for week ending $lastrundate (something to that extent using that parameter)

Quote:

Originally Posted by MarcoH64
Well that parameter is not implemented, only start weeknumber and i think start date if i remember correct.

What about $today? date? The creation date of the thread has to be somewhere.

Marco van Herwaarden 04-13-2005 10:02 AM

Lionel,

Can you PM me an URL where i can see this behaviour?

Edit: And i will look if i have some time today for adding some more variables to the title.

Lionel 04-13-2005 10:14 AM

Marco I sent you the PM. If you look closely, the post number for the closed poll is lower than the new poll, indicating that it was created first. Yet it displays as last.

Marco van Herwaarden 04-13-2005 11:31 AM

Quote:

Originally Posted by Lionel
What about $today? date? The creation date of the thread has to be somewhere.

Today is already possible (with exception of the year). Just use one of the following for Thread Title:
- Poll for {day}-{month}-2005
- Poll for {day} {monthname} 2005

Marco van Herwaarden 04-13-2005 02:51 PM

New version 1.16 released:

Version 1.16:
- Fixed bugs in updating Username/Userid/Thread Title in posted thread and forum info
- Removed 2 unneeded queries
- Added replacement variables for Thread Title:
- {date} - Current date formatted according to vB settings
- {beginofweek} - Date (formatted) of the start of the current week (sunday is start)
- {endofweek} - Date (formatted) of the end of the current week (saturday is end)
- {beginofweekmon} - Date (formatted) of the start of the current week (monday is start)
- {endofweekmon} - Date (formatted) of the end of the current week (sunday is end)
- Added {date} replacement variable to Poll Title
- Made all replacement variables case-insensitive
- Admin Help pages updated accordingly

Polo 04-19-2005 01:47 PM

I dont know if this has been asked before... but is it possible to select just random threads? if yes, what do i need to modify?

Marco van Herwaarden 04-19-2005 02:03 PM

Nope that is not possible with the current version.
How did you have this in mind?

Just 3 (or more) random threads from the last week?


All times are GMT. The time now is 09:49 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.01339 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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