Welcome, Guest. Please Login or Register.
May 11, 2025, 07:02:16 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  |  A mod to display the last 10 posts on my website index page « previous next »
Pages: [1] Reply Ignore Print
Author Topic: A mod to display the last 10 posts on my website index page  (Read 526 times)
jeremy420
Noobie
*
Posts: 19


I'm a llama!

A mod to display the last 10 posts on my website index page
« on: April 04, 2003, 01:52:30 AM »
Reply with quote

Is there a mod to display the last 10 posts on my website index page,does it exist? ifso,where?

thanks in advance...
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:A mod to display the last 10 posts on my website index page
« Reply #1 on: April 04, 2003, 02:02:51 AM »
Reply with quote

Use the recent posts display, and just edit Recent.php to make it 10....

-[Unknown]
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:A mod to display the last 10 posts on my website index page
« Reply #2 on: April 04, 2003, 02:20:44 AM »
Reply with quote

err... i think jeremy is looking for SSI.php, check http://www.yabbse.org/community/ssi_examples.php
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
jeremy420
Noobie
*
Posts: 19


I'm a llama!

Re:A mod to display the last 10 posts on my website index page
« Reply #3 on: April 05, 2003, 03:24:50 AM »
Reply with quote

Quote from: Spaceman-Spiff on April 04, 2003, 02:20:44 AM
err... i think jeremy is looking for SSI.php, check http://www.yabbse.org/community/ssi_examples.php

thats what i'm looking for!  I got a question though,since i'm not the best at php,i only know how to install the scripts and thats pretty much it...

but i was wondering,how do i put it on the page?

i just put this in the < html > part of my page?
< ?php require("/home/groups/y/ya/yabbse/htdocs/community/SSI.php"); ? >


then let say i wanna be able to let people login to the board from the main page of my website i would just put  <  login(); ? >   where ever i want it to appear at,then it would appear?
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:A mod to display the last 10 posts on my website index page
« Reply #4 on: April 05, 2003, 03:40:27 AM »
Reply with quote

Oh, sorry didn't see "website".

No, not exactly.  Your HTML should look like:

<?php require('/path/to/forum/SSI.php'); ?>
<html>
 <head>
   <title>...


And you will need to edit some basic settings in SSI.php too.

Yeah, you just put <?php login();?>.  Of course, this assumes your website is in PHP.  If not, you'll need to look into the server side include method.  (look at ssi_examples.shtml.)

-[Unknown]
Logged
jeremy420
Noobie
*
Posts: 19


I'm a llama!

Re:A mod to display the last 10 posts on my website index page
« Reply #5 on: April 05, 2003, 04:04:17 AM »
Reply with quote

alright i just tryed what you said and i get this error on my page

Warning: main(/forum/SSI.php) [function.main]: failed to create stream: No such file or directory in /home/virtual/site225/fst/home/vcdmedia/public_html/index.php on line 1

Fatal error: main() [function.main]: Failed opening required '/forum/SSI.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site225/fst/home/vcdmedia/public_html/index.php on line 1
Logged
jeremy420
Noobie
*
Posts: 19


I'm a llama!

Re:A mod to display the last 10 posts on my website index page
« Reply #6 on: April 05, 2003, 04:34:07 AM »
Reply with quote

nevermind i got it to work Finally  ;D


thanks alot for the help guys  ;)
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  A mod to display the last 10 posts on my website index 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.029 seconds with 16 queries.