| Code: |
|
function user_user_userinfo() { $uname = pnVarCleanFromInput('uname'); if (pnUserLoggedIn()) { pnRedirect(pnModUrl('advProfile', 'user', 'main', array('uname' => $uname))); } else { pnRedirect('user.php'); } } |
| MACscr wrote: | ||
Replace the whole user info function with this:
|
| Code: |
|
function user_user_userinfo() { $uname = pnVarCleanFromInput('uname'); pnRedirect(pnModUrl('advProfile', 'user', 'main', array('uname' => $uname))); } |
| Code: |
|
<td><!--[pnml name="_TEST"]--></td> <td><!--[$TEST_VALUE]--></td> |
| Chestnut wrote: | ||||
| drhiii...
The change you specify was not meant for you, see the docs in the advProfile/pndocs folder or copy this :
And replace the function user_user_userinfo() in the NS-User/user.php file. As for the templates for the advProfile, they are in the advProfile/pntemplates folder. You should have all examples needed to get a start on the subject. If there is no TEST value, here is the example for the dynamics :
Where _TEST is the global constant of your defined field, $TEST_VALUE is how the advProfile send to the template the data from this field (removing the underscore and adding _VALUE) Oh and to be sure we are on the same ground, this module is for 0.750+ (unless you have the XTE pack on a pn0.726). If you are not, then upgrade is recommended even before thinking about the advProfile. |
| Chestnut wrote: | ||||
| drhiii...
The change you specify was not meant for you, see the docs in the advProfile/pndocs folder or copy this :
And replace the function user_user_userinfo() in the NS-User/user.php file. As for the templates for the advProfile, they are in the advProfile/pntemplates folder. You should have all examples needed to get a start on the subject. If there is no TEST value, here is the example for the dynamics :
Where _TEST is the global constant of your defined field, $TEST_VALUE is how the advProfile send to the template the data from this field (removing the underscore and adding _VALUE) Oh and to be sure we are on the same ground, this module is for 0.750+ (unless you have the XTE pack on a pn0.726). If you are not, then upgrade is recommended even before thinking about the advProfile. |
| Code: |
|
function user_user_userinfo() { $uname = pnVarCleanFromInput('uname'); pnRedirect(pnModUrl('advProfile', 'user', 'main', array('uname'=>$uname))); } |
| Code: |
| Failed to load module advProfile (at function: "main") |
| Chestnut wrote: |
| http://dev.pnconcept.com/Article299.html |
| Code: |
|
<tr> <!--[last10postspnForum uid=$uid assign="last10postspnForum"]--> <td colspan="2"><!--[$last10postspnForum|pnvarprephtmldisplay]--></td> </tr> |