vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   A way to show most recent forum posts on different web site?? (https://vborg.vbsupport.ru/showthread.php?t=39023)

Davo 05-24-2002 11:52 PM

A way to show most recent forum posts on different web site??
 
Hello All!

I was wondering if anyone could help me find a hack for this one. It may not be possible but I thought it was worth a shot to ask.

I have a main web site:
http://www.hothardware.com

and a forum site for it at a different URL:
http://www.pchardwareforum.com

Question, is there a hack that I could use to post up the most recent forum threads on my main web site page? It would have to drop a few words of the most recent thread into a text link box on my main page at the site and then link back to that thread in the forum site.

Am I making any sense? :)

Thanks for your help!

Davo
Editor In Chief
HotHardware.com
http://www.hothardware.com
The Hottest PC Hardware Tested and Burned In

Darren Lewis 05-26-2002 04:42 PM

To do this you will first need Tubedogg's hack.

Open up the last10.php file from the hack and find this line (approx line 13)
PHP Code:

require("$path/config.php"); 

Replace this with the following. Replace the "xxx" with the info from your forums/admin/config.php file

PHP Code:

$servername="xxx"// hostname or ip of server
$dbusername="xxx"// username of your database server
$dbpassword="xxx"// password of your database server
$dbname="xxx"// name of database 

Then include the last10.php file on your webpage(s) of your main website.

Darren.

psoexplorer 09-09-2005 07:32 AM

Wow, this is from May 2002??

Anyway - I couldnt find a better thread here about this question (I posted my own but nobody answered yet) so I'm gonna bring it back from the dead in hopes that somebody can explain to a PHP newbie just how to do this.

I need to know how to include the last10.php file on the main page of my website - how do I do this?

tnguy3n 09-09-2005 02:22 PM

Search for RSS hacks or calling external.php file on your other site.

psoexplorer 09-09-2005 08:04 PM

I've found quite a bit of info that should help, but my main page is cgi... is there a way to call an external php file into a cgi page?


All times are GMT. The time now is 05:59 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.00970 seconds
  • Memory Usage 1,723KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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