Author |
Message |
draxx
Involved
Joined: Nov 19, 2003
Posts: 282
|
Posted:
Sat Oct 05, 2013 1:44 am |
|
///function yacookie($setuid, $setusername, $setpass, $setstorynum, $setumode, $setuorder, $setthold, $setnoscore, $setublockon, $settheme, $setcommentmax)
Please tell me what some of these things are
: Userid
: Nickname
: Password
: SetStorynum ???What is this?
: Setumode ???What is this?
: SetOrder ???What is this?
: Setnoscore ???? What is this?
: Setublockon ??? Is this does the user have a block?
: settheme ??? - leave blank for default ???
: Setcommentmax ??? What is this? |
|
|
|
|
Palbin
Site Admin
Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Sat Oct 05, 2013 11:44 am |
|
I first have to preface that I cannot guarantee without really looking into it if these settings are even used anymore since they are also stored in the user table. I also believe these have all been removed in our next release. These are all setting set by the user from within Your Account.
$SetStorynum - Number is stories/news to show on front page
$Setumode - Format to display comments in stories (nested, thread, ....)
$SetOrder - I think this is whether the stories are ascending or descending according to date.
$Setnoscore - I think this determines if the user sees the "score" of a story
$Setublockon - if a users "user" block is active
$settheme - What theme the user has selected
Setcommentmax - Max length of comment to show before it is cut off. |
_________________ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. |
|
|
|
draxx
|
Posted:
Sat Oct 05, 2013 2:55 pm |
|
Thanks Palbin
So I have successfully taken all the data from a users facebook account and have stuck it into a temp table and from there placed it into the nuke_users table. Vuwalllah - they have created an account with facebook.
The last step and the problem is I need to set a site cookie immediately after the copy of that data has taken place.
I assume if I use this function it should do the trick? Yes?
function yacookie($setuid, $setusername, $setpass, $setstorynum, $setumode, $setuorder, $setthold, $setnoscore, $setublockon, $settheme, $setcommentmax) {
Is there a better way? |
|
|
|
|
draxx
|
Posted:
Sat Oct 05, 2013 11:03 pm |
|
Okay that did not work. I've gone so far as to do this and - well - its like there is a cookie there for 1 click ... if I click again its gone.
$setuid = $nuke_users_id;
$setusername = $rand_id;
$setpass = $new_pass;
$setstorynum = "10";
$setumode = "nested";
$setuorder = "0";
$setthold = "0";
$setnoscore= "0";
$setublockon ="0";
$settheme ="";
$setcommentmax = "4096";
$ccookiepath = "/";
$ccookiedomain = ".mymidohio.net";
Code:
/// yacookie($nuke_users_id, $rand_id, $new_pass, $setstorynum, $setumode, $setuorder, $setthold, $setnoscore, $setublockon, $settheme, $setcommentmax);
$ccinfo = base64_encode($setuid . ':' . $setusername . ':' . $setpass . ':' . $setstorynum . ':' . $setumode . ':' . $setuorder . ':' . $setthold . ':' . $setnoscore . ':' . $setublockon . ':' . $settheme . ':' . $setcommentmax);
//setcookie('user', $info, time() + $ya_config['cookietimelife'], $ya_config['cookiepath']);
setcookie("user", $ccinfo, time()+2592000, $ccookiepath);
|
|
|
|
|
|
|