i2-Services, Inc. Forums

Full Version: Is it possible to wrap the Control Panel?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I include the control_panel.php (considering it is encrypted) into a content DIV on one of my pages located in the root folder?

I'm using a master template and stylesheets in Dreamweaver to control the look/feel for all pages of my site.

Using:

Code:
<div id="mainContent">
<? include("php_mm/control_panel.php") ?>
</div>


I get the following result when trying to view the hosting page:

Code:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at G:\xampp\htdocs\webs\kboy2\client-account.php:6) in G:\xampp\htdocs\webs\kboy2\php_mm\libs\class.dbsession.php on line 118

Warning: Smarty error: unable to read resource: "../interface/user_view.php" in G:\xampp\htdocs\webs\kboy2\php_mm\libs\Smarty.class.php on line 1095


Thanks for your help...

Steve

You can customize the control panel and any user interface pages by editing the templates in the /interface/ folder.

You do not really need to include it into a file or make changes to the control_panel.php file.

i2-Services, Inc. Wrote:
You can customize the control panel and any user interface pages by editing the templates in the /interface/ folder.

You do not really need to include it into a file or make changes to the control_panel.php file.

Ok. Because the control panel already aggregates the other pages nicely, I figured it would be the simplest way for me to achieve my goal. However, I will continue to tweak the code on the /interface/ files to achieve my objective.

Thats good. Though pulling it in like that would have that page pull in to that div ok - but would always break away from the page you include it into as the control panel file handles a lot of different user areas.

If that makes sense Smile
Yep...  makes sense.  

So, after some trial and error, and finally figuring out how to map the interface files to my master style sheet, I was able to finally clone parts of my master template, and paste then into each of the interface files. I did run across some problems with the Smarty compiler not understanding how to interpret the {literal} tags, but realized I could make the necessary changes and have everything work smoothly without them.

Bottom line:  I have successfully "wrapped" the control panel.  Cool
Good stuff... Hmm as for the tags if you had a opening {literal} & closing {/literal} and any CSS / Java code in between all should have been fine? Curious on that.

Anyway, happy to hear you got it!
I am having the same issue this guy has.. except I am not able to figure it out .. Smile .. I want the pages in /interface to look like my other pages and I do get an error when I paste my code in ..
the error i get is this:

Fatal error: Smarty error: [in ../interface/emailed_password.php line 16]: syntax error: unrecognized tag: word-wrap: break-word; (Smarty_Compiler.class.php, line 439) in /home/rearaorg/public_html/members/libs/Smarty.class.php on line 1095

adjinwis Wrote:
the error i get is this:

Fatal error: Smarty error: [in ../interface/emailed_password.php line 16]: syntax error: unrecognized tag: word-wrap: break-word; (Smarty_Compiler.class.php, line 439) in /home/rearaorg/public_html/members/libs/Smarty.class.php on line 1095

Well, not that I'm an expert, but is there any way you can post the chunk of code you have in your emailed_password.php file? Seems like the compiler is spotting something weird on line 16.

Make sure that any javascript / css / code with { }'s in them you wrap around {literal} {/literal}

You could also paste some of the code around line 16.
Reference URL's