vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How do I link a php page to my homepage? (https://vborg.vbsupport.ru/showthread.php?t=100719)

PokerKnowledge 11-13-2005 03:06 PM

How do I link a php page to my homepage?
 
Hi,
I've just installed a script that shows the lastest threads posted on my forum to be shown on a non vb page, but it's just on it's own the page.
What I want is the script to be inputed into my homepage so somewhere on my homepage there will be a little box showing you the lastest 5 threads from my forum. My homepage isn't done in php or anything like that it's a basic html page. Is this possible to somehow link the php page I have done to my homepage?

Cheers,
Jon

The Geek 11-13-2005 09:01 PM

Quote:

Originally Posted by PokerKnowledge
Hi,
I've just installed a script that shows the lastest threads posted on my forum to be shown on a non vb page, but it's just on it's own the page.
What I want is the script to be inputed into my homepage so somewhere on my homepage there will be a little box showing you the lastest 5 threads from my forum. My homepage isn't done in php or anything like that it's a basic html page. Is this possible to somehow link the php page I have done to my homepage?

Cheers,
Jon

Hi Jon,

If you are trying to put php in an HTML page, it wont work. To do what you are trying to do, you are going to need to rename the page extension .php for starters.

Then you could try something like this where you want it to run the page you mentioned:

bunch of HTML here
<?PHP
require_once('./forums/latest_threads.php');
?>
rest of html here

However that would depend on a lot of other things (ie that page spits out HTML and doesnt require you to call to vb's global).

Hope this helps and I hope I understood you right! :)


All times are GMT. The time now is 06:39 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.01048 seconds
  • Memory Usage 1,711KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete