1
cattivik76
Module: change home link ... help !
  • 2008/8/23 19:14

  • cattivik76

  • Just popping in

  • Posts: 13

  • Since: 2008/3/22


Hello to all
I have this question for you and hope you can help me.
In my site i've a module: smartsection.
The link in the menu "smartsection" refer directly to the home page of the of the module:http://www.sos4zampe.com/modules/smartsection/
I would like that clikking on "smartsection" link in the menĂ¹, i go directly on this link:http://www.sos4zampe.com/modules/smar ... category.php? categoryid = 1
So i wolud like to change module home page link ... is possible ?

Here is the code in xoop_version of smartsection .... I can not change ... someone can give me some help?

/ / Menu
$ modversion [ 'hasMain'] = 1;

Global $ xoopsModule;
if (is_object ($ xoopsModule) & & $ xoopsModule-> getVar ( 'dirname') == $ modversion [ 'dirname']) (
global $ xoopsModuleConfig, $ xoopsUser;
$ isAdmin = false;
if (! empty ($ xoopsUser)) (
$ isAdmin = ($ xoopsUser-> isAdmin ($ xoopsModule-> getVar ( 'mid')));
)
/ / Add the Submit button new item
if ($ isAdmin | | (isset ($ xoopsModuleConfig [ 'allowsubmit']) & &
$ xoopsModuleConfig [ 'allowsubmit'] == 1 & &
(is_object ($ xoopsUser) | |
(isset ($ xoopsModuleConfig [ 'anonpost']) & & $ xoopsModuleConfig [ 'anonpost'] == 1)))) (
$ modversion [ 'sub'] [1] [ 'name'] = _MI_SSECTION_SUB_SMNAME1;
$ modversion [ 'sub'] [1] [ 'url'] = "submit.php? op = add";
)
)

Thank you very much

2
stefan88
Re: Module: change home link ... help !
  • 2008/8/23 19:29

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

you can use iMenu or Multimenu modules to create your own menu or you can hide smartsection from main menu and add link by hand in template(or use this modulehttp://dev.xoops.org/modules/xfmod/project/?mainmenulink)...
..

3
cattivik76
Re: Module: change home link ... help !
  • 2008/8/24 17:38

  • cattivik76

  • Just popping in

  • Posts: 13

  • Since: 2008/3/22


uhmmm ... another module ? No please !!! :)
There are not other possibility ? I need just of this change :(

4
Mamba
Re: Module: change home link ... help !
  • 2008/8/24 18:52

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


1) set Weight for "SmartSection" to 0 in the Admin's Modules
2) set up a new menu item - see this thread
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

5
cattivik76
Re: Module: change home link ... help !
  • 2008/8/25 11:01

  • cattivik76

  • Just popping in

  • Posts: 13

  • Since: 2008/3/22


I also tried this solution
but I have 2 problems
1) the sub-link smartsection "submit article"
2) the link goes down menu
possible that we can not act on xoops_version of smartsection?

Login

Who's Online

216 user(s) are online (124 user(s) are browsing Support Forums)


Members: 0


Guests: 216


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits