future date articles must be visible too

Need some help with the script?

Postby D72 » Wed Mar 03, 2010 12:53 pm

try this

Code: Select all
<?php
$static['category'] = "1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,28";
$static['number'] = "5";
$static['template'] = "Header";
include("/hsphere/local/home/samiro/bwoman.co.il/articles/news/show_news.php");
?>
User avatar
D72
 
Posts: 336
Joined: Thu Feb 22, 2007 12:05 am
Location: NL

Postby samiro » Wed Mar 03, 2010 1:02 pm

same same !!! :(

maybe this a plugin that make this fu**ing thing
User avatar
samiro
 
Posts: 103
Joined: Sun Apr 20, 2008 1:52 pm
Location: IL

Postby D72 » Wed Mar 03, 2010 1:21 pm

I've just had a look on your website.
I've noticed that the 'example' page of CNR is still there.
When i look at the example page, the article of "wellness" is not listed in the news. Am i right?
Code: Select all
http://bwoman.co.il/articles/news/example/

This is the title of the article which should not be visible, right?
Code: Select all
שינקין, לא זה שחשבתם

On your frontend of the site, that article is visible.
But it's not listed on the example page. So if you can, try to start over from the beginning.
And i mean, try to use the original show.news.php (backup the one on the server) and use a different template in your include code too.
Because if you have madethis change in the Header template too.
You will still have that problem
Do this step by step and refresh your page by every change you have made.
User avatar
D72
 
Posts: 336
Joined: Thu Feb 22, 2007 12:05 am
Location: NL

Postby samiro » Wed Mar 03, 2010 1:25 pm

oooooooooooohhhhhhhhhhhhhhh my god
thank you
now i see that here http://bwoman.co.il/articles/news/ex/
its invisble...
not i will check whats going on !!!!

so maybe the problen is in the include code ?
:>>>>> :D
User avatar
samiro
 
Posts: 103
Joined: Sun Apr 20, 2008 1:52 pm
Location: IL

Postby samiro » Wed Mar 03, 2010 1:36 pm

i found somthing !!!

when i remove the
$category
its working good....

just when i add the $category i see the unaproved article

what i need to check ? maybe: categories.mdu?
User avatar
samiro
 
Posts: 103
Joined: Sun Apr 20, 2008 1:52 pm
Location: IL

Postby D72 » Wed Mar 03, 2010 1:46 pm

Is it working now?
How is your include code looking right now.
Because it's still strange that it works when you remove the $category from your include code.
Just try what i have written above. use the original show.news.php and use a different template for the category Header
Because by default you must be able to use the $category line in your include.
User avatar
D72
 
Posts: 336
Joined: Thu Feb 22, 2007 12:05 am
Location: NL

Postby samiro » Wed Mar 03, 2010 2:14 pm

no no - by default i cant use the $category
becouse in the default example - there is no $category :)

my code now is:
Code: Select all
<?PHP
$number= '1';
$static = 'true';
$category = '1,2';
$template = 'Header';
$schedule = false;
include("/hsphere/local/home/samiro/bwoman.co.il/articles/news/show_news.php");
?>


if i add this like this: it work PERFECT
Code: Select all
<?PHP
$number= '1';
$static = 'true';
$template = 'Header';
$schedule = false;
include("/hsphere/local/home/samiro/bwoman.co.il/articles/news/show_news.php");
?>
User avatar
samiro
 
Posts: 103
Joined: Sun Apr 20, 2008 1:52 pm
Location: IL

Postby D72 » Wed Mar 03, 2010 3:29 pm

Well, if that works for you, leave it that way and find out if you are not having problems later on
User avatar
D72
 
Posts: 336
Joined: Thu Feb 22, 2007 12:05 am
Location: NL

Postby samiro » Wed Mar 03, 2010 4:12 pm

i can't leave it that way
i want to use categories...
thats the way i display articles in my site. via categories...
for example:
http://www.bwoman.co.il/articles/health/ -> category: 4
http://www.bwoman.co.il/articles/life_style/ -> category: 5
etc...

:(
User avatar
samiro
 
Posts: 103
Joined: Sun Apr 20, 2008 1:52 pm
Location: IL

Postby D72 » Wed Mar 03, 2010 4:23 pm

There must be an easy to get this done

try this include code:
Code: Select all
<?php
$static['number'] = "1";
$static['category'] = "1,2";
$static['template'] = "Header";
include("/hsphere/local/home/samiro/bwoman.co.il/articles/news/show_news.php");
?>


* Edit
Can you send me your index file and the pages you are calling by the include codes
I have to see the real source to understand what is going wrong here
User avatar
D72
 
Posts: 336
Joined: Thu Feb 22, 2007 12:05 am
Location: NL

Postby samiro » Wed Mar 03, 2010 4:31 pm

First of all, I want to thank you for your willingness to help people
I understand that you get for nothing
You still try and try to help
The least I can do is thank you

Thanks so much!

now :)
wich index do you want ?
the index of the CNR ?

can you give me your mail - i will send it to you :)
User avatar
samiro
 
Posts: 103
Joined: Sun Apr 20, 2008 1:52 pm
Location: IL

Postby samiro » Wed Mar 03, 2010 4:36 pm

ohhhh
now i get somthing
if i use only 1 category there is no problem - and it dosnt sho unaproved news.
but if i include more that one category - i get the bug..

for example:

show unaproved and future news: $category = '1,2';
work just fine: $category = '2';

may be the problem is with the ","
if i use $category = 'all'; it also work fine
User avatar
samiro
 
Posts: 103
Joined: Sun Apr 20, 2008 1:52 pm
Location: IL

Postby D72 » Wed Mar 03, 2010 4:44 pm

category = "all" is not working i guess.
Therefor the include just ignores it and shows all categories.

Maybe you have a multiple category problem.
You can read this topic and maybe your solution is in there.
Maybe your problem i causing by the comma ',' In that case you could try to use this solution. But i think you allready have tried it before.
User avatar
D72
 
Posts: 336
Joined: Thu Feb 22, 2007 12:05 am
Location: NL

Postby D72 » Wed Mar 03, 2010 4:46 pm

samiro wrote:First of all, I want to thank you for your willingness to help people
I understand that you get for nothing
You still try and try to help
The least I can do is thank you

Thanks so much!

now :)
wich index do you want ?
the index of the CNR ?

can you give me your mail - i will send it to you :)


No problem, hopefully we find a solution for you.

I'll send you a PM right now with my details.
User avatar
D72
 
Posts: 336
Joined: Thu Feb 22, 2007 12:05 am
Location: NL

Postby samiro » Wed Mar 03, 2010 5:31 pm

u tried this one: http://forums.cutenewsru.com/mutiple-ca ... t2695.html
not helpfull

the first one - i will try but its not the same bug like i have
User avatar
samiro
 
Posts: 103
Joined: Sun Apr 20, 2008 1:52 pm
Location: IL

PreviousNext

Return to Help



Who is online

Users browsing this forum: No registered users and 4 guests