Hello

September 07, 2010, 04:59:48 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
What sNews Is: - sNews is a simple, basic, customizable CMS tool suitable for developers with beginner-to-advanced PHP skills. It is also useful to have a good working knowledge of how to work with, set up and manage MySQL databases. sNews is not - geared towards the end-user who knows little or nothing about building and developing PHP-MySQL based websites.
News: Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: hidden article search BUG ??  (Read 3717 times)
ha100
Newbie
*

Karma: 6
Posts: 18


« on: October 29, 2008, 12:48:10 AM »

what is the exact purpose of hide article ability ?

because after fresh install 17rc2 and hiding welcome message search of "welcome" returns value.

but if i click the link, i got "No articles at the moment". make no sense for me.
Logged
philmoz
High flyer
Administrator
ULTIMATE member
******

Karma: 152
Posts: 1848



WWW
« Reply #1 on: October 29, 2008, 08:55:26 AM »

ok .. also spotted a formatting issue, but to this peoblem...
function search_engine()
after the $query satement, just before
if ($keyCount > 1) {

place
if(!_ADMIN){$query = $query.' a.visible = \'YES\' AND ';}

which should fix it... the above will mean admin can find it on search, but a regular surfer can't.
« Last Edit: October 29, 2008, 09:01:59 AM by philmoz » Logged

Take offs are optional, landings are mandatory, unless you get into space, then you have other issues.
ha100
Newbie
*

Karma: 6
Posts: 18


« Reply #2 on: October 29, 2008, 09:28:24 AM »

yes i know. i did it too. but isn't this what unpublish is doing?
thats why i was asking for the purpose of it.
now we have 2 functions doing completely the same thing.
Logged
philmoz
High flyer
Administrator
ULTIMATE member
******

Karma: 152
Posts: 1848



WWW
« Reply #3 on: October 29, 2008, 10:30:14 AM »

not quite... Wink
publish/unpublish
strictly speaking, there shouldn't be an 'unpublish' option.
If something is published, it could be withdrawn (hidden) from public view, but it shouldn't be unpublished.
This then raises the issue of why the publish date isn't altered should someone unpublish an article, then republish...
>>> am I being a tad pedantic??
Logged

Take offs are optional, landings are mandatory, unless you get into space, then you have other issues.
Joost
Guest
« Reply #4 on: October 29, 2008, 04:05:34 PM »

Honestly, I did wonder too, what the 'hide' feature was for. Pedantic? I often asked myself whether a table row should have two dates:
One for the system and one for the content.
Logged
centered
Guest
« Reply #5 on: October 29, 2008, 05:00:12 PM »

Honestly, I did wonder too, what the 'hide' feature was for.

Pretty bad don't you think...
Logged
Joost
Guest
« Reply #6 on: October 29, 2008, 05:25:04 PM »

Honestly, I did wonder too, what the 'hide' feature was for.

Pretty bad don't you think...

Not really. Like I said, I haven't got a clear idea how I would have solved that "issue". Lets see what the users think about it.
Logged
funlw65
Hero Member
*****

Karma: 95
Posts: 799



WWW
« Reply #7 on: October 29, 2008, 05:53:48 PM »

I saw in other CMS's the possibility to restrict articles to any level in a multiuser environment...  is this equal to hidden? I don't think it is...

But publishing? Is a kind of "standard"...  Joomla, Drupal, Wordpress, e107, etc. But, don't think at those CMS's, are only few and you can say you have your own rules. Just think at how many users use them and what "publishing" mean for them ...
Logged
Pages: [1]
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!