NEW CSS CONTROL WITH PHP APPROACH!

Started by wizkid08, January 03, 2015, 04:32:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

autotron

#15
Quote from: wizkid08 on February 06, 2015, 02:22:01 PM
That is your input thanks for your time, I am not going to argue that I am some special programmer or a gift from god lol ... I have placed it out there so let your functional brain do the thinking outside the box ;)

ummm wow, now your just getting outright insulting and there is no need for that shit here.
there is no outside the box thinking required really, its rubbish plain and simple, you act like you come up with some new groundbreaking code here, hate to burst your bubble, but its just long winded version of code thats been used in tbdev, TT, U232 for years.
Go back to school, come back when you have something new

wizkid08

That is your input thanks for your time, I am not going to argue that I am some special programmer or a gift from god lol ... I have placed it out there so let your functional brain do the thinking outside the box ;)
"We can only see what's in front of us so remember to live each day like it is your last breath"

autotron

Sorry, I still dont see whats special here...what I do see is a simple class check system used widely in this source, you have changed all the default variables like $INSTALLER09 to $u232 and $HTMLOUT to $hout to make it look different but ion reality its the same basic pish, this could easily be accomplished with 2 or 3 lines of code with out the use of a lot of if - else statements and hardcoded css names.

QuoteI agreed to work with u-232 for free so my input should count somewhere without needing to explain myself to this community right?

we all do this for free, and every ones input is just as values whether they are pro coder or just new to coding

wizkid08

No this will work like this mate:


if ($CU['classlevel'] >= UC_SCENE_FIRT_LINE_SUPPORT) {


     if ( file_exists( U232_BASED_FILE . DIRECTORY_SEPARATOR . 'css3' . DIRECTORY_SEPARATOR . 'gravity.css')) {

      $hout = body_framework_beta();
} else {

     $hout = body_framework();
     # $U232['stylesheet'] = isset($CURUSER['stylesheet']) ? "{$USER['stylesheet']}.css" : $U232['stylesheet'];
}
}

     if ($CU['classlevel'] === UC_SCENE_DONOR ) {

if (file_exists( U232_BASED_FILE . DIRECTORY_SEPARATOR . 'css3' . DIRECTORY_SEPARATOR . 'earthquake.css')) {
 
       $hout = body_framework_star();
 
  } else {

     $hout = body_framework();
     # $U232['stylesheet'] = isset($CURUSER['stylesheet']) ? "{$USER['stylesheet']}.css" : $U232['stylesheet'];
}

}



which means that everyone gets the default theme you design ( megatron.css ) then once they go into there settings they can change there theme and that's when it depends on what class your in for it too show the list of custom themes. Default theme is what all members/staff get upon registration, I will work on this when I get free time again a tad busy lately with life so I have placed this on hold ... stupid work & life expenses lol.

I agreed to work with u-232 for free so my input should count somewhere without needing to explain myself to this community right? This code I build will work for the sources that have been released never the less without the coder noticing it doesn't belong there or anywhere on the scripts but I do however have another approach for myself so yeah that is what I ment about "my sole project". I love this source and it's freedom just how any source on the internet should be if your going to develop.

Peace Out!
Th3W1zK1d

P.S
Sorry if I offended anyone with my previous comments was not intended to it was to get you to see I am aiming high for goals and that I don't want to disappoint you all with my programming knowledge. I am sorry 
"We can only see what's in front of us so remember to live each day like it is your last breath"

autotron

so basically in a nut shell all this does is depending on your class gives the ability to change the css for a given template so it would be different colors etc?
we already have a theme like that somewhere, RogueSurfer designed it years ago but was not set for classes, all could change the css via a bar on status bar.
you say this is your sole project but yet you agreed to join the design team here, is this still something you wish for or do you prefer to work on your own with this? just let me know.
A bunch of drones??? excuse me? i do take offense to that, the design/developer team is made up of several very talented people all with different abilities and backgrounds, if you look at this code from the start codex release to this you will see that there has been a lot of "outside the box" thinking in the design of it, we do however refrain from using a my way or no way attitude and build this code to suit ALL end users not just a limited few, we have to stick to a style where the end user can easily make changes to make their site unique

wizkid08

Mine will work based on your level & will improve the experience of the website but you can see all the themes in your profile  depends if user above e.g

user - default.css
power - entertainment.css
donor - custom.css
etc

I don't expect anyone to understand my approach as the code is in beta, but I do see it could be another way of using the template system already in play as I don't see many people putting out their style of programming it just look like your all drones no offence intended just a point. I joined this site to show people my talents and push my knowledge above my current knowledge. 

This is my sole project but sharing different approaches makes another mans brain think outside the box for a change
"We can only see what's in front of us so remember to live each day like it is your last breath"

son

I thought you were on the design team, and last when we spoke you were going to look into sprites, so that we can get them done where we can, i'm still awaiting your reply.

The approach thats being used is Bootstrap for U-232 frame work, but hey if you want to make or continue with changing something that is already unique to u-232, but to give user's a choice go for it, you may realize that this will be your sole project, my understanding is that the template system that u-232 uses now may not be changed, it certainly don't need to be to have multi-style css files.

The CSS template control system your presenting i really don't see the need, if you want to use css your still going to need xhtml5/html5 to be able to use it which is already being done now and its not hard to accommodate style/CSS changes with the one in place now with very minor PHP changes.

Please explain the difference with yours and the one in place now.

Quote from: wizkid08 on January 07, 2015, 07:45:17 AM
I should be releasing some pretty sweet approaches on how u-232 should look like if I was part of the development team so you can understand programming better.  I am very eager to share alot of snippets or full modules with full instructions, I know that u-232 has its style which I will try hard not to cramp & just hope you all see my code style in the future builds. I know having a diploma means nothing to many people that's why I am happy to share my code and allow you to make money off its object of purpose ( M.I.T License) just be kind and actually re-program it if your going to sell it you seedy fook.

I am currently working on a HTML5 + Pure CSS3 Login Design + re-program the php  & the mysql side, which will be my next release if all falls into place with my patience and eagerness so you can all enjoy my code within your future sites. ( if a development team member could teach me about memcache I could upgrade with memcache not a problem thanks )

I give credit when due inside of my post & inside my scripts I will not use direct names just the sources I used that are open source, as we will all know that I am not trying to profit from my posted programmed scripts. Have a wonderful day & night!  :D

Th3WizKid08
My Specs
   xubuntu Desktop 20.04 LTS 64Bit
   MariaDB Ver 15.1 Distrib 10.1.38
   Zend OPcache v7.0.33-1
   PHP 7.0.18-0
   Apache 2.4.29
   U-232
   PHP Tracker

"Simplicity is the ultimate sophistication"

wizkid08

I should be releasing some pretty sweet approaches on how u-232 should look like if I was part of the development team so you can understand programming better.  I am very eager to share alot of snippets or full modules with full instructions, I know that u-232 has its style which I will try hard not to cramp & just hope you all see my code style in the future builds. I know having a diploma means nothing to many people that's why I am happy to share my code and allow you to make money off its object of purpose ( M.I.T License) just be kind and actually re-program it if your going to sell it you seedy fook.

I am currently working on a HTML5 + Pure CSS3 Login Design + re-program the php  & the mysql side, which will be my next release if all falls into place with my patience and eagerness so you can all enjoy my code within your future sites. ( if a development team member could teach me about memcache I could upgrade with memcache not a problem thanks )

I give credit when due inside of my post & inside my scripts I will not use direct names just the sources I used that are open source, as we will all know that I am not trying to profit from my posted programmed scripts. Have a wonderful day & night!  :D

Th3WizKid08
"We can only see what's in front of us so remember to live each day like it is your last breath"

wizkid08

#7
I am currently just using u-232 non memcache but once I get the hang of u232 source better then I will be able to send you a link preview of my developments in play or I could write up a basic guide on how to integrate them into your u-232 base.

my aim is something like this approach:

e.g config:

define('U232_BASED_FILE', DIRECTORY_SEPARATOR);

I am sure their could be another approach but this is just a quick idea ;)


Quote from: swizzles on January 04, 2015, 04:30:35 PM
Hi Wizkid08

These snippets do look interesting. Do you or are you willing to show us a u232 site utilizing this template system. A link would be good ;D
"We can only see what's in front of us so remember to live each day like it is your last breath"

Tundracanine

This does look cool, be nice to give members more choices on look without having to remake entire themes.
If wanting support help please put bare min info like
Os:
U-232 Version:
Php Version:
Tracker type: like xbt or php
Saves on asking more questions just so people can help someone.

swizzles

Hi Wizkid08

These snippets do look interesting. Do you or are you willing to show us a u232 site utilizing this template system. A link would be good ;D

wizkid08

Template CSS3 System Module

<?php
# The MIT License (MIT)
# Copyright (c) 2015 U-232 [Edited By WizKid08]

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

    /*
 Credits Due: U-232 V1, TBDEV, PIMPMYLOG

     if ($CURUSER)
    {
    $TBDEV['stylesheet'] = isset($CURUSER['stylesheet']) ? "{$CURUSER['stylesheet']}.css" : $TBDEV['stylesheet'];
    }

      if ( file_exists( U232_BASED_FILE . DIRECTORY_SEPARATOR . 'mine' . DIRECTORY_SEPARATOR . 'css3' . DIRECTORY_SEPARATOR . 'gravity.css') ) {
  
 $hout = '<style>';
 $hout =  file_get_contents( U232_BASED_FILE  . DIRECTORY_SEPARATOR . 'mine' . DIRECTORY_SEPARATOR . 'css3' . DIRECTORY_SEPARATOR . 'gravity.css' );
 $hout = '</style>';  
  }
  
   else {
   
   $hout = '<link rel='stylesheet' href='mine/css3/zombie.css';
   
   
   }
   
*/   
Demo Method:

 if ($CU['classlevel'] >= UC_SCENE_FIRT_LINE_SUPPORT) {
 
 
     if ( file_existsU232_BASED_FILE DIRECTORY_SEPARATOR 'css3' DIRECTORY_SEPARATOR 'gravity.css')) {
 
      $hout body_framework_beta(); 
 } else {
 
     $hout body_framework();
     # $U232['stylesheet'] = isset($CURUSER['stylesheet']) ? "{$USER['stylesheet']}.css" : $U232['stylesheet'];
 }
}

     if (
$CU['classlevel'] === UC_SCENE_DONOR ) {
 
 if (file_existsU232_BASED_FILE DIRECTORY_SEPARATOR 'css3' DIRECTORY_SEPARATOR 'earthquake.css')) {
  
       $hout body_framework_star();
  
  } else {
 
     $hout body_framework();
     # $U232['stylesheet'] = isset($CURUSER['stylesheet']) ? "{$USER['stylesheet']}.css" : $U232['stylesheet'];
 }  
 
 }
?>

"We can only see what's in front of us so remember to live each day like it is your last breath"

autotron


swizzles

Hi WizKid08

I would love to see some of your work

wizkid08

Hello Developers,

I am working on a project where I just want to program for u-232 overall well my approach is different in the style that u-232 runs by but maybe my approach could win a few honest people votes. I am sure the dev team and the founders will appreciate my skills in the future, but these are just beta modules so use at your own risk but I will show how to integrate my beta modules when final code is ready if you can think of a way then your more then welcome to join me in this new adventure to show & teach others about the freedom with u-232. I pride on providing you all with premium quality in the programming language & visual design.


<?php
# The MIT License (MIT)
# Copyright (c) 2015 U-232 [Edited By WizKid08]

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

 # Redeveloped By WizKid08
 # Thanks pimpmylog

  # Old Code
  /*
if ( file_exists( PML_CONFIG_BASE . DIRECTORY_SEPARATOR . 'css' . DIRECTORY_SEPARATOR . 'config.inc.user.css' ) ) {
echo '<style>';
echo file_get_contents( PML_CONFIG_BASE . DIRECTORY_SEPARATOR . 'css' . DIRECTORY_SEPARATOR . 'config.inc.user.css' );
echo '</style>';
} else {
echo '<link rel="stylesheet" href="css/config.inc.css">';
}
  */


 
# ------------------

      
if ( file_existsU232_BASED_FILE DIRECTORY_SEPARATOR 'mine' DIRECTORY_SEPARATOR 'css3' DIRECTORY_SEPARATOR 'gravity.css') ) {
  
 $hout '<style>';
 $hout =  file_get_contentsU232_BASED_FILE  DIRECTORY_SEPARATOR 'mine' DIRECTORY_SEPARATOR 'css3' DIRECTORY_SEPARATOR 'gravity.css' );
 $hout '</style>';  
  }
  
   else {
   
   $hout '<link rel='stylesheet' href='mine/css3/zombie.css';
   
   
   }
  
?>



The above script will be used for a theme addon so you can build multi css files.

I have a web development diploma & enjoy building modules and themes.
Thanks, Wizkid08   
"We can only see what's in front of us so remember to live each day like it is your last breath"