Number Of News In Portal »  Show posts from    to     

Icy Phoenix


Old Support Topics - Number Of News In Portal



zankyw [ Sat 21 Oct, 2006 01:21 ]
Post subject: Number Of News In Portal
Hi!

I would like to limit the number of news showed in Portal. I've gone to ACP >> Portal >> Portal Configuration, but there are some options in blank and I don't see the correspondent option.

portalfh9




Can I change the number of shown news in PhpMyAdmin or there is any other solution? Thx!


moreteavicar [ Sat 21 Oct, 2006 14:27 ]
Post subject: Re: Number Of News In Portal
That looks to me like the config parameters are actually missing from your database. The way the admin index for portal config works is that all the options are pulled from the database, rather than being "hard-coded" in the php file... so, for it to be missing in ACP suggests its not there in the database.

With phpMyAdmin, the place to look is phpbb_portal_config. You should have these in the table (listed in order of id)

5 md_news_length
6 md_news_forum_id
7 md_num_news

If they are not there, you can add them with this:
Code: [Hide] [Select]
INSERT INTO `phpbb_portal_config` VALUES (5, 'md_news_length', '250');
INSERT INTO `phpbb_portal_config` VALUES (6, 'md_news_forum_id', '2,8');
INSERT INTO `phpbb_portal_config` VALUES (7, 'md_num_news', '3');


zankyw [ Sat 21 Oct, 2006 15:07 ]
Post subject: Re: Number Of News In Portal
Thanks for your help!
There were some missing values in the database.
I've done the query, and now all the values appear in phpMyAdmin, but I continue having the same problem in the ACP.

At the moment, there are 10 news published in the first page of my portal, but I don't see this value (10) in the table "phpbb_portal_config", so, I'm a bit confused.



...Where can I change the number of shown news in the portal?


moreteavicar [ Sun 22 Oct, 2006 00:54 ]
Post subject: Re: Number Of News In Portal
I think this is to do with caching - because a change was made in SQL (changes made directly in SQL are not reflected in cached files). So.. I think clearing cache will solve it. (Can be done via Styles >> Manage Cache in ACP)


moreteavicar [ Sun 22 Oct, 2006 01:13 ]
Post subject: Re: Number Of News In Portal
Forgot to ask, how may items in phpbb_portal_config? If not 42, then perhaps you could run this script. You need to be logged in first! It won't change anything thats already there (you'll see some errors saying such and such already exists).


zankyw [ Tue 24 Oct, 2006 02:56 ]
Post subject: Re: Number Of News In Portal
I've only 35 items.

I'll test tomorrow. Thanks I'll keep you informed.


moreteavicar [ Tue 24 Oct, 2006 13:28 ]
Post subject: Re: Number Of News In Portal
I think some things were removed in XS portal config because certain IMportal features were removed - like having a site-wide left nav bar. The above script install all the config for a full install of importal (which I converted to full in my own version of XS), so some settings may have no effect, but that will be harmless. Good luck;)

PS Does the correct number of news items display now?


zankyw [ Tue 24 Oct, 2006 14:27 ]
Post subject: Re: Number Of News In Portal
The script gave me the following message:

Spoiler: [ Show ]


After updating, I went to the ACP, I deleted Xtreme Styles cache, and after that, to the ACP >> Portal >> Portal Configuration but there are the same missing lines than before.

Moreover, I've been looking the table, but I can't see the item 36.

moreteavicar wrote: [View Post]
PS Does the correct number of news items display now?

No, there are 10 news displayed, but in the table, I have selected 3:

id config_name config_value
7 md_num_news 3



I don't know what to do. Here it is the table:

Spoiler: [ Show ]


That's all


moreteavicar [ Tue 24 Oct, 2006 14:42 ]
Post subject: Re: Number Of News In Portal
Ah yes... 36 doesn't exist!

The script message looks about right - I remember things like poll bar length missing.

Hmmm... I'm not sure why the rest isn't working properly... I'll have to think about it...

You could try using the original IMPortal portal admin script included here... (rename the XS one first, then clear cache and upload this)...


moreteavicar [ Tue 24 Oct, 2006 14:53 ]
Post subject: Re: Number Of News In Portal
Another thing - does the news messages actually correspond to the news topics?

And... if its not displaying correct number of news despite SQL, check the portal page news block - I think the selected block file might be the cause here. Does it have news block file instead of forum?


zankyw [ Tue 24 Oct, 2006 15:19 ]
Post subject: Re: Number Of News In Portal
I renamed the admin_portal.php in /adm to admin_portal2.php

Then, I deleted the eXtreme Styles Cache and the Portal Cache

Finally, I uploaded to the /adm folder the attached file. I don't have seen differences, and the ACP is the same.



I've compared the 2 php files, and there are not to much differences (only 5 lines with differences).


Thx for your help

Edit: I'll check what you've written now.


moreteavicar [ Tue 24 Oct, 2006 21:20 ]
Post subject: Re: Number Of News In Portal
Sorry I just realised something (based on my last question) - I normally use the portal news block (based on the forum block file), but most probably, if yours in default XS setup - it will be the XS modified news block, called "news", this parses news from includes/news.php (which is totally different to the standard IMPortal news system). This has its own configuration independent from IMPortal!

Go into ACP>>News Configuration, there you will see "Number of Items To Display", set to 10!

Sorry once again, I forgot about this!


Mighty Gorgon [ Wed 25 Oct, 2006 00:14 ]
Post subject: Re: Number Of News In Portal
The number of News in Portal must be changed in the News section.

The number of News that you can set in IM Portal section are related to FORUM and FORUM_ATTACH blocks...

Try to believe!


max_ossa [ Tue 17 Apr, 2007 06:31 ]
Post subject: Re: Number Of News In Portal
Mighty Gorgon wrote: [View Post]
The number of News that you can set in IM Portal section are related to FORUM and FORUM_ATTACH blocks...

Try to believe!


How i change this in the block ?? (NO IN THE DATABASE)

I can change the number of news in portal.php in blocks_imp_news.php ??

(With the Acp i set the numbers of news of news.php)

Example. In Portal.php i want only ONE new
In news.php i want TEN news.

You can help me ??. Thanks


Mighty Gorgon [ Wed 25 Apr, 2007 01:50 ]
Post subject: Re: Number Of News In Portal
At the moment it is not possible... this feature is still to be coded.




Powered by Icy Phoenix