Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
dad7732
RavenNuke(tm) Development Team



Joined: Mar 18, 2007
Posts: 1242

PostPosted: Wed Aug 18, 2010 9:23 am Reply with quote

New users are still defaulting to HIDE Online Status. How can I make the default otherwise?

RN 2.4.0.1

Cheers
 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Wed Aug 18, 2010 9:50 am Reply with quote

In Your_Account/public/new_finish.php find

Code:
$user_allow_viewonline = (isset($user_allow_viewonline)) ? intval($user_allow_viewonline) : 0;


and change the 0 to a 1 and that should do it.

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
dad7732







PostPosted: Wed Aug 18, 2010 10:00 am Reply with quote

Done, now we wait and see ...

Cheers
 
nuken







PostPosted: Wed Aug 18, 2010 10:11 am Reply with quote

send me a link and I will register to see if it works
 
dad7732







PostPosted: Wed Aug 18, 2010 10:13 am Reply with quote

Not a problem, so long as the new server has propagated the DNS to your area, it's still going - [ Only registered users can see links on this board! Get registered or login! ]
 
dad7732







PostPosted: Wed Aug 18, 2010 10:18 am Reply with quote

Hmm, you're still hidden.
 
nuken







PostPosted: Wed Aug 18, 2010 10:30 am Reply with quote

Well, put this
Code:
$user_allow_viewonline = '1';


in new_finish.php before
Code:
$sql = 'INSERT INTO ' . $user_prefix . '_users '


and everyone that registers will be set to view online.
 
dad7732







PostPosted: Wed Aug 18, 2010 10:31 am Reply with quote

Must be the fact that although RN 2.4.0.1 files were loaded that some of the files had to be overwritten because of configuration issues from the old site. There were several tables that were imported over existing tables as well. Not gonna lose any sleep over it nonetheless. I can make do with the cake minus a little icing. Wink
 
nuken







PostPosted: Wed Aug 18, 2010 10:35 am Reply with quote

Or you could put

Code:
 if (!isset($user_allow_viewonline)) {

$user_allow_viewonline = '1';
}


in there so if it is not set, the default will be set to view.
 
dad7732







PostPosted: Wed Aug 18, 2010 10:41 am Reply with quote

Both didn't work, still (H) .. Something else is blocking/overriding that setting, could be anywhere I made previous changes on the old site. Gonna be a little too difficult to ferret that out IMHO, so thanks.
 
dad7732







PostPosted: Wed Aug 18, 2010 10:51 am Reply with quote

Interesting note ...

The line you mentioned to edit in the first reply was there but in the new_finish.php from RN 2.4.0.1 is not there. File date is 11/2009 in the distro.

That line IS in the file that is loaded on the new site .. puzzle

At any rate the changes suggested don't work in either new finish file.

Never mind .. the line IS there after I re-extracted the distro. Dunno how I changed it beacause the filedate is 11/19/2009. But it still doesn't work ..


Last edited by dad7732 on Wed Aug 18, 2010 11:02 am; edited 1 time in total 
nuken







PostPosted: Wed Aug 18, 2010 11:01 am Reply with quote

That is weird. The first one I mentioned should have done it unless it is already being set in one of the other new_ files in the public folder. Maybe someone else knows more about what may be going on. Sorry dad.
 
dad7732







PostPosted: Wed Aug 18, 2010 11:03 am Reply with quote

If anyone has the extra time then have at it, otherwise we can do as-is for now, no biggie.
 
Palbin
Site Admin



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

PostPosted: Wed Aug 18, 2010 11:14 am Reply with quote

nuken, it is already set. I think is coming from the form submitting the data. Be that new_user.php or which ever.

_________________
"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
dad7732







PostPosted: Wed Aug 18, 2010 11:23 am Reply with quote

In the table: view_online = 0 for new users, now all I have to figure out is what is telling it to set to "0". The new_finish.php is set to "1". Must be somewhere else then. I have it disabled in the user configuration under Default Fields. But it still defaults to "0".
 
nuken







PostPosted: Wed Aug 18, 2010 12:21 pm Reply with quote

I thought so to Palbin, but it looks like if it is disabled in edit users it does not send the hidden fields for the user_allow_viewonline. I must be missing something.
 
zacklk
Regular
Regular



Joined: Mar 06, 2010
Posts: 79

PostPosted: Fri Aug 20, 2010 7:37 am Reply with quote

hi nuken. i got the same problem after i install your "Tricked Out Login module. then after i check this post i found that in ur original code

Code:
$user_allow_viewonline = (isset($user_allow_viewonline)) ? intval($user_allow_viewonline) :


is set to "0". just thought i should let you know. and hey thanks for that great module.
 
View user's profile Send private message
nuken







PostPosted: Fri Aug 20, 2010 8:43 am Reply with quote

Thank you. Did you find the install instructions helpful with the Janrain configuration?

Edit:

Also, are you using RavenNuke 2.40.01? The user being hidden issue was fixed in that release. Testing the mod in 2.40.01 it work fine. Just wondering if you may be using 2.40.00?
 
zacklk







PostPosted: Fri Aug 20, 2010 7:23 pm Reply with quote

yes it was very useful. and yes im suing 2.40.00. did lot of modifications so didnt update it to ravennuke 2.40.01. will do after a while. thanks for all ur great modules.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

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 ©