| Author |
Message |
samiro

Joined: 20 Apr 2008 Posts: 93 Location: IL |
|
i found the BUG (unaproved news shown for Gests) |
|
the problem: the articles that saved as "unapproved" or "saved as draft" showen to gust...
the bug: when including the code - to view more than 1 category. The problem papers...
When including the articles like this:
 |  | <?PHP
$number= '10';
$static = 'true';
$category = '1';
$template = 'Header';
include("/hsphere/local/home/samiro/bwoman.co.il/articles/news/show_news.php");
?> |
everything work fine
But when include the code like this:
 |  | <?PHP
$number= '10';
$static = 'true';
$category = '1,2,3,4,5,6,9';
$template = 'Header';
include("/hsphere/local/home/samiro/bwoman.co.il/articles/news/show_news.php");
?> |
the problem appears... if the article published in one of these categories (2,3,4,5,6,9) not (1) and everyone (even gusts) can see the article even if it saved as "unapproved" or "saved as draft"
HELPPPPP
what can I do to fix it?
_________________ www.Bwoman.co.il |
|
| Thu Jul 02, 2009 1:04 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
samiro

Joined: 20 Apr 2008 Posts: 93 Location: IL |
|
|
| Sat Jan 02, 2010 3:08 pm |
|
 |
mark99
Joined: 09 Feb 2009 Posts: 127
|
|
|
|
Can confirm this as a bug, not sure how to fix though, hope somebody else has an idea.
|
|
| Mon Jan 04, 2010 2:50 pm |
|
 |
Chaser

Joined: 17 Feb 2009 Posts: 65
|
|
|
|
open inc/show.news.php and replace
 |  | if ($allow_categories[0] != ''){ |
with this
 |  | if ($allow_categories[0] != '' and $hidden = 0){ |
|
|
| Tue Jan 05, 2010 4:14 pm |
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 591 Location: Hoogeveen, NL |
|
|
|
That won't ever work...
I think you mean
 |  | if ($allow_categories[0] != '' and $hidden == 0){ |
_________________
 |
|
| Mon Jan 11, 2010 12:28 am |
|
 |
DarkSlim

Joined: 06 Aug 2009 Posts: 286 Location: IL |
|
|
| Mon Jan 11, 2010 9:14 am |
|
 |
D72

Joined: 22 Feb 2007 Posts: 321 Location: NL |
|
|
|
 |  | That won't ever work...
I think you mean
 |  | if ($allow_categories[0] != '' and $hidden == 0){ |
|
Hey man, you're back!?
Just for fun or for some reasons?
Gelukkig nieuwjaar kerel!
|
|
| Thu Jan 14, 2010 10:44 am |
|
 |
Chaser

Joined: 17 Feb 2009 Posts: 65
|
|
|
|
 |  | That won't ever work...
I think you mean
 |  | if ($allow_categories[0] != '' and $hidden == 0){ |
|
No, it's tested and works. Yours doesn't work.
I think you mean
 |  | if ($allow_categories[0] != '' and $hidden == '0'){ |
|
|
| Fri Jan 15, 2010 1:36 pm |
|
 |
samiro

Joined: 20 Apr 2008 Posts: 93 Location: IL |
|
|
|
so
witch one we need to try ?!
edit:
i try them all.. this one:
if ($allow_categories[0] != '' and $hidden == '0'){
show also news that are without category
_________________ www.Bwoman.co.il |
|
| Wed Mar 03, 2010 12:01 pm |
|
 |
samiro

Joined: 20 Apr 2008 Posts: 93 Location: IL |
|
|
| Wed Mar 03, 2010 1:58 pm |
|
 |
Chaser

Joined: 17 Feb 2009 Posts: 65
|
|
|
|
No, i don't think so. This function is for smilies.
|
|
| Fri Mar 05, 2010 11:31 pm |
|
 |
samiro

Joined: 20 Apr 2008 Posts: 93 Location: IL |
|
|
|
 |  | open inc/show.news.php and replace
 |  | if ($allow_categories[0] != ''){ |
with this
 |  | if ($allow_categories[0] != '' and $hidden = 0){ |
|
OMG
THANK YOUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
_________________ www.Bwoman.co.il |
|
| Sun Mar 21, 2010 10:18 pm |
|
 |
samiro

Joined: 20 Apr 2008 Posts: 93 Location: IL |
|
|
|
Sorry - my mistake
Although this is the bug fix
But did new bug
Suddenly, the script ignores the categories - it displays Latest News - No matter what value there is in the category...
($ category = '2 ') or ($ category = '3 ') or ($ category = '2,4,5,6 ')
it dosnt matter - it just display Latest News...
_________________ www.Bwoman.co.il |
|
| Mon Mar 22, 2010 10:06 am |
|
 |
samiro

Joined: 20 Apr 2008 Posts: 93 Location: IL |
|
|
| Mon Mar 22, 2010 12:14 pm |
|
 |
|