Go Back   vb.org Archive > Search Forums
FAQ Community Calendar Today's Posts Search

Showing results 1 to 14 of 14
Search took 0.00 seconds.
Search: Posts Made By: CooganA
Forum: vB3 Programming Discussions 03-19-2007, 10:36 AM
Replies: 0
Views: 582
Posted By CooganA
.htaccess & cron

Hi

How can I rewrite information in the .htacess file using php? I'm planning on using cron jobs to execute this.

Thanks
Adam
Forum: vB3 Programming Discussions 03-15-2007, 06:10 PM
Replies: 1
Views: 833
Posted By CooganA
Cron (require_once - Include file)

Hi

I'm trying to run a PHP file using cron.

I'm trying to include a file using
[PHP]require_once(DIR . 'afile.php');[PHP]

This doesn't seem to work. Anyone know if this is possible??
...
Forum: vB3 Programming Discussions 03-15-2007, 11:12 AM
Replies: 6
Views: 997
Posted By CooganA
Hi, Ok, I've tried adding this as a...

Hi,

Ok, I've tried adding this as a scheduled task using cron.

I've tried various paths structures and commands into the "Command to Run" how do I get the file to run??

Example of where my...
Forum: vB3 Programming Discussions 03-15-2007, 09:21 AM
Replies: 6
Views: 997
Posted By CooganA
Ok... I've figured out what's happening. I...

Ok...

I've figured out what's happening. I have a scheduled task that turns the "bbactive" to 0, but the scheduled task only run when the bbactive is set to 1.

So the board turns off fine, but...
Forum: vB3 Programming Discussions 03-14-2007, 03:25 PM
Replies: 6
Views: 997
Posted By CooganA
Scheduled tasks

Hi

Does anyone know if you have to have some sort of authentication on scheduled tasks? I have a scheduled task setup that works if I click "Run Now" when I'm logged in but doesn't work if I set a...
Forum: vB3 Programming Discussions 03-14-2007, 03:23 PM
Replies: 14
Views: 1,054
Posted By CooganA
When including ./global.php I seem to get an...

When including ./global.php I seem to get an error when running these as scheduled tasks. But seems to work ok without them. Tho the scheduled task only runs if I click "run now" and doesn't work...
Forum: vB3 Programming Discussions 03-14-2007, 12:14 PM
Replies: 14
Views: 1,054
Posted By CooganA
I'm now getting this error... with both...

I'm now getting this error... with both suggestions.

Warning: main(DIR/includes/adminfunctions_misc.php) [function.main]: failed to open stream: No such file or directory in...
Forum: vB3 Programming Discussions 03-14-2007, 11:13 AM
Replies: 14
Views: 1,054
Posted By CooganA
This is line 3: $query1 = sprintf("UPDATE...

This is line 3:
$query1 = sprintf("UPDATE datastore SET data=REPLACE(data,'"bbactive";i:0;','"bbactive";i:1;') WHERE title='options'");


<?php
require_once(DIR ....
Forum: vB3 Programming Discussions 03-14-2007, 10:04 AM
Replies: 14
Views: 1,054
Posted By CooganA
Yup, thats the full file at the moment. The...

Yup, thats the full file at the moment.

The reason I use sprintf() is becuase it seemed to work last night on the code I use. I'm not a PHP developer and this is the first time I've ever had to...
Forum: vB3 Programming Discussions 03-14-2007, 09:47 AM
Replies: 14
Views: 1,054
Posted By CooganA
Hi After lots of trial and error, I finally...

Hi

After lots of trial and error, I finally hacked together some code that turned the board off/on.

Looking at the link you sent me, the code looks a lot cleaner then the one I put together...
Forum: vB3 Programming Discussions 03-13-2007, 04:21 PM
Replies: 14
Views: 1,054
Posted By CooganA
I'm new to PHP, so how would I update the...

I'm new to PHP, so how would I update the datastore database? Does anyone have a little example of updating a table?

And do you know what the field name for the Turn On/Off setting would be?
...
Forum: vB3 Programming Discussions 03-13-2007, 02:28 PM
Replies: 14
Views: 1,054
Posted By CooganA
Database fields

Hiya

Anyone know what the database table names are and what the fields are?

Anyone have a list of this anywhere? I just want to know which field contains the true/false value for the board...
Forum: vB3 Programming Discussions 03-06-2007, 03:10 PM
Replies: 2
Views: 788
Posted By CooganA
Yes, but I want this as a scheduled task. I can...

Yes, but I want this as a scheduled task. I can log into the cp system and turn on/off manually.
Forum: vB3 Programming Discussions 03-06-2007, 02:53 PM
Replies: 2
Views: 788
Posted By CooganA
Turn Off/On board

Hi all

I'm new to PHP. How do I go about building a cutom scheduled task to turn off and on the bulletin board?

Can anyone point me in the right direction.

Thanks
Adam
Showing results 1 to 14 of 14

 
Forum Jump

All times are GMT. The time now is 12:26 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.02482 seconds
  • Memory Usage 1,955KB
  • 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)forumjump
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (2)navbar_link
  • (120)option
  • (1)post_thanks_navbar_search
  • (1)search_results
  • (14)search_results_postbit
  • (1)spacer_close
  • (1)spacer_open
  • (14)threadbit_pagelink 

Phrase Groups Available:
  • global
  • inlinemod
  • prefix
  • search
Included Files:
  • ./search.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/functions_search.php
  • ./includes/functions_databuild.php
  • ./includes/functions_forumlist.php
  • ./includes/functions_misc.php
  • ./includes/functions_forumdisplay.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • search_before_process
  • search_start
  • search_results_start
  • search_results_query_posts
  • search_results_prebits
  • threadbit_process
  • search_results_postbit
  • forumjump
  • search_complete
  • navbits
  • navbits_complete