vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Auto-create topic? (https://vborg.vbsupport.ru/showthread.php?t=83138)

LeeWicKeD 06-21-2005 01:37 PM

ok i got it. but it isn't user-friendly :)
i created a .php file named actopic.php, then i created a new cron via admincp. but now there are 2 problems left:
1. the cron is executed every month again (if i don't delete it before)
2. i still cannot change the values userid,forumid,$post[title],$post[message] and $post[poststarttime] in admincp ;) how can i do this? i know i need to create a new file...but problem 1 is more important.

for example:
i create a file named actopic_admin.php. with this file i can change the values and create a new cron, that executes actopic.php. at the end of actopic.php i would add a line that deletes the cron again. is this possible?

lee

Andreas 06-21-2005 01:43 PM

Why are you making it that complicated?

1.) Create a CP file with Inputs for Userid, Forumid, Title, Message and Posttime
2.) Let this CP file create the threads - hidden
3). Create a cronjob that runs once every hour and makes Threads visible that are currently invisible, but according to their dateline should be visible by now and are not under moderation..

LeeWicKeD 06-21-2005 03:05 PM

@kirbyde: sounds good, i'll give it a try.

ok i tried to create such a cp file...by copying & pasting from other hacks... but i don't know what is wrong ;)

just tried to create such "input_rows". may anyone take a look at my php file? :(


All times are GMT. The time now is 09:37 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.02425 seconds
  • Memory Usage 1,710KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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