In this section we modify the PHP-Nuke Web Links module:
How to display Web Links in the same window (Section 18.5.1),
How to change the number of Web Links per page (Section 18.5.2).
The Web_Links module will display each web link in a separate window. To change this behaviour and make it display the link in the same window, you have to change each occurence of
target=\"new\" |
to
target=\"_self\" |
in the modules/Web_Links/index.php file. This is a straightforward search and replace procedure. In vi, you would do
1,$s/target=\\"new\\"/target=\\"_self\\"/g |
You can change the number of Web Links that are displayed per page very easily - no programming necessary!
Just change the value of $perpage in modules/Web_Links/l_config.php:
$perpage = 10; |
Make use of the module configuration files! | |
---|---|
It definitely pays off to have a look at the configuration files of the various modules! The l_config.php file, for example, located in the Web_Links folder under the modules directory, offers many variables that can be used to achieve the desired appearence of the Web Links module:
|