Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
draxx
Involved
Involved


Joined: Nov 19, 2003
Posts: 282

PostPosted: Sat Oct 05, 2013 1:44 am Reply with quote

///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?
 
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sat Oct 05, 2013 11:44 am Reply with quote

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. 
View user's profile Send private message
draxx
PostPosted: Sat Oct 05, 2013 2:55 pm Reply with quote

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
PostPosted: Sat Oct 05, 2013 11:03 pm Reply with quote

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);
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©