Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-21-2008, 12:14 PM
Ben E Lou Ben E Lou is offline
 
Join Date: Dec 2007
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help a total newbie. Is this custom modification doable?

Hello everyone. Thanks in advance for indulging a semi-clueless dolt in some questions.

I'm the commish of a sim football league and we use vbulletin for our forums. On each gameday (three days a week), I create four threads that are of identical structure, copying and pasting from several web locations, and that process takes me quite some time (30-45 minutes). I'd love to automate a good bit of it, and I suspect it's doable, but I'm not certain. I've created a bit of a functional specification for what I'm looking for. There are some details left out, I know.


PRE-CONDITIONS
(The commish will have completed the following actions prior to the process running.)

1. Woof_export.zip is uploaded.
2. DBUpdater has been run.
3. FOF's Standard HTML has been generated and uploaded.
4. Extractor and Extender HTML files have been uploaded to same folder as GindinHTML.

TRIGGER(S)
"Post Gameday Items" button is pressed.

POST-CONDITIONS
1. No-spoiler thread is posted.
2. Gameday thread is posted.
3. Players Of The Week thread is posted.
4. Pregame Discussion thread for next week is posted.


DETAILED REQUIREMENTS
TRIGGER REQUIREMENTS
  • Add a button titled "Post Gameday Items" to our vbulletin skin that can only be seen by members of a new user group called "commish."
  • When button is pressed by commish user, the process begins.
NO-SPOILER THREAD
  • Posted in General Discussion Forum (Forum ID=8).
  • Title is "YYYY Week WW No-Spoiler Thread," where YYYY=current game year and WW=current game week.
  • Line one contains link to woof_export.zip for current week.
  • Lines 2 and 3 are blank.
  • Beginning at line four, contents of http://www.gstelmack.com/woof_test/P...NoSpoiler.aspx populate the remainder of post.
GAMEDAY THREAD
  • Posted in Web Site Talk And Testing Forum (Forum ID=23.)
  • Title is "YYYY Week WW Completed."
  • Lines one through six are blank. (Commish will manually insert headlines.)
  • Line seven contains link to woof_export.zip for current week.
  • Lines eight and nine are blank.
  • Beginning at line ten, insert contents of http://www.gstelmack.com/woof_test/P...thSpoiler.aspx
  • After manually inserting headlines, commish will manually move thread to Announcements forum.
PLAYERS OF THE WEEK THREAD
PREGAME DISCUSSION THREAD FOR NEXT WEEK
I'm not a developer at all, but I'm not a total nitwit, either. I've installed maybe 20ish mods from these forums, so I'm not uncomfortable messing around in the innards of vbulletin. I guess really I have five specific knowledge items:

1. How to go about adding a button to vbulletin that is only seen by one user group.
2. How to auto-generate posts in a particular forum when that button is pressed.
3. How to auto-pull web page content into a post.
4. How to to pull the game week and year from our database. (They're in a data table called fof_gameinfo in fields called CurYear and Week.)
5. How to create a dynamic link. The woof_export.zip file mentioned above is in a different folder every gameday week. It is always of the format /2010/xxx/woof.export. 2010 is the current season, and xxx (at least for this season, I envision just changing this formula once a season...seasons are roughly 2 1/2 months log, so that's not really a big deal) is equal to 168+(Week*2).

Thoughts? Am I way over my head trying to do this myself? Should I get a web developer who is in my league to do this? (I'd rather have him working on our custom stats pages...) Is this in the realm of something someone here would do for free, or in the realm of something that I should expect to pay someone to do? It *seems* like if I had those five issues above identified, I could take it and run with it, but it may well be that those five are all too complicated for a total noob.

Thanks for reading all of this!

--Ben
Reply With Quote
  #2  
Old 03-21-2008, 12:24 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Define "noob". Only a vBulletin noob? Do you have some experience with (web) programming in general, any PHP/MySQL/HTML knowledge?
Reply With Quote
  #3  
Old 03-21-2008, 12:29 PM
Ben E Lou Ben E Lou is offline
 
Join Date: Dec 2007
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marco van Herwaarden View Post
Define "noob". Only a vBulletin noob? Do you have some experience with (web) programming in general, any PHP/MySQL/HTML knowledge?
I have more experience with vbulletin than I do with PHP/MYSQL/HTML. I've run a vbulletin-powered board for five years, but with virtually no modifications. I've run this sim league's board for four months now (LINK), and have gotten comfortable with looking at the code and making multiple template mods play nicely with one another, but that's about it. Very limited HTML/PHP/MYSQL--just commands that I've reverse-engineered when I needed them, then forgotten them later on.
Reply With Quote
  #4  
Old 03-21-2008, 12:44 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In that case and if you want to give it a try yourself, you could get most done yourself probably. I would suggest by having a look at our Articles section first.

1. How to go about adding a button to vbulletin that is only seen by one user group.
This can be easily done with a simple Template condition and the HTML to show the button.

2. How to auto-generate posts in a particular forum when that button is pressed.
See the article section on using Data Managers to create threads.

3. How to auto-pull web page content into a post.
This might be the most difficult.

4. How to to pull the game week and year from our database. (They're in a data table called fof_gameinfo in fields called CurYear and Week.)
Should not be much of a problem.

5. How to create a dynamic link.
Also should be pretty easy.
Reply With Quote
  #5  
Old 10-20-2010, 11:40 AM
Ben E Lou Ben E Lou is offline
 
Join Date: Dec 2007
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

UPDATE:

About 9 months later, I figured out how to do this. I taught myself php/MySQL and now have an auto-poster for my league that does more than I mentioned in this thread. Thanks again for the help!

Sample: http://www.fof-woof.com/forum/showthread.php?t=7973
Reply With Quote
  #6  
Old 10-20-2010, 01:28 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, that's quite something! Good job.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 03:53 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.03685 seconds
  • Memory Usage 2,219KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete