• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PHP based site that puts content in the index via a forum post?

EQTitan

Diamond Member
I'm looking for a php site that either comes premade, or can be downloaded and modified.

The site must be able to take an update to the maind index.php file from a forums post.

So, say you would like to post that your back from Europe and want to post some pictures, and link a few things, but you like to do this from your forum topic and have everything you put in that specific topic update to the main page of the website.

Thanks in advance....
 
If you know any PHP, you just have to do a SELECT from the database and display the content. I did this on my website.

<?php
// Connect to the database.
mysql_connect("$host", "$uname", "$pass") or die(mysql_error());
mysql_select_db("database") or die(mysql_error());

$topics = mysql_query("SELECT ID_MSG, ID_TOPIC, subject FROM database.table ORDER BY ID_MSG DESC LIMIT 0,4");
// Gets my Topic Title and ID from the forum DB
while(($row = mysql_fetch_assoc($topics)) !== false){ // Loop until you get to the limit
$IDMSG = $row['ID_MSG']; // Assign a variable for each requested row from the DB
$IDTOPIC = $row['ID_TOPIC'];
$subject = $row['subject'];
// Display a link to that forum post, using the topic name as the link name
echo "<li><a href=\"http://forum.site.com/index.php?topic=$IDTOPIC.MSG$IDMSG\" class=\"newsSummary\">$subject</a></li>";
} ?>

It's pretty much the same idea.
 
Originally posted by: LoKe
If you know any PHP, you just have to do a SELECT from the database and display the content. I did this on my website.

<?php
// Connect to the database.
mysql_connect("$host", "$uname", "$pass") or die(mysql_error());
mysql_select_db("database") or die(mysql_error());

$topics = mysql_query("SELECT ID_MSG, ID_TOPIC, subject FROM database.table ORDER BY ID_MSG DESC LIMIT 0,4");
// Gets my Topic Title and ID from the forum DB
while(($row = mysql_fetch_assoc($topics)) !== false){ // Loop until you get to the limit
$IDMSG = $row['ID_MSG']; // Assign a variable for each requested row from the DB
$IDTOPIC = $row['ID_TOPIC'];
$subject = $row['subject'];
// Display a link to that forum post, using the topic name as the link name
echo "<li><a href=\"http://forum.site.com/index.php?topic=$IDTOPIC.MSG$IDMSG\" class=\"newsSummary\">$subject</a></li>";
} ?>

It's pretty much the same idea.

he's not coding, he's looking for a CMS.
 
I'm currently reading PHP and MySQL 5 - Gilmore ISBN (1-59059-552-1)

I have read a ton of books about php but I could never understand them as they were all written for people with a programming background or people who already have a grasp on PHP. So, I'm still trying to learn about PHP so If anyone has any pointers.

I'm fairly proficient with HTML 4+ some, CSS, xml.

Thanks for your help and yes a CMS that is free would be wonderful I could update and modify it to my likings.
 
Back
Top