|
#1
|
|||
|
|||
|
Hello,
Having some major problems creating a custom page for the users control panel off the example php file Paul sent to me today with v2.0 of blesta. Here is what I'm trying to do: I want to display a custom page in the right column, and all the users info appears in the left column. I've been trying to figure it out, but here is the code I'm using in the example.php file: security($mysqldb, "user", 3); $pdtfile = "u-structure.pdt"; $pdt = new Template(); $pdt->set('title', "Your page title"); $pdt->set('page', "clients"); $pdtcfile = "u-main.pdt"; $pdtc = new Template(); $pdtc->set('action', true); $pdtffile = "my_custom_page.pdt"; $pdtf = new Template(); Can you tell me what I'm doing wrong? ![]() Thanks, Joe |
|
#2
|
|||
|
|||
|
Hello,
Figured out how to properly show the template, but I still need some help setting the data to populate the left sideboxes (user contact info, credit/invoice totals, etc). Also, is there paypal payments pro support for v2? |
|
#3
|
||||
|
||||
|
Usually you'd be responsible for building those queries to select the data you want.. but their may be some internal functions available that you could tap into... though we do not have any documentation on them.
Get array of user info PHP Code:
PHP Code:
PHP Code:
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|