Any ideas on how to implement an additional page into the UserCP?
I'm working on a "Paid Subscriptions" page since I am using decswxaqz's
Paypal/Subsciber mod. So, I've created the template
usercp_somepage and
somepage.php. I'm having a hard time figuring out how to get
$usercpnav to show on the page.
It's not coming up for some reason.
I don't understand what you are trying to do?
If you are trying to get the navigation menu for your page then you need to use the function usercp_menu(). This will print the menu with the PM folders, profile options etc etc.
That's the only reference to $usercpnav that I can find; inside that function.
If you want to add a menu item then you need to look at the templates called "usercp_nav_messenger", "usercp_nav_profile" or "usercp_nav_misc".
Yes. I'm just trying to get the UserCP menu show to the left of the Paid Subscriptions table I put together.
You would need to change your template to something like the following:
<html>
<head>
<title>$title</title>
$headerinclude
</head>
<body>
$header
<table width="100%" border="0" align="center">
<tr>
$usercpnav
<td valign="top">
<!--- Your table and contents goes here -->
</td>
</tr>
</table>
$footer
</body>
</html>
However, that requires $usercpnav and a few other variables to be defined.
If you wish to create the usercp menu on another page, use the following code:
require "./inc/functions_user.php";
usercp_menu();
$usercpnav then becomes available for you.
Hope that helps,
Chris
That works, but I figured it out before I saw your post, Chris.
Thanks, though.