Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 05-05-2005, 08:35 AM
CrimsonGT CrimsonGT is offline
 
Join Date: Apr 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Display Forum Stats/login/news on homepage?

Alright, I know the first response will be to check out VBAdvanced and VBIndex but I honestly, after looking at them for days, do not think they will do what I need them too. I want to retain the way my homepage looks now, custom graphics (seperate from forums) and all.

I simply need to find a way to use the login from the forums on my homepage. Find a way to display the number of Members and the number of Guest online, and display ATLEAST the newest post from my news forum on the main page.

The website is http://www.nightmaremotorsports.com if you want to take a look, I am at a loss and hope someone can help.
Reply With Quote
  #2  
Old 05-06-2005, 12:46 AM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use
PHP Code:
chdir('path/to/forum');
include(
'./global.php'); 
Then pull the necessary info ( take a look at /forum/index.php file for how it does it ) that you need to the front page.
Reply With Quote
  #3  
Old 05-07-2005, 12:30 PM
Titam Titam is offline
 
Join Date: May 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cinq
Use
PHP Code:
chdir('path/to/forum');
include(
'./global.php'); 
Then pull the necessary info ( take a look at /forum/index.php file for how it does it ) that you need to the front page.
I'm interested too and ... that doesn't work.
Reply With Quote
  #4  
Old 05-09-2005, 07:44 AM
CrimsonGT CrimsonGT is offline
 
Join Date: Apr 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A lot of variables and what not, im experimenting with it now though. I wish there was something like this already made for those of us that don't want to use a CMS.
Reply With Quote
  #5  
Old 05-10-2005, 07:52 AM
CrimsonGT CrimsonGT is offline
 
Join Date: Apr 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please help?
Reply With Quote
  #6  
Old 05-10-2005, 08:03 AM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Titam
I'm interested too and ... that doesn't work.
You're gonna have to be a tad more descriptive in order for us to be able to help
Reply With Quote
  #7  
Old 05-10-2005, 07:28 PM
GSX-Racing GSX-Racing is offline
 
Join Date: May 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this is what they want, as well I do. This is how my phpbb board was. It was a news.php file that got displayed on the front page of the site.

I could specify how many threads (i used 3 as seen here) to grab from what forum (22 for me). Then clicking the title took you right to the post in the forum.

I would really like this too as a portal system isn't what I'm after.

Just a news.php page and a recent.tpl file is all that this was.
Attached Images
File Type: jpg SNAG-0076.jpg (94.0 KB, 0 views)
Reply With Quote
  #8  
Old 05-11-2005, 02:05 PM
CrimsonGT CrimsonGT is offline
 
Join Date: Apr 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, GSX hit it right on the head. I also ran phpBB a while back and I ran a portal system they had but I just copy pasted code out of the index.php it came with and kept my site look while using parts of there code. So far I was able to get the thread title/author to work, which I am using to display news (still trying to figure out how to get the actual message of the post to display as well though).

Then I also need to figure out how to show a login box/welcome back box and forum statistics. I really want to avoid a CMS because I feel like it integrates the main site too well with the forums, I would like to keep the two looking seperate.
Reply With Quote
  #9  
Old 05-17-2005, 03:17 AM
GSX-Racing GSX-Racing is offline
 
Join Date: May 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hEY Crimson,

Did you get it figured out? How to pull everything from a post and display it elsewhere?
Reply With Quote
  #10  
Old 05-17-2005, 07:48 PM
CrimsonGT CrimsonGT is offline
 
Join Date: Apr 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did get my news script working. It pulls the first post of the first three threads in the News forum and displays them on a non-vb page. I still am at a loss on how to display the stats such as how many users are online, how many guest, and a login box.
Reply With Quote
Reply

Thread Tools
Display Modes

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 09:00 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.07105 seconds
  • Memory Usage 2,263KB
  • Queries Executed 14 (?)
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
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete