Credits & License Information
Back to main Credits pageHelp for advProfile version 2.0
// File : $Id: help.txt,v 1.3 2005/05/16 16:29:19 Chestnut Exp $
// ----------------------------------------------------------------------
// POST-NUKE Content Management System
// Copyright (C) 2001 by the Post-Nuke Development Team.
// http://www.postnuke.com/
// ----------------------------------------------------------------------
// Based on:
// PHP-NUKE Web Portal System - http://phpnuke.org/
// Thatware - http://thatware.org/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Original Author of file: Franky Chestnut - PNConcept.com !
// Purpose of file: Help.txt for the advProfile Mod.
// ----------------------------------------------------------------------
Upload, Initialize, Activate...
In modules/NS-Users/user.php, replace the function :
function user_user_userinfo()
{
...
}
by this one :
function user_user_userinfo()
{
$uname = pnVarCleanFromInput('uname');
pnRedirect(pnModUrl('advProfile', 'user', 'main', array('uname' => $uname)));
}
Arrange your template like you wish.
For User defined field, use your constant...
For the label : <!--[pnml name="_YOURCONSTANT"]-->
For the value : <!--[$YOURCONSTANT_VALUE]-->
V. 1.2
To hide some fields or plugins, you can use the permissions...
Examples :
This will hide the Signature :
All Groups | advProfile | _SIGNATURE::14 | None
...........................Field Label::Field Id
This will hide the last10links plugin
All Groups | advProfile:: | Plugin::last10links.php | None
You can create different pages...
By creating a advProfile_user_yourpage.tlp in the pntemplates folder,
you can access the page by adding &page=yourpage in your link
You can also add the link to the advprofile_user_menu.tpl
<!--[pnmodurl modname="advProFile" type="user" func="main" uname=$USERNAME_VALUE page="yourpage"]-->
See http://dev.pnconcept.com/module-advProFile.html for demo.
;)
Chestnut !
http://www.pnconcept.com
http://www.postnuke-france.org
// ----------------------------------------------------------------------
// POST-NUKE Content Management System
// Copyright (C) 2001 by the Post-Nuke Development Team.
// http://www.postnuke.com/
// ----------------------------------------------------------------------
// Based on:
// PHP-NUKE Web Portal System - http://phpnuke.org/
// Thatware - http://thatware.org/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Original Author of file: Franky Chestnut - PNConcept.com !
// Purpose of file: Help.txt for the advProfile Mod.
// ----------------------------------------------------------------------
Upload, Initialize, Activate...
In modules/NS-Users/user.php, replace the function :
function user_user_userinfo()
{
...
}
by this one :
function user_user_userinfo()
{
$uname = pnVarCleanFromInput('uname');
pnRedirect(pnModUrl('advProfile', 'user', 'main', array('uname' => $uname)));
}
Arrange your template like you wish.
For User defined field, use your constant...
For the label : <!--[pnml name="_YOURCONSTANT"]-->
For the value : <!--[$YOURCONSTANT_VALUE]-->
V. 1.2
To hide some fields or plugins, you can use the permissions...
Examples :
This will hide the Signature :
All Groups | advProfile | _SIGNATURE::14 | None
...........................Field Label::Field Id
This will hide the last10links plugin
All Groups | advProfile:: | Plugin::last10links.php | None
You can create different pages...
By creating a advProfile_user_yourpage.tlp in the pntemplates folder,
you can access the page by adding &page=yourpage in your link
You can also add the link to the advprofile_user_menu.tpl
<!--[pnmodurl modname="advProFile" type="user" func="main" uname=$USERNAME_VALUE page="yourpage"]-->
See http://dev.pnconcept.com/module-advProFile.html for demo.
;)
Chestnut !
http://www.pnconcept.com
http://www.postnuke-france.org



