Welcome, Guest. Please Login or Register.
May 13, 2025, 10:28:31 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Latest post in a shtml page ??? « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: Latest post in a shtml page ???  (Read 1693 times)
Marcelo
Noobie
*
Posts: 4


Law services in Brazil ...

WWW
Latest post in a shtml page ???
« on: January 24, 2003, 07:21:17 PM »
Reply with quote

Hey guys,

I'm pretty new in here, but i have a question similar to this forum.

I want to show in my index.shtml page only the latest post in my forum, how do i configure the ssi code.


<!--#include virtual="/path_to/lastpost.xxx" -->
Can you guys solve this to me ?

Thanks a lot,

Marcelo Pessoa
http://www.juridico.pro.br/
[email protected]
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Latest post in a shtml page ???
« Reply #1 on: January 25, 2003, 01:03:47 AM »
Reply with quote

Look at http://www.yabbse.org/ssi_examples.shtml

-[Unknown]
Logged
Killer Possum
Sr. Member
****
Posts: 446


turboz3@msn.com WWW
Re:Latest post in a shtml page ???
« Reply #2 on: January 25, 2003, 01:12:21 AM »
Reply with quote

Hey that page need to be updated, it says it works only with 1.3.0 yet I'm useing it with my 1.5.1RC1 build 36 :)
« Last Edit: January 25, 2003, 01:13:05 AM by Killer Possum » Logged
tdodnz
Sr. Member
****
Posts: 275


Asleep zzzzz (Snore Snore)

ICQ - 166370583cnd_nz@go.com WWW
Re:Latest post in a shtml page ???
« Reply #3 on: January 25, 2003, 10:06:54 PM »
Reply with quote

man i don't even know shtml, and I don't think i even have an index.shtml page in my forum
Logged
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Latest post in a shtml page ???
« Reply #4 on: January 25, 2003, 11:51:59 PM »
Reply with quote

Quote from: tdodnz on January 25, 2003, 10:06:54 PM
man i don't even know shtml...

So what is there to 'know'? So long as your server's configured for it, all you need to do is to change the file extension to .shtml and use:

<!--#include file="blah.blah" --> or <!--#include virtual="blah.blah" --> (no space before #!)

Where .blah (1) is the file name and .blah (2) is the extension (plain .txt is all you need if it's just to include standard blocks of HTML into all the specified pages, but [Unknown]'s link shows you how to use it with YaBB SE and I suppose you *could* include anything that still made sense in the context of the overall page). :)
« Last Edit: March 20, 2003, 06:49:17 PM by Peter Duggan » Logged

Marcelo
Noobie
*
Posts: 4


Law services in Brazil ...

WWW
Re:Latest post in a shtml page ???
« Reply #5 on: January 26, 2003, 12:29:53 AM »
Reply with quote

Quote from: [Unknown] on January 25, 2003, 01:03:47 AMLook at http://www.yabbse.org/ssi_examples.shtml

-[Unknown]

all right, but i looked at my directory and there is no ssi.php file. where can i downlod it to use .

hope you can help me.
Logged
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Latest post in a shtml page ???
« Reply #6 on: January 26, 2003, 01:23:27 AM »
Reply with quote

Quote from: Marcelo on January 26, 2003, 12:29:53 AMall right, but i looked at my directory and there is no ssi.php file. where can i downlod it to use .

It *should* be in the main 'yabbse' directory of whatever version you downloaded. Might be worth checking again?
Logged

tdodnz
Sr. Member
****
Posts: 275


Asleep zzzzz (Snore Snore)

ICQ - 166370583cnd_nz@go.com WWW
Re:Latest post in a shtml page ???
« Reply #7 on: January 29, 2003, 11:56:54 AM »
Reply with quote

hey I found it thanks now I get a bit what this is on about ;D
Logged
TempusFugit
Noobie
*
Posts: 41


tempusfugit@mail.com WWW
Re:Latest post in a shtml page ???
« Reply #8 on: January 29, 2003, 03:07:24 PM »
Reply with quote

Quote from: tdodnz on January 25, 2003, 10:06:54 PMman i don't even know shtml, and I don't think i even have an index.shtml page in my forum

Have a look at some very good tutorials (not only for YaBB):

http://www.cgi-resources.com/Documentation/Server_Side_Includes/
Logged

"All men dream: but not equally. Those who dream by night in the dusty recesses of their mind wake in the day to find that it was vanity: but the dreamers of the day are dangerous men, for they may act their dream with open eyes, to make it possible. This I did."
haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:Latest post in a shtml page ???
« Reply #9 on: May 08, 2003, 05:40:05 PM »
Reply with quote

Hey, I was trying to get shtml working on my server, and I was unsuccesful.  I tried clicking on Unknown's link and I get an error (was not able to process this directive), does these still work?
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Latest post in a shtml page ???
« Reply #10 on: May 08, 2003, 05:47:13 PM »
Reply with quote

load the ssi_examples.shtml in your own forum directory
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:Latest post in a shtml page ???
« Reply #11 on: May 08, 2003, 05:52:38 PM »
Reply with quote

Okay.  Let me elaborate a little bit.  I was working on my shoutbox mod because someone asked for an SSI.  I got it working on my dev site correctly after placing it in ssi_examples.php.  I was not able to get it to work in ssi_examples.shtml.  I thought it might be an issue with my server, so I come here and I try [unknown]'s link www.yabbse.org/community/ssi_examples.shtml and I get an error here too.  So my question isn't "How do I get it to work?" so much as it is "Why doesn't it work here?"  And could that somehow be related to my problem.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Latest post in a shtml page ???
« Reply #12 on: May 08, 2003, 10:19:50 PM »
Reply with quote

These work the same way:

http://www.yabbse.org/community/ssi_examples.php

-[Unknown]
Logged
McGilljam
Noobie
*
Posts: 19


I'm a tigger...

mcgilljam@hotmail.com WWW
Re:Latest post in a shtml page ???
« Reply #13 on: May 13, 2003, 09:22:50 AM »
Reply with quote

Ok.. so far so good...

But another problem.

Our forum is on my server and our homepage is located on another server. I can figure it out that it sholuld work but how?
Does the server with the homepage need PHP and ssi?
Both servers run's IIS...
What do I need do do to get it work?

I want latest topics and Users online on the homepage...

Please help me....
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Latest post in a shtml page ???
« Reply #14 on: May 13, 2003, 09:41:09 AM »
Reply with quote

try: <?php include "http://www.yoursite.com/forum/SSI.php?function=recentTopics" ?>
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Latest post in a shtml page ??? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.077 seconds with 20 queries.