Notes ACCESS 2022 | Browsers | Css | Htacess | Html | Html5 | Javascript | Microsoft Excel | Mysql | Mysql Dumps | Php | Vb.net | VBscript | Windows <=8 | Windows >=10 | WP | WP Plugin | WP Themes | _Misc Software | ABCDEFGHIJKLMNOPQRSTUVWXYZONPRTOFF codeid operationid title keywords application code languageid show_html show_iframe make_public viewed viewed_date language operation <- Look Inside DataConditions:Order: 5 Language Operation Title Keywords Application Code Languageid Show Html Show Iframe Make Public Viewed Viewed Date WP Plugin Customizing Putting Your Code Into Wordpress Admin admin embed iframe Developer Wordpress Got it — you want to embed an iFrame inside the WordPress admin area (not just in posts or pages). This is a bit different from front-end embedding because it involves customizing the WordPress dashboard or admin pages. Here’s how you can do it safely and cleanly: 1. Add an iFrame to a Custom Admin Page You can create a new admin menu item and load your iFrame inside it. Php Copy code // Add this to your theme's functions.php or a custom plugin function my_custom_admin_page() { add_menu_page( 'My iFrame Page', // Page title 'iFrame Page', // Menu title 'manage_options', // Capability 'my-iframe-page', // Menu slug 'my_iframe_page_html', // Callback function 'dashicons-admin-site', // Icon 20 // Position ); } add_action('admin_menu', 'my_custom_admin_page'); function my_iframe_page_html() { ?> {div class="wrap"> {h1>Embedded iFrame{/h1> {iframe src="https://example.com" width="100%" height="600" style="border:0;">{/iframe> {/div> {?php } 2. Embed iFrame in an Existing Admin Page via Hook If you want to insert it into an existing settings page, you can hook into the page’s output: Php Copy code function my_iframe_in_settings_page() { echo '{iframe src="https://example.com" width="100%" height="500" style="border:0;">{/iframe>'; } add_action('admin_notices', 'my_iframe_in_settings_page'); (Note: This will show at the top of all admin pages — you can conditionally check $_GET['page'] to target specific ones.) 3. Use a Dashboard Widget with iFrame This is great if you want the iFrame right on the WordPress Dashboard. Php Copy code function my_iframe_dashboard_widget() { wp_add_dashboard_widget( 'my_iframe_widget', 'My iFrame Widget', function() { echo '{iframe src="https://example.com" width="100%" height="400" style="border:0;">{/iframe>'; } ); } add_action('wp_dashboard_setup', 'my_iframe_dashboard_widget'); ???? Tips for Safety & Compatibility Only embed trusted URLs to avoid security risks. Some sites block embedding via X-Frame-Options. If your iFrame doesn’t load, that’s likely the reason. For better styling, you can enqueue custom CSS for admin pages using admin_enqueue_scripts. If you want, I can make a version where the iFrame is responsive and styled to match the WordPress admin UI so it feels native. Would you like me to prepare that? Undo ?php /* Plugin Name: Custom Admin PHP Script Description: Adds a custom admin page that runs a PHP script. Version: 1.0 Author: Your Name */ // Hook into admin menu add_action('admin_menu', 'cap_add_admin_page'); function cap_add_admin_page() { add_menu_page( 'Custom PHP Script', // Page title 'Custom Script', // Menu title 'manage_options', // Capability 'custom-php-script', // Menu slug 'cap_render_admin_page', // Callback function 'dashicons-editor-code', // Icon 100 // Position ); } // Render the admin page function cap_render_admin_page() { if (!current_user_can('manage_options')) { wp_die('Unauthorized user'); } echo '{div class="wrap">{h1>Custom PHP Script Output{/h1>'; // Your PHP script logic here try { $result = date('Y-m-d H:i:s'); // Example: current date/time echo "{p>Server time is: {strong>{$result}{/strong>{/p>"; } catch (Exception $e) { echo '{p style="color:red;">Error: ' . esc_html($e->getMessage()) . '{/p>'; } echo '{/div>'; } WP Plugin 0 01/19/2026 WP Plugin Formatting Making Your Shortcode Report Look Good In WP style.css shortcode report plugin Shortcode Add this to your WP custom css body {overflow:visible;} table{border-color:black;border-collapse:collapse;mso-padding-alt:0in 5.4pt 0in 5.4pt} textarea{ font-size:8pt; } hr.cell_split{color:red;} tr.alt{background-color:#EEEEEE;} td{font-family:verdana;font-size:8pt;border:1px solid #000000;} .navletters {margin:0 7px 0 7px; } td.code_mod {max-width: 600px;} div.scroll{overflow:auto;text-align:left;min-width:200px;max-width:600px;max-height:200px; } input[type="button"],input[type="submit"]{ background-color: #64c9ea; border: none; border-radius: 2px; box-shadow: none; color: #fff; cursor: pointer; padding: 5px 5px; min-width:10px;margin:5px;} input[type="text"],input[type="select"] {font-family:verdana;font-size:10pt;margin:5px;padding: 2px 2px;width:70%} WP Plugin 5 09/09/2023 WP Plugin Plug-in Link Your Admin Inside Of Wordpress Admin plug-in plug in admin panel link admin Custom Create a folder under wp-content/plugins. Create a php file called swdadmin.php with the following code: SWD MenuRenters"; } ?> Of course you can use your own menu links. Your admin will load externally to bypass wordpress style sheet. My non wordpress admin needed to be modified to see if is linked via wordpress admin to bypass my login and use the wordpress login. Again your way of connecting to the database will be different from mine. // start my crap here session_start(); include("config.php"); // end my crap here // add wordpress info require_once("../wp-load.php"); if(!is_user_logged_in() && $bypass!=true){ echo "This site is under construction"; exit; } else $wordpress=true; if($wordpress==false){ // end wordpress info // start my crap here $db = mysql_pconnect($server, $user,$password); if (!$db){ echo 'Error: Could not connect to database. Please try again later.'; exit; } mysql_select_db($database); if($pageLevel=='')$pageLevel=3; if($LEVEL<$pageLevel && $bypass!=true){ echo ""; echo "You need to login with more security.Click here to continue.";$_SESSION['LEVEL']='';exit; } }else $_SESSION['LEVEL']=10; // end my crap here. I just check to see if $wordpress is true and set the permission using wordpress login data WP Plugin 725 09/09/2023 WP Plugin Plug-in Keep Colorado Free wordpress admin plugin shortcode membership form Custom dbh; function MemberCheck($atts){ global $wpdb; global $appid;global $connection; //print_r ($atts);exit; $dis= $_COOKIE["Member"]; //if($dis!="true"){ header("Location:https://www.keepcofree.com/member-login/");exit; } if(substr($dis,0,4)!="true" || $dis=="true"){ ?>dbsql($sql); if($atts["level"]==1)return; if($atts["level"]==2 && $r->data1["paid"]==0){ ?> WP Plugin 3 12/22/2022 WP Plugin Plug-in Scriptures show table of records Custom dbh; $table='';$terms='';$where="";$AND='WHERE'; $orderby="ORDER BY dateof DESC"; //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> $pageLevel=3;$bypass=true;$varView="https://jesusovergangs.com/demo/"; $savedPosts=array(); $savedGets=array(); $_POST['resetSM']=isset($_POST['resetSM'])?$_POST['resetSM']:''; if($_POST['resetSM']!=""){ foreach($_SESSION as $k=>$value) { unset($_SESSION[$k]); } foreach($_GET as $k=>$value) { unset($_GET[$k]); } foreach($_POST as $k=>$value) { unset($_POST[$k]); } } else { $savedPosts= json_decode(stripslashes($_SESSION["jsonPost"]),JSON_OBJECT_AS_ARRAY); $savedGets= json_decode(stripslashes($_SESSION["jsonGet"]),JSON_OBJECT_AS_ARRAY); } ///echo $savedPosts["SEARCH"]."=============".$_POST['SEARCH']; print_r ($savedPosts); $_POST['value']=isset($_POST['value']) ? $_POST['value'] : ''; $_GET['RESET']=isset($_GET['RESET']) ? $_GET['RESET'] : ''; $_GET['prn']=isset($_GET['prn'])?$_GET['prn']:''; $_GET['BACK']=isset($_GET['BACK'])?$_GET['BACK']:''; $_POST['inside_search']=isset($_POST['inside_search'])?$_POST['inside_search']:$savedPosts['inside_search']; if($_POST['inside_search']=="on"){ $checked1="checked"; $anywhere="%"; } $_GET['URL']=isset($_GET['URL'])?$_GET['URL']:''; $_POST['BUTTON']=isset($_POST['BUTTON'])?$_POST['BUTTON']:''; $_POST['SEARCH']=isset($_POST['SEARCH'])?$_POST['SEARCH']:$savedPosts["SEARCH"]; $search1= $_POST['SEARCH']; $_POST['updaterecord1']=isset($_POST['updaterecord1'])?$_POST['updaterecord1']:$savedPosts["updaterecord1"]; $FID1=$_POST['updaterecord1']; $_POST['resetLG']=isset($_POST['resetLG'])?$_POST['resetLG']:''; $_REQUEST['txWhere']=isset($_REQUEST['txWhere'])?$_REQUEST['txWhere']:''; $txWhere=$_REQUEST["txWhere"]; $_REQUEST['txOrderby']=isset($_REQUEST['txOrderby'])?$_REQUEST['txOrderby']:$savedPosts["txOrderby"]; $txOrderby= htmlspecialchars($_REQUEST['txOrderby'],ENT_QUOTES); //echo">>>>".$txOrderby; $ALL=isset($_GET['ALL'])?$_GET['ALL']:''; $_GET['MULTINPUT']=isset($_GET['MULTINPUT'])?$_GET['MULTINPUT']:''; $_GET['PDS_']=isset($_GET['PDS_'])?$_GET['PDS_']:''; $_GET['PDS_KILL']=isset($_GET['PDS_KILL'])?$_GET['PDS_KILL']:''; $_GET['INX']=isset($_GET['INX'])?$_GET['INX']:$savedGets['INX']; $INX=$_GET['INX']; $_GET['VIEW']=isset($_GET['VIEW'])?$_GET['VIEW']:''; $_GET['NUM']=isset($_GET['NUM'])?$_GET['NUM']:''; $_GET['ALPHA']=isset($_GET['ALPHA'])?$_GET['ALPHA']:''; $_GET['SB']=isset($_GET['SB'])?$_GET['SB']:''; $_GET['report']=isset($_GET['report'])?$_GET['report']:''; $part['query']=isset($part['query'])?$part['query']:''; $part['fragment']=isset($part['fragment'])?$part['fragment']:''; $prn=$_GET["prn"]; $_SESSION['INSIDE']=isset($_SESSION['INSIDE'])?$_SESSION['INSIDE']:''; //$_SESSION['MULTINPUT']=isset($_SESSION['MULTINPUT'])?$_SESSION['MULTINPUT']:'';$_SESSION['MULIUPDATEFIELD']=isset($_SESSION['MULIUPDATEFIELD'])?$_SESSION['MULIUPDATEFIELD']:''; $_SESSION['TABLENAME']=isset($_SESSION['TABLENAME']) ? $_SESSION['TABLENAME'] : ''; $_SESSION['PDS_SAVE']=isset($_SESSION['PDS_SAVE'])?$_SESSION['PDS_SAVE']:''; $_SESSION['SORTBY']=isset($_SESSION['SORTBY'])?$_SESSION['SORTBY']:''; $_SESSION['FIELDSAVE']=isset($_SESSION['FIELDSAVE'])?$_SESSION['FIELDSAVE']:''; $_SESSION['SEARCHSAVE']=isset($_SESSION['SEARCHSAVE'])?$_SESSION['SEARCHSAVE']:''; $_SESSION['URLSAVE']=isset($_SESSION['URLSAVE'])?$_SESSION['URLSAVE']:''; $ALPHA=$_GET['ALPHA']; if($ALPHA!=''){ $_SESSION['ALPHA_SAVE']=$ALPHA; } ELSE $ALPHA=$_SESSION['ALPHA_SAVE']; if($_POST["SEARCH"]!=""){$_SESSION['ALPHA_SAVE']="";$ALPHA="";} if($txWhere!="") {$whereCondition=$AND.$txWhere; $AND=" AND ";} if($ALPHA!=""){$whereAlpha="$AND $FID1 LIKE '$ALPHA%'";$AND=" AND ";} //store data for restart //echo $jsonSess = json_encode($_SESSION); $_SESSION["jsonPost"]= json_encode($_POST); $_SESSION["jsonGet"]= json_encode($_GET); $dis.=""; $dis1='';$dis.=""; $dis.="$dis1"; if($LEVEL>3){$dis.="";}else {$dis.="";} $title1="n "; //vb.net comboSearchFields function start $selectme=array();$ftitle=explode(".",$FID1); $selectme[$ftitle[1]]="selected"; $title1.="dateofn"; $title1.="commentn"; // `Report Search Fields` $title1.="n"; $dis.=$title1; // `Report Search2` $dis.="Look Inside Data Conditions:Order: "; // `Report Start Task` $dis.="n"; function CreateLinks($inx,$num,$range){ global $ALPHA; global $VIEW;global $txWhere; $ratio=(int)($num/$range);$start=1;$maxlinks=30; if($ratio<$num/$range)$ratio+=1; $end=$ratio; if($ratio>$maxlinks){ $start=$inx/$range-$maxlinks/2; if($start<1)$start=1; $end=$start+$maxlinks; if($end>$ratio){ $end=$ratio;$start=$end-$maxlinks; } } for($i=$start;$i<=$end;$i++){ switch($VIEW){ case 2: $submenu.="$i |"; break; default: $submenu.="$i |"; } } $dis1.=$submenu; return $dis1; } //Form variables on update $maxrec=20; $whereInnerjoin="";$whereSearch="";$AND=" WHERE "; $table='';$terms='';$where=""; $orderby=" ORDER BY dateof DESC"; if($txOrderby!="")$orderby=" ORDER BY ".$txOrderby; //global $wbdb; $connection=$wbdb->dbh; $whereInnerjoin="";$whereCondition="";$whereAlpha="";$whereSearch="";$AND="WHERE "; $table='';$terms='';$where="";$AND='WHERE '; $t0="scripture_comment";$tables.="$t0";$r=new mysqli_swd(); $terms.="$t0.commentid,$t0.dateof,$t0.comment,$t0.caregoryid"; if($search1!=''){ $sec1=substr($search1,0,1); if($sec1=="<" || $sec1==">"){ $search1=substr($search1,1,strlen($search1)-1); switch($sec1){ case "<": $whereSearch.=$AND.$FID1." <= '$search1'";$AND=' AND ';break; case ">": $whereSearch.=$AND.$FID1." >= '$search1'";$AND=' AND ';break; } } else { $whereSearch.=$AND.$FID1." LIKE '".$anywhere.$search1."%'"; $AND=' AND '; } } if(function_exists("global_search_filter")){ $whereSearch.=global_search_filter($t0); } // `Report Terms` $innerjoin="SELECT $terms FROM $tables ".$whereInnerjoin.$whereSearch.$txWhere.$orderby; $NUM=$r->num; //asss // `Sql Where` MODIFY VARIOUS WHERE'S // echo $innerjoin."".$countrecs.""; $cancel==false; //CREATE ORDER BY if($NUM>$maxrec && $report=='') echo CreateLinks($INX,$NUM,$maxrec); // `Sql Where` MODIFY VARIOUS WHERE'S $cancel==false; //CREATE ORDER BY if($SB=="``"){ $SB=$_SESSION["SORTBY"]; }else{ if($_SESSION["SORTBY"]==$SB)$SB=$SB." DESC"; $_SESSION["SORTBY"]=$SB; } $cancel==false; // `Sql Report` 1st Custom Changes to SQL [$t?,$table,$where,$whereAlpha,$whereSearch,$orderby] & Back?RETID= if($SB=="``" || $SB=="")$sort="`dateof` DESC".$txOrderby; //include txtbox order by else{ $sort=$SB.$txOrderby; } //Prepare multiple column sort. if(gettype($sortColumn)=='array'){ for($ii=1;$ii<=count($sortColumn);$ii++){ if(strpos("|".$sort,stripDESC($sortColumn[$ii]))==0) $sort.=",".$sortColumn[$ii]; } } // `Sort Report Header Links` $orderby=" ORDER BY $sort"; //$_SESSION["SORTBY"]=$sort; // `Sql Where` append to innerjoin // `Sort Report Header Links` if($INX=="")$INX=0; $query=$innerjoin; $r->dbsql($query);$result=$r->data;$NUM=$r->num; if($NUM>$maxrec){ $dis.= CreateLinks($INX,$NUM,$maxrec); $query=$innerjoin." LIMIT ".$INX.",".$maxrec; }else{ $query=$innerjoin; } //$countrecs="SELECT count(commentid) FROM innerjoin"; $query2=$countrecs; //END DESIGN CODE //$innerjoin="SELECT $terms FROM $tables $where"; $grouping=false; $r->dbsql($query);$result=$r->data;$num=$r->num; $disTitle="Dateof Comment"; //if($grouping==true)echo "$disTitle";else echo "".$disTitle; rem line in vb $cnt=0;// =============== START PRINTING VALUES =========== $dis.="".$disTitle; // add line in vb for($i=1;$i<=$num;$i++){ $row=$r->dbRow($result); $defaultField='One of these fields listed below'; $commentid=$row['commentid']; $dateof=$row['dateof']; $dateof=convertmdy($dateof); $comment=$row['comment']; $comment=ShortenString($comment); $caregoryid=$row['caregoryid']; // `Report Format` //Create Totals Here $cnt++;//manually assign the defaultField varaible from extracted terms. if($lastfield!=$defaultField && $grouping==true){ $dis.="n"; $dis.="$defaultField $disTitlen"; $lastfield=$defaultField; } if($class=='')$class='class=alt'; else $class=''; $cnt++;$dis.="n"; $dis.="$dateof $comment"; //$dis.=" $commentid $dateof $comment $caregoryid"; $dis.=""; //Generate Totals Here } return $dis.""; } include("WPfunctions.php"); add_shortcode("shit", "Scriptures"); ?> WP Plugin 1 12/22/2022