TinyPortal

General => Chit chat => Topic started by: Porky on December 01, 2006, 03:27:45 AM

Title: Frontpage Layout
Post by: Porky on December 01, 2006, 03:27:45 AM
I am not sure how to due this so one of you code guru's may help me. I am making an html page and I want to due something similar to what bloc has on his frontpage. I want to make a box that will pull the recent post so they will display on the html front page...Is this possible?

Any help will be apreciated. thank you
Title: Re: Frontpage Layout
Post by: iwyen on December 01, 2006, 08:43:31 AM
You need to use a php page instead of a html page. Read the guide here: http://docs.simplemachines.org/index.php?topic=400 ;)
Title: Re: Frontpage Layout
Post by: Porky on December 01, 2006, 03:32:51 PM
Quote from: iwyen on December 01, 2006, 08:43:31 AM
You need to use a php page instead of a html page. Read the guide here: http://docs.simplemachines.org/index.php?topic=400 ;)

Thanks that helped alot next if you would....I want to change the colors of links that it pulls from. Which CSS is it pulling that from the default theme? Is there a way to make it pull from another theme?
Title: Re: Frontpage Layout
Post by: Porky on December 01, 2006, 04:10:15 PM
Never mind figured it out
Title: Re: Frontpage Layout
Post by: Lesmond on December 01, 2006, 04:12:15 PM
Quote from: humanporkrind on December 01, 2006, 03:27:45 AM
I am not sure how to due this so one of you code guru's may help me. I am making an html page and I want to due something similar to what bloc has on his frontpage. I want to make a box that will pull the recent post so they will display on the html front page...Is this possible?

Any help will be apreciated. thank you

You could try a shtml page and use this code
I tested it in my smf root and named it test.shtml. you could pretty it up easily 
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>
<!--#include virtual="./SSI.php?ssi_function=recentPosts" -->
</body>

</html>
Title: Re: Frontpage Layout
Post by: Porky on December 01, 2006, 05:29:30 PM
Here is what I have done so far
http://www.devilsrejectsdod.com
Title: Re: Frontpage Layout
Post by: Ken. on December 01, 2006, 11:08:31 PM
That looks great!
Hope you give us a how-to when you get finished.  :)
Title: Re: Frontpage Layout
Post by: Lesmond on December 02, 2006, 12:03:55 AM
Quote from: humanporkrind on December 01, 2006, 05:29:30 PM
Here is what I have done so far
http://www.devilsrejectsdod.com


Try this see how it looks
Save as index.shtml
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>The Devils RejEcts DOD Clan</title>
</head>

<body bgcolor="#000000" background="http://www.devilsrejectsdod.com/body.jpg">

<p align="center">&nbsp;&nbsp;<font color="#993300" size="5"><a href="http://www.devilsrejectsdod.com"><span style="text-decoration: none;"><font color="#800000" face="Chiller">Homepage</font></span></a><font color="#800000" face="Chiller">&nbsp;
<a href="http://www.devilsrejectsdod.com/smf/index.php?actio=forum">
<span style="text-decoration: none;"><font color="#800000">Community</font></span></a>&nbsp;
<a href="http://www.devilsrejectsdod.com/smf/index.php?action=tpmod;dl">
<span style="text-decoration: none;"><font color="#800000">Downloads</font></span></a>&nbsp;
<a href="http://www.devilsrejectsdod.com/smf/index.php?PHPSESSID=8a279d5c494282f58933f4e308e5dbd1;www;cat=158">
<span style="text-decoration: none;"><font color="#800000">Articles</font></span></a>&nbsp;
<a href="http://www.devilsrejectsdod.com/smf/index.php?www;action=arcade">
<span style="text-decoration: none;"><font color="#800000">Arcade</font></span></a>&nbsp;
<a href="http://www.devilsrejectsdod.com/smf/index.php?page=11">
<span style="text-decoration: none;"><font color="#800000">Members </font>
</span></a><a href="http://www.devilsrejectsdod.com/smf/index.php?page=28">Join
Us</a> </font></font></p>
<p align="center">
<a href="http://www.devilsrejectsdod.com/smf">
<img border="0" src="untitled4.jpg" width="76%" height="244" align="center"></a></a></p>
<p align="center"><font color="#CC0000">Best viewed at 1024x768</font></p>
<p align="center"><font color="#CC0000">Content suitable only for adults. May
include graphic depictions of sex and/or violence. Not intended for persons
under the age of 18.</font><font color="#800000"> </font></p>
<hr>
<p align="center"><b><font color="#CC0000" size="4">Resent Post On The Devils RejEcts DOD Clan</font></b></p>

<div align="center">

<table border="0" width="88%" cellspacing="1" style="border-collapse: collapse">
<tr>
<td><!--#include virtual="./SSI.php?ssi_function=recentPosts" --></td>
</tr>
</table>
</div>
<p align="center"></p>

</body>

</html>
Title: Re: Frontpage Layout
Post by: Porky on December 02, 2006, 01:13:46 AM
Has errors in FF5
Title: Re: Frontpage Layout
Post by: Lesmond on December 02, 2006, 01:18:49 AM
sorry I have ff2 and IE7 works ok with them OK back to the drawing board
Title: Re: Frontpage Layout
Post by: Porky on December 02, 2006, 01:24:03 AM
got it need to point to the right SSI path
Title: Re: Frontpage Layout
Post by: Lesmond on December 02, 2006, 01:41:40 AM
Sorry I am not much help am I :) I a bit rubbish with css :idiot2:
Title: Re: Frontpage Layout
Post by: Porky on December 02, 2006, 01:49:46 AM
Better than I am But I am learning