vBulletin Modifications

Daily/automatic post

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > vBulletin Modification Requests

Reply
 
LinkBack Thread Tools
Old 04-19-2006, 10:17 AM   #11
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Hehe, sorry, I should've explained it better.

A cron is a .php file which is ran automaticly by vB every X minutes, X hours, X days, etc. You can find this in your admincp.

You must first be a registered member to view any code.
What you'll have to do is the following:

1. Make a .php file called daily_post.php and put the above code into it.

2. Change $title="Your Title"; to whatever you want. If you want to add a date/time let me know by replying and I'll give you the code for it.

3. Next make a template called "daily_message_body", and add your email content there. You can add something like:
You must first be a registered member to view any code.
4. Now save the file, and upload it to ./includes/cron

5. Now go to the cron manager in the Admincp, and add daily_posy.php to the cron list. You can decide when to run it yourself, just click the (?) signs on the right next to the input fields, and they'll explain how it works ;).


That should work. Let me know please
__________________
Need some custom work done for your site, but can't find a (freelance) coder willing to take on the job? Good news: you needn't look further, as I'm currently accepting custom jobs! From a template fix to a completely new portal system, you name it and I'll make it exclusively for your site! Interested? Send me a PM for details. ;)


Please note that I will only provide support through the vBHackers.com Forums, not through MSN/email/PM.

Last edited by Arnoud; 04-20-2006 at 06:53 AM..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 04-19-2006, 10:53 AM   #12
Coder
Shapeshifter's Avatar
Join Date: May 2005
Location: The Netherlands
Shapeshifter is on a distinguished road

Default

Kinda cool function.
Is it also possible to automatically create a post which shows how many posts, hacks, scans, etc are posted on a monthly bases? I could use that ;)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-19-2006, 01:37 PM   #13
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

I'll look into that for you.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-19-2006, 08:15 PM   #14
vB Lover
Join Date: Mar 2006
_Fatal is on a distinguished road

Default

Thanks Deaths! Ya, i'd like to add the date to the title/subject. Cron manager? thats the schedule taks manager I take it? also, the minute option is weird, it has 4 boxes, lol. Oh ya! how do I set this for certain forums, I'm goin to have to create more then this one for the other games I have on my site, So I need to make one automatic poster for like Socom, another for like Madden, another for 25 to life. all seperate forums. How do I do this or where do I adjust it?

Last edited by _Fatal; 04-19-2006 at 08:32 PM..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-19-2006, 08:43 PM   #15
vB Lover
Join Date: Mar 2006
_Fatal is on a distinguished road

Default

ok, now I set it up and then I did the "run now" function and I am prompted with this
You must first be a registered member to view any code.
and a post hasn't been created.

Last edited by _Fatal; 04-19-2006 at 08:57 PM..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-20-2006, 06:55 AM   #16
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Sorry, that was a typo. Try it again now .

I'll add the date and time once I get home, aswell as the other functions.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-20-2006, 01:54 PM   #17
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Right, here's the new code. You can use $date_now to add the date.

You must first be a registered member to view any code.

Last edited by Arnoud; 04-20-2006 at 01:58 PM..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-20-2006, 08:08 PM   #18
vB Lover
Join Date: Mar 2006
_Fatal is on a distinguished road

Default

ok, I went to daily_post.php, changed the code to your new one, ran the task and I get
You must first be a registered member to view any code.
I only changed the "this was created at" portion and that was it, what else must I change? the Forum I want this to post in is forum id45. I've gotta be doin somethin wrong because nothing is being posted.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-20-2006, 08:10 PM   #19
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Oh lol, I forgot about the <?php tags. Or did you add those?

Let me take a look at the forumid thingy, will edit in a sec.

EDIT:
Try this:
You must first be a registered member to view any code.

Last edited by Arnoud; 04-20-2006 at 08:13 PM..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-20-2006, 08:13 PM   #20
vB Lover
Join Date: Mar 2006
_Fatal is on a distinguished road

Default

no, I didn't add those, lol, oops.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exclude forum from post count CarpHunter vBulletin Modification Requests 3 05-17-2005 03:29 PM
Cannot edit your post when your post have repply 80rifa vBulletin Modification Requests 2 02-07-2005 12:02 AM
Mods/admins make thread have no post count Keyser Söze vBulletin Modification Requests 2 09-09-2004 01:33 PM


All times are GMT -3. The time now is 10:24 AM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)