Avatar billede vinsk Nybegynder
21. juni 2005 - 19:55 Der er 2 kommentarer

Hvordan bruger jeg Cutenews?

Hej eksperter ;)
Jeg har downloadet et "admin system" der hedder cutenews.
www.cutephp.com ...
Der står godt nok hvordan man gør i en readme fil, men jeg forstår den altså ikke!

Getting The News On Your Page...

  You can show the news,  archives on your page by using some of the following php codes in your page.
The page where you include news, should be with extension .php


--------------------------------------------------------------------------------

General

when showing news, archives you can use $number = x; to limit the to x the number of maximum showed news on one page. If you use $number, "next >>" link to remaining news will be displayed.

if you want to show news, archives from certain category you can use $category = "ID"; where ID is the id of the category, you can choose and more that one category like this: $category = "ID1,ID2,ID3";

when you want to display news and headlines on one page for example, and want when a headline is clicked, the article to be displayed on the place of the news you must use $static = TRUE; before including headlines. 
 
Showing Active News

  <?PHP
include("path/to/show_news.php");
?>
   
 
Showing with Different Template

  <?PHP
$template = "YOUR_TEMPLATE_NAME";
include("path/to/show_news.php");
?>   
 
Showing Archives

  <?PHP
include("path/to/show_archives.php");
?>   
 
Showing 5 Latest News

  <?PHP
$number = "5";
include("path/to/show_news.php");
?>   
 
Showing 5 News from Category with ID 2 

  <?PHP
$number = "5";
$category = "2";
include("path/to/show_news.php");
?>   
 
Showing All Headlines And The 1 Latest News Article  On One Page

  <?PHP
$static = TRUE;
$template = "Headlines";
include("path/to/show_news.php");

$number = "1";
include("path/to/show_news.php");
?>
   
 

--------------------------------------------------------------------------------

Remember that:

in all of the above examples you must replace path/to/... to with your path where you installed CuteNews
and not to use the URL but the path
WRONG: include("http://site.com/cutenews/show_news.php);
CORRECT: include("cutenews/show_news.php);                         
in most cases when you include news and headlines in one page, you must use $static = TRUE; .
when you use $number, $category, $template or any other variable, it must be BEFORE include("show_news.php");
if you have any problems, you can always go to our support forums and we'll be more than glad to help you
 

----

Nogen der kan hjælpe mig?
Jeg vil gøre så nyhederne kommer direkte til www.rarex.frac.dk til forsiden ( www.habworld.frac.dk jeg har uploadet Cutenews der )

- Tak :)
Avatar billede mstorgaard Praktikant
22. juni 2005 - 01:42 #1
Kan du så ikek bare indsætte koden her i på din forside på rarex:

<?PHP
include("http://www.habworld.frac.dk/cutenews/show_news.php");
?>
Avatar billede mstorgaard Praktikant
14. januar 2006 - 12:03 #2
Jeg tror 6½ måned er nok til at finde ud af hvordan det fungerer :)

Uddeler du nogle point eller lukker spørgsmålet?
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Alle kurser indenfor Microsoft 365 – både til begyndere og øvede.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester