Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.7
Author Message
rolfpf
New Member
New Member



Joined: Feb 05, 2006
Posts: 5

PostPosted: Mon Feb 06, 2006 5:54 am Reply with quote

I have installed the following on a Web Host.

PHP-Nuke 7.7
Patch 3.1

On Friday, I then put up about 18 Articles with the default Category of "Article" and published them to Home.

On Monday (today), I created a Category "Consulting", set all the Articles to this Category and set the show in Home as "No".

However, when I tried to set aone of them back to show in Home it did not appear.

Next I created new Articles and put them in Home, but again they did not appear.

Finally I tried everything, I could thing of including deleting the new category that I had created and setting everything back to what I had at the sstart of the day, but NO article would appear in the Home page.

What is going on. Can anyone help me. I am stumped to what to do next.

Regards
Rolf Pfotenhauer
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Feb 06, 2006 12:49 pm Reply with quote

I will try to duplicate this. In the mean time, check your stories table and make sure those rows have 'catid' and 'ihome' fields set to 0

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
rolfpf







PostPosted: Mon Feb 06, 2006 5:07 pm Reply with quote

Thanks evaders99,

While I was looking I switched the Theme from "Odyssey" (the one giving the trouble) to "DeepBlue" and the Articles are appearing again. This is strange.

I also checked the Stories Table and I found the following stored there.

Mostly they are set to catid=0 and ihome=0 with the following exceptions:

entry 7, catid=0, ihome=1
entry 11, catid=1, ihome=1
entry 20, catid=1, ihome=0


What does this mean?

I guess for a start that the problem must be with the Odyssey Theme.
 
jmrobles
New Member
New Member



Joined: Sep 13, 2008
Posts: 2
Location: Tres Cantos - Spain

PostPosted: Sat Sep 13, 2008 2:12 am Reply with quote

Hi,

The ihome field in the $prefix_stories table controls if an story (news) must be published at first page (value 0) or not (value 1).

As I could see two days ago, when I had the same problem (and when I met this thread, searching for a solution), the Odyssey theme uses the number of stories to arrange them in two columns, but there is a little error in the process: in theme.php, there is the following sentence to find out how many stories must be vissible at first page:

$kokku = $db->sql_numrows($db->sql_query("select * from ".$prefix."_stories LIMIT 0, 30 "));

(kokku must be number in estonian).

In that sentence, the stories that are present in the table but avoided from publishing at first page (ihome != 0), are erroneously considered. I solved the problem for me, using that other line:

$kokku = $db->sql_numrows($db->sql_query("select * from ".$prefix."_stories where ihome='0' LIMIT 0, 30 "));

I expect it will be useful.
 
View user's profile Send private message
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Sat Sep 13, 2008 2:23 am Reply with quote

Just don´t use theme Odysee it has several bugs and don´t work proper when you use the multilingual feature for your website.
 
View user's profile Send private message
jmrobles







PostPosted: Sat Sep 13, 2008 2:51 am Reply with quote

Of course, what Susan says may be an other solution. Here, in Spain, we say "Muerto el perro, se acabó la rabia" ("Dead the dog, no more rabies").

I agree that there are themes better programmed than Odyssey; for example, the name of theme is hardcoded in Odyssey, so, if you want to clone it with a different name to customize it (as I did), you must change all the occurrences of Odyssey. Also, the poor multilingual support, I think is caused by the lack of macros. In the other hand, its appearance is very clean.

Anyway, thanks for the advice.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.7

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©