Applicable for PostWrap - may not be applicable to your version of PostWrap. Use at your own risk... How to have the iframe dynamically resize based on the content of the file being displayed there. Here's how I did it.. (note: all code is not written by me - just used to create the effect) NOTE: BACK UP YOUR FILES FIRST - DOES NOT WORK ON ALL BROWSERS! STEP 1. In header.php (from postnuke's main directory) add in the following code towards the end of the file right above the following code ****************************CODE************************* if(isset($additional_header)) { echo @implode("\n", $additional_header); } themeheader(); } **************************ENDCODE************************ ************************CODE TO ADD*********************** echo "\n\n"; **************************ENDCODE************************ STEP 2. In the content pages that you want to display add in the following command (if you currently have just a
command - replace that with the following code - this will be the case in most situations). ************************CODE TO ADD*********************** **************************ENDCODE************************ STEP 3. Then in modules/PostWrap/index.php change your iframe command (around line 212) to read the following (basicly you are just adding in a name=command.) Note: In later versions of PostWrap - You need to make this change in pnuser.php instead as index.php is no longer used. ************************CODE TO ADD***********************