Welcome, Guest. Please Login or Register.
March 29, 2024, 02:03:51 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  |  Language Specific User Help  |  Svenska/Norsk/Dansk  |  Hvordan få nyhetene på forsiden? (ikke på forsiden til forumet ) « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Hvordan få nyhetene på forsiden? (ikke på forsiden til forumet )  (Read 31277 times)
Ollie
Noobie
*
Posts: 7


I'm a llama!

Hvordan få nyhetene på forsiden? (ikke på forsiden til forumet )
« on: February 15, 2004, 11:56:35 AM »
Reply with quote

Link på Forum: http://www.sindrebn.com/yabbse/index.php

Problem Beskrivning:
Jeg og min venn driver et forum...
men vi får ikke nyhetene våre på forsiden til hjemmesiden, noen som vet hvordan ?

MvH Ollie , Takk på forhånd!
Logged
reed
Noobie
*
Posts: 13


I'm a llama!

Re:Hvordan få nyhetene på forsiden? (ikke på forsiden til forumet )
« Reply #1 on: February 15, 2004, 05:21:46 PM »
Reply with quote

antar att du menar att dem inlägg som du skriver i en avdelning i forumet skall synas som en nyhets sida på eran hemsida inte sant?

i så fall skapa ett Announcements forum, då kan bara admin posta, och sedan lägger du till php kod som finns en en readme text fil som finns i YaBB SE huvudmappen, kommer dock inte ihåg vad den hette just nu.

Edit:
men i alla fall så är det denna php som du skall lägga till:
<? include("********/index.php?action=news;board=13;limit=5;template=fssnews_template;ext=php"); ?>

där board=13 är ditt board nr, limit=5 är hur många poster som skall visas, template=fssnews_template är namnet på templaten för nyheterna (om man väljer att göra egen template), ext=php är template filnamnets ändelse.

För att köra utan egen template så kan koden se ut så här:
<? include("********/index.php?action=news;board=13;limit=5"); ?>
då tar den standard template filen som finns i din yabb se folder. Mer information om detta finns just i denna readme fil.


gjorde just detta på min sida igår kväll.

/reed
« Last Edit: February 15, 2004, 05:26:52 PM by reed » Logged
Ollie
Noobie
*
Posts: 7


I'm a llama!

Re:Hvordan få nyhetene på forsiden? (ikke på forsiden til forumet )
« Reply #2 on: February 15, 2004, 06:09:55 PM »
Reply with quote

takker, tror du at du gidder å sette det opp ?
jeg er nemlig en  ???
Logged
reed
Noobie
*
Posts: 13


I'm a llama!

Re:Hvordan få nyhetene på forsiden? (ikke på forsiden til forumet )
« Reply #3 on: February 15, 2004, 09:00:21 PM »
Reply with quote

Du kan hitta denna readme filen i yabbse mappen din, och heter: NewsPHP_ReadMe.txt

om inte så bifogar jag all text här nedan:

QuoteNews.php - News Script for YaBB SE 1.4.2
Copyright (C) 2002 YaBB SE Dev Team. All Rights Reserved.
Web: http://www.yabbse.org/


1. Setup your Include statement on the page you wish your news to appear according to your type of file (either PHP or SHTML).  In this case, we are going to show you PHP Includes.  Add the include to point to your YaBB SE index.php file.

Eg. <? include("http://www.yabbse.org/community/index.php"); ?>

2. Add the ?action=News;board=# to the end of the URL above.  Make sure you replace the # with the board number you want news to appear from.

Eg. <? include("http://www.yabbse.org/community/index.php?action=news;board=9"); ?>

That is all you need to get a basic script running.  You can add the following to the end of that. but make sure you put a ; at the end of each variable.  These aren't needed but each are optional.

limit=#
Limits the Amount of News Items to show (Default is 5)

template=name
name is the filename of a custom template, without the extension. (default is news_template)

ext=name
name in this case, is the extension of the template file, incase the file isn't php. However this can't be used without template being before it.  (default is php)

Eg. <? include("http://www.yabbse.org/community/index.php?action=news;board=9;limit=7;template=mytemplate;ext=shtml"); ?>
The above is a possible example of what it could look like.  The one just above won't work like the others though.

Eg. <? include("http://www.yabbse.org/community/index.php?action=news;board=9;limit=7"); ?>
This is a working possibility, if you wanted to change the limit of News Items.

så du kan testa dig fram.

/reed
Logged
Ollie
Noobie
*
Posts: 7


I'm a llama!

Re:Hvordan få nyhetene på forsiden? (ikke på forsiden til forumet )
« Reply #4 on: February 16, 2004, 12:55:18 PM »
Reply with quote

Jeg og en som heter Sindre, har prøvd det
men vi er fortsatt helt  ???
Logged
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:Hvordan få nyhetene på forsiden? (ikke på forsiden til forumet )
« Reply #5 on: February 16, 2004, 03:28:22 PM »
Reply with quote

Först och främst, för att använda news-funktionen måste du använda antingen PHP eller SSI (Server Side Includes). För PHP handlar det alltså om att sidan som nyheterna ska in på måste ha filtypen .php - för SSI behövs ofta filtypen .shtml, men ibland kan det räcka med vanliga .htm eller .html (och ibland går det att ställa in i kontrollpaneler eller liknande).

Så är du intresserad av att använda dig av PHP eller SSI för att lägga till detta? Vad har du försökt? Får du felmeddelanden, eller vad är problemet?

Ju fler detaljer du kan ge, desto lättare är det för oss att försöka hjälpa dig.
Logged
Ollie
Noobie
*
Posts: 7


I'm a llama!

Re:Hvordan få nyhetene på forsiden? (ikke på forsiden til forumet )
« Reply #6 on: February 20, 2004, 11:21:22 AM »
Reply with quote

Jeg fant ut at WebHotellet ikke støttet Yabbse News
Logged
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:Hvordan få nyhetene på forsiden? (ikke på forsiden til forumet )
« Reply #7 on: February 20, 2004, 01:06:38 PM »
Reply with quote

Om inte annat, så kan du alltid använda dig av PHP för news-delen, genom att döpa om förstasidan till .php - om YaBB SE funkar, så funkar alltid det!
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Language Specific User Help  |  Svenska/Norsk/Dansk  |  Hvordan få nyhetene på forsiden? (ikke på forsiden til forumet ) « 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.023 seconds with 20 queries.