vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Cron Auto Thread Creator (https://vborg.vbsupport.ru/showthread.php?t=186551)

Mellow 08-27-2008 07:52 PM

This is cool.. we have some weekly saturday events.. most of the time we post a reminder on wednesday with that saturdays' date in the thread, can I add 3 days to the date and insert it into the title? Is that as simple as +3 days?

webgod 08-27-2008 10:14 PM

Quote:

Originally Posted by Mellow (Post 1608485)
This is cool.. we have some weekly saturday events.. most of the time we post a reminder on wednesday with that saturdays' date in the thread, can I add 3 days to the date and insert it into the title? Is that as simple as +3 days?


to get a future date you would need to use the mktime function
http://www.php.net/mktime

Mellow 08-29-2008 12:43 PM

Quote:

Originally Posted by webgod (Post 1608572)
to get a future date you would need to use the mktime function
http://www.php.net/mktime

Thank you sir.. appreciate this mod!

Mellow 08-29-2008 01:09 PM

Quote:

Originally Posted by Mellow (Post 1609898)
Thank you sir.. appreciate this mod!

I've looked through all that.. can't quite figure it out. Can anyone point out the exact coding I'd have to add to show the current date + 3 days?

Thanks, php-noob.

realmr 09-01-2008 09:46 AM

how to add say user id is 1, or admin as user, in forum 3. I am not sure how to edit its very confusing :o

|Jordan| 10-02-2008 11:39 PM

Awesome, i was looking for something that does this.

Any chance you can add support for auto creating a poll for the thread?

4x4 Mecca 10-03-2008 12:16 AM

Ok, before I click install, I wanted to ask is we can have it post as many posts in the future as I want. For example, I have a weekly tech question that changes every week. Can I auto fill all the posts now, and just have it upload them once a week? How would I do that? Just make a few autothread.php files or something? THanks!

4x4 Mecca 10-04-2008 04:21 AM

bump-aroo :) Any idea here? I see where to edit the one post content, but where can I tell it to post a different topic weekly?

4x4 Mecca 10-04-2008 04:50 AM

never mind, i just have to make multiple files. It seems though I can only pick a day of the month, but not an exact date in the future, can I make this mod do that?

MGDesigns 10-11-2008 04:48 PM

Hey webgod,

Could you share your scheduled task settings please?

Thanks!


All times are GMT. The time now is 05:55 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.02366 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
  • (2)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