Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: delete center() ?  (Read 2261 times)

qwe010

  • Newbie
  • *
  • Karma: 0
  • Posts: 4
delete center() ?
« on: August 19, 2008, 07:00:43 am »

hello

i want to use snews

but i don't want to show all the article in home

i just want to show the title ?

i try to delete center()

but all thing stop

how can i do that ?
Logged

Joost

  • Guest
Re: delete center() ?
« Reply #1 on: August 19, 2008, 07:08:03 am »

Welcome qwe010, :)

 If you do delete <?php center(): ?> from index.php, no content is shown, nowhere.
However, instead of articles, you can decide to display only a page on home.
First make that page, then assign it to home, using the admin panel.
Logged

qwe010

  • Newbie
  • *
  • Karma: 0
  • Posts: 4
Re: delete center() ?
« Reply #2 on: August 19, 2008, 07:22:09 am »

thanks Joost

i try but it show on like an article
Logged

qwe010

  • Newbie
  • *
  • Karma: 0
  • Posts: 4
Re: delete center() ?
« Reply #3 on: August 19, 2008, 04:08:22 pm »

up any help ?
Logged

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
    • snews.ca
Re: delete center() ?
« Reply #4 on: August 19, 2008, 04:52:15 pm »

up any help ?

Function center() does more than just display articles. Everything... including the Administration panels and post-action messages... like "success" or "problem" or "error" messages... gets displayed through function center().

If you want to display only article titles somewhere, then your best bet would be to create a new function... cloned from the one that displays the short lead-ins for "latest articles"... and modifying it a bit to only show the article titles... then place that new function-name in your index.php file's side-bar area for testing and possible use.
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

mike1

  • Full Member
  • ***
  • Karma: 6
  • Posts: 199
Re: delete center() ?
« Reply #5 on: August 19, 2008, 05:12:22 pm »

search the forum for "[break]" and you may find the answer youre looking for
Logged