Author |
Message |
dad7732
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Mar 18, 2007
Posts: 1242
|
Posted:
Wed Aug 18, 2010 9:23 am |
|
New users are still defaulting to HIDE Online Status. How can I make the default otherwise?
RN 2.4.0.1
Cheers |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/3234de284ee21bd39eecd.jpg)
Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Wed Aug 18, 2010 9:50 am |
|
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. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
dad7732
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 18, 2010 10:00 am |
|
Done, now we wait and see ...
Cheers |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 18, 2010 10:11 am |
|
send me a link and I will register to see if it works |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
dad7732
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 18, 2010 10:13 am |
|
Not a problem, so long as the new server has propagated the DNS to your area, it's still going - www.ufaq.org |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
dad7732
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 18, 2010 10:18 am |
|
Hmm, you're still hidden. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 18, 2010 10:30 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
dad7732
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 18, 2010 10:31 am |
|
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](modules/Forums/images/smiles/icon_wink.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 18, 2010 10:35 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
dad7732
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 18, 2010 10:41 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
dad7732
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 18, 2010 10:51 am |
|
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 |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 18, 2010 11:01 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
dad7732
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 18, 2010 11:03 am |
|
If anyone has the extra time then have at it, otherwise we can do as-is for now, no biggie. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
Site Admin
![](modules/Forums/images/avatars/Dilbert/Dilbert_-_Dogbert_King.gif)
Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Wed Aug 18, 2010 11:14 am |
|
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. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
dad7732
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 18, 2010 11:23 am |
|
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". |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 18, 2010 12:21 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
zacklk
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Mar 06, 2010
Posts: 79
|
Posted:
Fri Aug 20, 2010 7:37 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Aug 20, 2010 8:43 am |
|
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? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
zacklk
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Aug 20, 2010 7:23 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|