News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

10 most recent posts

Started by DEK24, December 18, 2007, 02:02:27 PM

Previous topic - Next topic

DEK24

ok i just tried to toss this into my html page and the page went nuts with no recent posts.

I use a program iweb to design my site and it allows you to insert html snippets, usually what I do when I add ads or a youtube video. Is there anyway to do something like this to add the recent posts?

Orstio

"page went nuts" doesn't really help to determine where you went wrong.

Did you get error messages?  If so, what error messages did you get?

PFDWM

Hello I just followed instructions here and nothing showed up, Page didnt go nuts but nothing showed up.  No error messages.  But I am using a HTML website, does it have to be XHTML or something else?

Orstio

And you used the path from the "SMF directory" field in your SMF admin panel, server settings?

PFDWM

yeah its a shared server from godaddy /home/content/u/s/e/username/html/

subsituted username : for real info

Orstio

So this is what you have above your <html> tag?

<?php require("/home/content/u/s/e/username/html/SSI.php"); ?>

PFDWM


Orstio

And your forum is here:

/home/content/u/s/e/username/html/

And not in a subdirectory, like this?

/home/content/u/s/e/username/html/forum/

PFDWM

sorry yes it is in a sub directory /pfd forum/

Orstio

So then the code should be this?

<?php require("/home/content/u/s/e/username/html/pfd forum/SSI.php"); ?>

PFDWM

Yeah Im sorry I did do that sorry should ahve stated that
/home/content/..../pfd forum/ssi.php

DEK24

Quote from: Orstio on December 21, 2007, 06:35:37 AM
"page went nuts" doesn't really help to determine where you went wrong.

Did you get error messages?  If so, what error messages did you get?

everything on the page went blurry out of order and it looked like it was being covered by the matrix

Orstio

Quoteeverything on the page went blurry out of order and it looked like it was being covered by the matrix

You don't happen to be using something like FrontPage or DreamWeaver to edit the file?

PFDWM


Orstio

Try using Notepad instead.  Or, if you want something with colour highlights, use NotePad++.  FrontPage and DreamWeaver can do strange things with PHP code.

PFDWM

ok I will try it... But im going to need the button i guess in the future
you going to be around in case things go arye

PFDWM

#36
Hmm well I edited it with note pad put
Quote<?php require("/home/content/u/s/e/username/html/Patterson Fire Dept Forum/SSI.php"); ?>
on line 1

Quote<?php ssi_recentPosts(8 ); ?>

where I want the post to show up
Note: had to put a space between 8 )  when posting b/c it went to smiley

But still no luck with it showing up

Orstio


PFDWM


Orstio

#39
What happens if you change the name of index.htm to index.php?

Also, if I go to your forum:

http://www.pattersonfiredept.org/Patterson%20Fire%20Dept%20Forum/

There are no posts visible to guests, so there won't be anything in your recent posts...

Advertisement: