Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
i found the BUG (unaproved news shown for Gests)

 
Reply to topic    Forum Index » Bugs and errors View previous topic
View next topic
i found the BUG (unaproved news shown for Gests)
Author Message
samiro



Joined: 20 Apr 2008
Posts: 79
Location: IL

Post i found the BUG (unaproved news shown for Gests) Reply with quote
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:
Code:
<?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:
Code:
<?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 View user's profile Send private message Visit poster's website
Guest








Please login to hide the ads.

samiro



Joined: 20 Apr 2008
Posts: 79
Location: IL

Post Reply with quote
pleaseeeeeeeeeeeee

_________________
www.Bwoman.co.il
Sat Jan 02, 2010 3:08 pm View user's profile Send private message Visit poster's website
mark99



Joined: 09 Feb 2009
Posts: 118

Post Reply with quote
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 View user's profile Send private message
Chaser



Joined: 17 Feb 2009
Posts: 63

Post Reply with quote
open inc/show.news.php and replace
Code:
   if ($allow_categories[0] != ''){


with this
Code:
   if ($allow_categories[0] != '' and $hidden = 0){

Tue Jan 05, 2010 4:14 pm View user's profile Send private message Send e-mail
Ramon



Joined: 12 Oct 2005
Posts: 589
Location: Hoogeveen, NL

Post Reply with quote
That won't ever work...

I think you mean

Code:
       if ($allow_categories[0] != '' and $hidden == 0){


_________________
Mon Jan 11, 2010 12:28 am View user's profile Send private message Visit poster's website
DarkSlim



Joined: 06 Aug 2009
Posts: 239
Location: IL

Post Reply with quote
If anyone can check the fix and confirm that it is working
I'll add this fix to the Index Smile

_________________
Portfolio: www.Yaniv.tk

Some of my Plugins and Mods and more in the CuteNewsRU Index!

Donations Accepted, Thank you
Mon Jan 11, 2010 9:14 am View user's profile Send private message Visit poster's website
D72



Joined: 22 Feb 2007
Posts: 314
Location: NL

Post Reply with quote
Ramon wrote:
That won't ever work...

I think you mean

Code:
       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 View user's profile Send private message
Chaser



Joined: 17 Feb 2009
Posts: 63

Post Reply with quote
Ramon wrote:
That won't ever work...

I think you mean

Code:
       if ($allow_categories[0] != '' and $hidden == 0){


No, it's tested and works. Yours doesn't work.

I think you mean
Code:
       if ($allow_categories[0] != '' and $hidden == '0'){

Fri Jan 15, 2010 1:36 pm View user's profile Send private message Send e-mail
samiro



Joined: 20 Apr 2008
Posts: 79
Location: IL

Post Reply with quote
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 View user's profile Send private message Visit poster's website
samiro



Joined: 20 Apr 2008
Posts: 79
Location: IL

Post Reply with quote
maybe this one make the bug ?
http://forums.cutenewsru.com/viewtopic.php?t=1605&highlight=breaklocation++breaklocation

_________________
www.Bwoman.co.il
Wed Mar 03, 2010 1:58 pm View user's profile Send private message Visit poster's website
Chaser



Joined: 17 Feb 2009
Posts: 63

Post Reply with quote
samiro wrote:
maybe this one make the bug ?
http://forums.cutenewsru.com/viewtopic.php?t=1605&highlight=breaklocation++breaklocation


No, i don't think so. This function is for smilies.
Fri Mar 05, 2010 11:31 pm View user's profile Send private message Send e-mail
Display posts from previous:    
Reply to topic    Forum Index » Bugs and errors All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.