Latest Shouts In The Shoutbox -- View The Shoutbox · Rules
  


Profile
Personal Photo

No Photo

Options
Custom Title
Custom title
Personal Info
Location: No Information
Born: No Information
Website: No Information
Interests
No Information
Other Information
Statistics
Joined: 5-August 11
Status: (Offline)
Last Seen: May 7 2016, 03:40 PM
Local Time: No Information
92 posts (0 per day)
( 42.20% of total forum posts )
Contact Information
AIM No Information
Yahoo No Information
GTalk No Information
MSN No Information
SKYPE No Information
Message: Click here
Email: Click Here
Signature
View Signature

gunblaza

Admin

Topics
Posts
Comments
Friends
My Content
Nov 12 2011, 05:14 PM
I am leaving for Air Force Basic Training so there will be no official updates to Shift for at least 3 months. Once I get back I will start working on Shift 1.1 and look ahead for the future.
Nov 10 2011, 02:21 PM
Ajax Sign In/Sign Out
This Shift Plugin removes the redirect pages for Shift's quick sign in feature and for signing out.

Installation
Place the following code above "<div id='overlay'></div>".
CODE
 <script>
 /* Shift Skin Framework [Official Plugin]
  * Ajax Sign In/Sign Out
  * http://shift.b1.jcink.com
  */
 
 Shift.plugin.ajaxSignIn = {
  init: function() {
   $(function() {
    $("#popup-login form").submit(function(e){
     e.preventDefault();
     Shift.plugin.ajaxSignIn._in();
    });
    $("#userbar .signout").click(function(e){
     e.preventDefault();
     Shift.plugin.ajaxSignIn._out();
    });
   });
  },
  _in: function(){
   var _username = $('#popup-login form input[name=UserName]').val(),
    _password = $('#popup-login form input[name=PassWord]').val();
   
   if(!_username || !_password){
    Shift.func.notice("Incorrect Username or Password.");
   } else {
    $.post("index.php?act=Login&CODE=01&CookieDate=1", $("#popup-login form").serialize(), function(data){
     if(!$('.pformstrip:contains("The following errors were found")',data).length){
      location.reload();
     } else {
      Shift.func.notice("Incorrect Username or Password.");
     }
    });
   }
  },
  _out: function(){
   $.post("index.php?act=Login&CODE=03&key="+ Shift.globals["auth_key"], function(data){
    location.reload();
   });
  }
 };
 Shift.plugin.ajaxSignIn.init();
 </script>


Updates
N/A

Please register to report bugs or post feedback. Thank you.
Nov 2 2011, 09:27 AM
Shift has a very easy to use cache system that uses localStorage and sessionStorage* functionality.

It also supports the ability to cache JSON, which can be very useful for many applications.

Below is the list of Shift.cache functions.

CODE
Shift.cache.isSupported();
Shift.cache.set(key, value);
Shift.cache.set(key,value,"json");
Shift.cache.fetch(key);
Shift.cache.fetch(key,"json");
Shift.cache.remove(key);


Key is the name of the cache that you are storing and value is the content.

For example
CODE
Shift.cache.set("Hello", "Hello world");
alert(Shift.cache.fetch("Hello"));


This will output an alert that says "Hello World". To remove that cache use
CODE
Shift.cache.remove("Hello");


JSON caching works the same way but involves a little more code.

CODE
var someObj = {
hello: "Hello",
world: " World"
};
Shift.cache.set("Hello", someObj, "json");
var someVar = Shift.cache.fetch("Hello", "json");
alert(someVar.hello + someVar.world);


This will output "Hello World" also.

*session storage is currently not supported until Shift 1.1
Oct 29 2011, 09:48 AM
[Shift] Alpha Plus (Select the skin in the skin selector to preview)
I know many people loved Alpha Plus just for the skin itself. So I decided to convert the Skin to the SSF.

Installation
Download the attachment in this post and import it as a new SKIN SET in the Admin CP.

Change log
N/A
Oct 28 2011, 02:22 PM
The SSF drop downs are very easy to use. They also don't require JS to create them.

Lets take the following code for example
QUOTE
    <div class='dropdown-container' id='sometest'><a id='dropdown-test' class='click'>A test</a>
    <div class='dropdown-content' id='dropdown-content-test'>
      <div class='dropdown-row'>
      Hello world
      </div>

    </div>
    </div>


The blue text is the name of the drop down, and the red text is the content.

Remember to always put the drop down content inside .dropdown-container. Also to let Shift know that you are calling a drop down you need to make sure that the .dropdown-content is inside the #dropdown-content-id element.

It may seem complicated but you will get used to it rather quick.

Also remember that the drop downs have smart positioning. This means Shift will place the drop down where it fits. It should never go off screen. Unless the window is really small and requires an ant to see it.
Last Visitors


Sep 12 2013, 07:32 PM




Aug 3 2013, 12:02 PM




Jul 8 2013, 04:54 PM



Comments
gunblaza
test
Oct 18 2011, 10:39 AM
Add Comment