1
rewrites
mypage submenus
  • 2005/7/16 16:45

  • rewrites

  • Just popping in

  • Posts: 16

  • Since: 2005/5/18


Just a quick question regarding mypage html content wrapper. I have tried to add two submenus to the exisiting submenus below by copying the existing $modversion lines and then numbering them [3] and [4] respectively. However when I access the site and log on, a blank page appears with the message T_STRING problem in line 26. If I delete the new $modversion lines I added, the page reappears. Any ideas how to add further submenus to this list? I'm a PHP newbie, so trying hard to get a handle on all this.

Thanks in advance.

PH

-----------------------------------------------------------
Existing Code:
$modversion['hasMain'] = 1;//0 to remove from main menu
$modversion['sub'][1]['name'] =Mission;//define in language/english/global.php
$modversion['sub'][1]['url'] = "../../modules/mission/";
$modversion['sub'][2]['name'] =Leadership;//define in language/english/global.php
$modversion['sub'][2]['url'] = "../../modules/leadership/";

Converted to add two extra submenus, but does not seem to work:
$modversion['hasMain'] = 1;//0 to remove from main menu
$modversion['sub'][1]['name'] =Mission;//define in language/english/global.php
$modversion['sub'][1]['url'] = "../../modules/mission/";
$modversion['sub'][2]['name'] =Leadership;//define in language/english/global.php
$modversion['sub'][2]['url'] = "../../modules/leadership/";
$modversion['sub'][3]['name'] =acc statement;//define in language/english/global.php
$modversion['sub'][3]['url'] = "../../modules/mission/";
$modversion['sub'][4]['name'] =History;//define in language/english/global.php
$modversion['sub'][4]['url'] = "../../modules/leadership/";
------------------------------------------------------------

2
plusangel
Re: mypage submenus
  • 2005/7/16 17:00

  • plusangel

  • Just popping in

  • Posts: 90

  • Since: 2005/2/2 1


Must be a simple error...probably a syntax error…anything else doesn’t make sense.
In the above line,

$modversion['sub'][3]['name'] =acc statement;

Is rue that you have a space between acc and statement? probably if you add an underscore?
The paths to the modules are correct?

A really great job has been done to multimenuv1.7 module. Have you tried this?
The official greek support site for xoops

3
JMorris
Re: mypage submenus
  • 2005/7/16 17:02

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


If you have a space or a hyphen in the name, you have to wrap it with quotes.

Example:
$modversion['sub'][3]['name'] =acc statement;

Becomes:
$modversion['sub'][3]['name'] ="acc statement";

Hope this helps.

JMorris
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

4
rewrites
Re: mypage submenus
  • 2005/7/16 17:13

  • rewrites

  • Just popping in

  • Posts: 16

  • Since: 2005/5/18


thanks for the quick replies to this - really appreciated. The blank space between the navigation title (adding quotes) seems to have done the trick.

I have started to use Multimenu (after a lot of trial and error - didn't find the instructions very easy to understand). However, it is a great module, so should make more use of it really.

Thanks again.

PH

5
solo71
Re: mypage submenus
  • 2005/7/18 7:02

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29


Quote:

rewrites wrote:

I have started to use Multimenu (after a lot of trial and error - didn't find the instructions very easy to understand). However, it is a great module, so should make more use of it really.


*sigh* I guess I should ask my 5 years old girl to make some drawing about how to use multiMenu...


Login

Who's Online

233 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 233


more...

Donat-O-Meter

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

Latest GitHub Commits