Toms Homepage
  Home    Downloads    Your Account    Forums  
  Create an account
Modules
· Home
· Games
· My Gallery
· PHP Manual
· PHP-Nuke HOWTO
· Web Links
· Your Account
 
Who's Online
Welcome, Anonymous
Nickname

Password

Security Code
Security Code
Type Security Code


(Register)

Membership:
Latest: QVLMari
New Today: 472
New Yesterday: 568
Overall: 47424

People Online:
Visitors: 73
Members: 13
Total: 86

Online Now:
COM ArmandoBe
COM NevaCarlt
COM MerissaJS
COM FreemanX3
COM CorazonRs
COM MozelleBe
COM Andres09I
COM Sidney62G
COM ArliePier
COM QVLMari
COM GildaRoma
COM MaxwellRa
NET CornellBr
 
How to set an arbitrary "Stories Number in Home"

19.1. How to set an arbitrary "Stories Number in Home"

Figure 19-2. Administration panel: Preferences.

Administration panel: Preferences.

Administration panel: Preferences.



You want to display only, say, 3 News on the hopepage of your PHP-Nuke. But in the administration panel you get only the options to change the "Stories Number in Home" to 5, 10, 15, 20 , 25 and 30.

Go to admin/modules/settings.php and change at line 61[1]:

        ."</td></tr><tr><td>"
        .""._STORIESHOME.":</td><td><select name='xstoryhome'>"
        ."<option name='xstoryhome'>$storyhome</option>"
        ."<option name='xstoryhome'>5</option>"
        ."<option name='xstoryhome'>10</option>"
        ."<option name='xstoryhome'>15</option>"
        ."<option name='xstoryhome'>20</option>"
        ."<option name='xstoryhome'>25</option>"
        ."<option name='xstoryhome'>30</option>"
        ."</select>"

to

        ."</td></tr><tr><td>"
        .""._STORIESHOME.":</td><td><select name='xstoryhome'>"
        ."<option name='xstoryhome'>$storyhome</option>"
        ."<option name='xstoryhome'>3</option>"
        ."<option name='xstoryhome'>5</option>"
        ."<option name='xstoryhome'>10</option>"
        ."<option name='xstoryhome'>15</option>"
        ."<option name='xstoryhome'>20</option>"
        ."<option name='xstoryhome'>25</option>"
        ."<option name='xstoryhome'>30</option>"
        ."</select>"

Now you can select "3" from the drop-down list. You get the idea. See How to set an arbitrary "Stories Number in Home".

Notes

[1]

Line numbers are subject to change. If you don't find what you expected, search for it. Inline graphic


Help us make a better PHP-Nuke HOWTO!

Want to contribute to this HOWTO? Have a suggestion or a solution to a problem that was not treated here? Post your comments on my PHP-Nuke Forum!

Chris Karakas, Maintainer PHP-Nuke HOWTO

Great hosting I can recommend

This site is hosted with Lunar Pages and I am very happy with their service, support and the hosting packages they provide.

CLick on the image below for all the details.

Lunarpages.com Web Hosting

 
This site is
best viewed with:

Get Firefox now
Mozilla Firefox

Need a better mail client? Get Firefox now
Use Mozilla Thunderbird
 
Weather Forcast
Brisbane Today
Forecast
Select City:
 
Whirlpool.net.au
·

403 Forbidden


nginx
" target="new">403 Forbidden


read more...
 
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2004 by Tom Nitzschner.
Web site engine code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.069 Seconds

:: VereorLCARS phpbb2 style by Vereor :: PHP-Nuke theme by www.nukemods.com ::