Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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!
 




____________
www.LphantES.com
 
zankywSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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: [Download] [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');

 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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?
 




____________
www.LphantES.com
 
zankywSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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)
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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).

portalconfig.zip
Description: Fills any missing entries in phpbb_portal_config 
Download
Filename: portalconfig.zip
Filesize: 1.58 KB
Downloaded: 192 Time(s)

 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Number Of News In Portal 
 
I've only 35 items.

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




____________
www.LphantES.com
 
zankywSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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?
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 




____________
www.LphantES.com
 
zankywSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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)...

admin_portal.zip
Description:  
Download
Filename: admin_portal.zip
Filesize: 2.37 KB
Downloaded: 203 Time(s)

 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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?
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 




____________
www.LphantES.com
 
zankywSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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!
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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!
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
max_ossaSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Number Of News In Portal 
 
At the moment it is not possible... this feature is still to be coded.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron