Skin Plugin ( Quick Guide )

Started by BamBam0077, November 20, 2017, 11:28:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BamBam0077

#1

<?php
if ( isset($CURUSER) && isset($CURUSER['skin_plugin']) == "true" && isset($CURUSER['plugin_skin_manger']) == get_css_skin() ) {
  
get_template_skin(pluginmanagerskin());
  
  
// $HTMLOUT = '';
  // add more from there yo!
}
?>



skin functions take from within my login.php ( account-login ).

function cms_template_board() { 
     
echo "<!doctype html>
       <html lang='en'>
   <head>
   <title>Dark Asylum :: Index</title>
   <link type='text/css' rel='stylesheet' href='animate.min.css' />
   <link type='text/css' rel='stylesheet' href='css/login.css' />
   <link type='text/css' rel='stylesheet' href='css/QapTcha.jquery.css' />
   </head>";
   
function cms_login_board() {

echo "<body style='background-color: #2F2F2F;'>";

function cms_skin_begins() {
//-- Logo ---// 
     echo "<div style='margin-left: 230px;'><img src='pic/cooltext207110299513657.png'/></div>";
echo "<div style=''>";
//-- Skin Frame --//    
  function cms_skin_frame() {
     global $cms_basic_language;
echo "<div style='margin-top: 300px;margin-left: 260px;'>
           <div style='margin-top: -300px;background-color: #1F1F1F;width: 31.7%;height: 25px;'>        
   <div class='animated zoomIn'><img style='margin-top: 1px;margin-left: 325px;' src='pic/closed.png' width='20' height='20'/></div>
   </div></div>
   <div style='margin-top: 1px;margin-left: 260px;' class='css-loginbox' >
   <div class='animated bounce'>
   <form method='post' action='takelogin2.php'>
           <div style='background-color: #1F1F1F;padding: 0.6em;width: 30%;'>
   <div style='background-color: #1F1F1F;border: #000000;'>
           <div class=''><input style='padding: 0.4em;border: 1px solid #353939;background-color: #383838;color: #2eed91;' placeholder='Username' type='text' size='50' name='username' /></div>
           <div style='padding: 0.1em;'></div>
   <div class=''><input style='padding: 0.4em;border: 1px solid #353939;background-color: #383838;color: #2eed91;' placeholder='Password' type='password' size='50' name='password' /></div>
           <div style='padding: 0.1em;'></div>
   <div class=''><input style='float: right;text-align: center;padding: 0.2em;border: 1px solid #353939;background-color: #383939;color: #2eed91;' type='submit' value='{$cms_basic_language['login_login']}' class='btn' /></div>
   <div style='padding: 0.7em;'></div>
   </div></div></form></div>
   <font color='#4F4F4F;'><text>Login Attempts Left</text></font>&nbsp;<text><font color='#2eed91'>5</font></text>
   <div style='margin-top: -5px;margin-left: 154px;width: 17.6%;'></div></div>";
   
echo "<div style='padding: 0.6em;'></div>";

echo "<div style='margin-top: -170px;margin-left: 750px;background-color: #1F1F1F;width: 25.6%;height: 25px;'>
       <div class='animated zoomIn'><img style='margin-top: 1px;margin-left: 325px;' src='pic/closed.png' width='20' height='20'/></div>
   </div>
       <div style='margin-top: 1px;margin-left: 750px;' class='css-loginbox' >
   <div class='animated bounce'>
   <form method='post' action='takesignup.php'>
           <div style='background-color: #1F1F1F;padding: 0.5em;width: 55%;'>
   <div style='background-color: #1F1F1F;border: #000000;padding: 0.2em;'>
           <div><input style='padding: 0.4em;border: 1px solid #353939;background-color: #383838;color: #2eed91;' placeholder='Create Username' type='text' size='50' name='username' /></div>
           <div style='padding: 0.1em;'></div>
   <div><input style='padding: 0.4em;border: 1px solid #353939;background-color: #383838;color: #2eed91;' placeholder='Create Password' type='password' size='50' name='password' /></div>
           <div style='padding: 0em;'></div><div style='margin-left: 6px;' class='divider'></div>
           <div class=''><input style='padding: 0.4em;border: 1px solid #353939;background-color: #383838;color: #2eed91;' placeholder='Repeat Password' type='text' size='50' name='repeatpass' /></div>
           <div style='padding: 0.1em;'></div>
   <div class=''><input style='padding: 0.4em;border: 1px solid #353939;background-color: #383838;color: #2eed91;' placeholder='Vaild Email' type='password' size='50' name='password' /></div>
           <div style='padding: 0.1em;'></div>
   <div class=''><input type='checkbox' name='rulesverify' value='yes' /><font color='#2EED91;'>{$cms_basic_language['signup_rules']}</font></div>
   <div style='padding: 0.1em;'></div>
           <div class='QapTcha'></div>    
   <div><input style='float: right;text-align: center;padding: 0.2em;border: 1px solid #353939;background-color: #383939;color: #2eed91;' type='submit' value='{$cms_basic_language['login_login']}' class='btn' /></div>
   <div style='padding: 0.7em;'></div>
   </div></div></form></div></div></div>";

//echo "<div style='margin-top: -10px;margin-left: 265px;background-color: #4f4f4f;width: 25%;'>{$cms_basic_language['login_signup']}</div>";
  } echo cms_skin_frame();// skin templates function place inside of cms/templ/demo/basic/skins/templates/login_skin_template.php
} echo cms_skin_begins();
  // login board is your outta frame to show skin, you will learn [= 
echo "<footer>
       <script type='text/javascript' src='jquery/jquery.js'></script>
           <script type='text/javascript' src='jquery/jquery-ui.js'></script>
           <script type='text/javascript' src='jquery/jquery.ui.touch.js'></script>
           <script type='text/javascript' src='jquery/QapTcha.jquery.js'></script>
   </footer></body></html>";
} echo cms_login_board();
} // template boards function place inside of cms/templ/demo/basic/skins/templates/login_board_template.php
echo cms_template_board();
//--- End Of File ---//


if you can not program then wait for entire release.

Preview:

<?php
if ( isset($CURUSER) && isset($CURUSER['skin_plugin']) == "true" && isset($CURUSER['plugin_skin_manager']) == get_css_skin() ) {
  
  
get_template_skin(pluginmanagerskin($loginplugin));
  
 function 
cms_template_board($login) { 
     
echo "<!doctype html>
       <html lang='en'>
   <head>
   <title>Dark Asylum :: Account</title>
   <link type='text/css' rel='stylesheet' href='animate.min.css' />
   <link type='text/css' rel='stylesheet' href='css/login.css' />
   <link type='text/css' rel='stylesheet' href='css/QapTcha.jquery.css' />
   </head>"
;
 }  return 
cms_template_board($login);
}



$get->$login = "/var/www/login.php";

NOT TESTED

REQUIRED:

require_once("libs/functions/base_int.php");
if ( preg_match('base_int.php/i', $_SERVER['PHP_SELF']) ) {

  echo "<text>Who Dares Enter?</text>";
  return cms_backend_log($ip,$browser,$script);
}

edit to suit with cssplugin.php

new idea:

function title() {

} else {
if(){
}
}

does that work?
"When Darkness Shadows Your Doubts, Deep Within Us Is Our Key, Not Success But Everything" ~ Anonymous