1
pipwax
MyPage
  • 2005/9/17 0:15

  • pipwax

  • Not too shy to talk

  • Posts: 132

  • Since: 2005/9/12


I am using the my page module It seems to be working. However, the loos nut behind the key board (me) Needs help with the Syntext. when you login it shows MyPage and the sub menu shows Mi_MYPAGE_SMname1 can someone tell me what I need to change.

Thanks!
pipwax1@bellsouth.net
Quote:
To win in life one must be fluid like water, taking the shape needed to prevail


aspring IT Professional

2
JMorris
Re: MyPage
  • 2005/9/17 4:29

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


The following section in xoops_version.php defines the language settings for links.

// Menu for submenus in main menu when page loads
$modversion['hasMain'] = 1;//0 to remove from main menu
$modversion['sub'][1]['name'] = _MI_MYPAGE_SMNAME1;//define in language/english/global.php
$modversion['sub'][1]['url'] = "../../modules/ipboard/";
$modversion['sub'][2]['name'] = _MI_MYPAGE_SMNAME2;//define in language/english/global.php
$modversion['sub'][2]['url'] = "../../modules/weblog/";


If you do not plan on developing MyPage into a full-blown module, and you're only using it to display static content, then you can edit these links with static settings, like so...

// Menu for submenus in main menu when page loads
// Menu for submenus in main menu when page loads
$modversion['hasMain'] = 1;
$modversion['sub'][2]['name'] = "CSS Navbar";
$modversion['sub'][2]['url'] = "cssnav.php";
$modversion['sub'][3]['name'] = "DHTML Menu";
$modversion['sub'][3]['url'] = "dhtmlmenu.php";
$modversion['sub'][4]['name'] = "Flash Navbar";
$modversion['sub'][4]['url'] = "flashnav.php";
$modversion['sub'][5]['name'] = "Graphic Navbar";
$modversion['sub'][5]['url'] = "graphicnav.php";
$modversion['sub'][6]['name'] = "Adv. Graphic Navbar";
$modversion['sub'][6]['url'] = "advgraphicnav.php";
$modversion['sub'][7]['name'] = "Sitemap Menu";
$modversion['sub'][7]['url'] = "sitemap.php";
$modversion['sub'][8]['name'] = "More Web Tools";
$modversion['sub'][8]['url'] = "moretools.php";


If there is a space in the 'name' of the link, you must wrap the name in " ". Otherwise you'll have some problems.

From my experience with this "wrapper" module, you do not need to give the full, absolute path, just the name of the file you want to link to that is inside the mypage directory. If you are wanting to link to files outside of the mypage directory, you will want to give to full absolute path or URL like so...

// Menu for submenus in main menu when page loads
$modversion['hasMain'] = 1;
$modversion['sub'][2]['name'] = "My Writings";
$modversion['sub'][2]['url'] = "../../writings/index.php";
$modversion['sub'][3]['name'] = "My Store";
$modversion['sub'][3]['url'] = "http://store.domain.com/";


Hope this is helpful.

James
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.

3
carnuke
Re: MyPage
  • 2005/9/17 7:26

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Mypage does not work correctly with 2.2.x.

what changes are required to make it work?
hhttp://houseofstrauss.co.uk Resource for alternative health and holistic lifestyle
search xoops

4
pipwax
Re: MyPage
  • 2005/9/17 10:02

  • pipwax

  • Not too shy to talk

  • Posts: 132

  • Since: 2005/9/12


Ok Thanks that makes more sense to me, I can understand that example much better.

Thanks a million!
pipwax1@bellsouth.net
Quote:
To win in life one must be fluid like water, taking the shape needed to prevail


aspring IT Professional

5
JMorris
Re: MyPage
  • 2005/9/17 14:32

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


@pipwax,

No problem.

Quote:

carnuke wrote:
Mypage does not work correctly with 2.2.x.

what changes are required to make it work?

@carnuke,

On MyWebResource, the Web Design Tools and PRLookup tool sections of the site are both built from the MyPage module. MyWebResource is currently running XOOPS 2.2.3. To the best of my knowledge, I didn't have to do anything different to get MyPage to work on 2.2.x.

Here are the download links to the psuedo modules.

Web Design Tools
PRLookup

Your welcome to study the source code. I may eventually add some features to both psuedo modules and "officially" release them.

Hope this helps.

James
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.

Login

Who's Online

248 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 248


more...

Donat-O-Meter

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

Latest GitHub Commits