PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
rolfpf
New Member
New Member


Joined: Feb 05, 2006
Posts: 5

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

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
Moderator


Joined: Apr 30, 2004
Posts: 2847

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

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
View user's profile Send private message Visit poster's website
rolfpf
New Member
New Member


Joined: Feb 05, 2006
Posts: 5

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

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.
View user's profile Send private message
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 Back to top

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: 2275
Location: Germany:Moderator German NukeSentinel Support

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

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 Visit poster's website
jmrobles
New Member
New Member


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

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

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.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum