Monthly Archives: February 2009
Hi,
with the opening of the ipsilon developments site, i was thinking to develop several products (like templates, flex components, flash app’s) to sell it there, and like i was short of time, i made a template to sell it today
you can see it here
it’s not the best quality, but t’s cheap, you can get it for only $20 bucks, and it’s a unique theme
are coming also a new and fresh design to the site also
Regards,
Shadow.
Random Posts
Hi,
today it’s my birthday
i hope i can enjoy the day, anyway, lack the presence of valuable people in my life (like my brother).
anyway, if you want to wish me a happy birthday, make a comment !
Regards,
Shadow.
Related Post
Hi,
no it’s not my birthday, it’s the blog birthday
has been passed a year from the first post made here, in that time i write it in spanish, and i changed it to english for 2 reasons:
1) get more people read the blog
2) my english it’s horrible xD and i’m using this like excersise to improve it (as you can see, i dont improve anything in a year
)
i dont have anything else to say, if you want to give me a gif, you have the pledge button in the right sidebar if you want to donate something
for many many years more, yeah
Regards,
Shadow.
Random Posts
Hi,
i’m doing a lot of things in wordpress the last time
my last project was the integration of a script what i made before in a wordpress blog. the script are a custom shopping cart, and it use $_SESSION vars to manage products, and a unique ID for the cart.
so i thinked it going to be easy, a simple wrap plugin what call’s to the respective php. my surprise has been when i tested it and all the sessions are empty WTF?
so searching over the net for a solution, i get what it’s the problem. the thing it’s wordpress erase all the $_SESSION vars calling to a function named wp_unregister_GLOBALS and it’s defined in wp-settings.php
if you have the register_globals off, you dont need to worry, because then the function dont erase the vars but if not, you need to hack the function.
so, change this:
$noUnset = array(‘GLOBALS’, ‘_GET’, ‘_POST’, ‘_COOKIE’, ‘_REQUEST’, ‘_SERVER’, ‘_ENV’, ‘_FILES’, ‘table_prefix’);
into this:
$noUnset = array(‘_SESSION’,'GLOBALS’, ‘_GET’, ‘_POST’, ‘_COOKIE’, ‘_REQUEST’, ‘_SERVER’, ‘_ENV’, ‘_FILES’, ‘table_prefix’);
after this, in your plugin, add a hook to fire the session_start() function:
add_action(‘init’,'sessionset’);
function sessionset(){
if(!session_id()){
session_start();
}
}
with that you have the all your $_SESSION vars available in your plugin
i hope you find this useful
Regards,
Shadow.











