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

Reply
 
Thread Tools Display Modes
  #1  
Old 01-15-2008, 03:51 AM
r_sole r_sole is offline
 
Join Date: Jan 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Are these 2 things possible?

1 - Auto thread creation:
---------------------------------
I want to have my forum somehow automatically create a thread for me each day, with info from one of my databases (a separate database to the one Vbulletin uses).

2 - Latest thread appear on my sites front page:
---------------------------------------------------------
Since my site isn't primarily a forum I was wondering if it's possible to have the latest thread from a certain one of my forums (the 'news and announcements forum) appear on the front page of my site.

Are these 2 things possible? How do I do it? Is there a plugin or something (Im using VB 3.6.8)
Reply With Quote
  #2  
Old 01-15-2008, 04:07 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. Yes, it is possible, but you will either have to code it yourself, or hire a coder to code it for you. It would be a script that pulls that info, and then hooks itself into vBulletin's database to post the information. It would be run as a cron job.

2. Yes, it is possible, but you will either have to code it yourself, or hire a coder to code it for you. You will just have to open a connection to vBulletin's database and run a SQL query to fetch the data. I believe a modification called "vBExternal" should help.
Reply With Quote
  #3  
Old 01-15-2008, 04:19 AM
r_sole r_sole is offline
 
Join Date: Jan 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im quite comfortable with html/php/mysql so coding it myself is really a problem.

1. Can you give me some idea of what sort of mysql statement id need to run to post a new thread? I've looked at around and some people refer to 'build_new_post() in functions_newpost.php', but those are all old threads (2004) so I'm not sure if that's outdated.

2. vBExternal looks good. Thanks, I'll look into it.
Reply With Quote
  #4  
Old 01-15-2008, 05:23 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The preferred way to create new threads is through the ThreadPost Datamanager. I believe there is an article that shows how to do this.
Reply With Quote
  #5  
Old 01-15-2008, 05:40 AM
r_sole r_sole is offline
 
Join Date: Jan 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would the script on this page (if edited to suit) be what I'm after?
http://www.vbulletin.com/forum/showthread.php?t=224561
Reply With Quote
  #6  
Old 01-15-2008, 07:00 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, but disregard the second post in that thread as it is correct in the first example.
Reply With Quote
  #7  
Old 01-15-2008, 07:31 AM
r_sole r_sole is offline
 
Join Date: Jan 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome thanks man :up:
Reply With Quote
  #8  
Old 01-19-2008, 01:04 AM
r_sole r_sole is offline
 
Join Date: Jan 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright I did this (the auto-thread creation) and it works. There's just one thing, the thread gets created, but on the main page of the forum the 'last post' part doesn't get updated. So I'll be able to add the new thread, but no-one will know it's been added unless they actually go into that forum.
Reply With Quote
  #9  
Old 01-21-2008, 03:58 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe you need to run the function build_forum_counters() to rebuild the cache.
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 11:26 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.03667 seconds
  • Memory Usage 2,228KB
  • Queries Executed 11 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_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