PDA

View Full Version : A way to show most recent forum posts on different web site??


Davo
05-24-2002, 11:52 PM
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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=12324).

Open up the last10.php file from the hack and find this line (approx line 13)
require("$path/config.php");

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


$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?