PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
dad7732
RavenNuke(tm) Development Team


Joined: Mar 18, 2007
Posts: 1174

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

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: 1435
Location: North Carolina

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

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.
View user's profile Send private message Send e-mail Visit poster's website
dad7732
RavenNuke(tm) Development Team


Joined: Mar 18, 2007
Posts: 1174

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

Done, now we wait and see ...

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


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

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

send me a link and I will register to see if it works
View user's profile Send private message Send e-mail Visit poster's website
dad7732
RavenNuke(tm) Development Team


Joined: Mar 18, 2007
Posts: 1174

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

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 to the forums!
View user's profile Send private message
dad7732
RavenNuke(tm) Development Team


Joined: Mar 18, 2007
Posts: 1174

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

Hmm, you're still hidden.
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


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

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

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.
View user's profile Send private message Send e-mail Visit poster's website
dad7732
RavenNuke(tm) Development Team


Joined: Mar 18, 2007
Posts: 1174

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

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
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


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

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

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.
View user's profile Send private message Send e-mail Visit poster's website
dad7732
RavenNuke(tm) Development Team


Joined: Mar 18, 2007
Posts: 1174

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

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.
View user's profile Send private message
dad7732
RavenNuke(tm) Development Team


Joined: Mar 18, 2007
Posts: 1174

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

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
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


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

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

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.
View user's profile Send private message Send e-mail Visit poster's website
dad7732
RavenNuke(tm) Development Team


Joined: Mar 18, 2007
Posts: 1174

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

If anyone has the extra time then have at it, otherwise we can do as-is for now, no biggie.
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2403
Location: Pennsylvania

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

nuken, it is already set. I think is coming from the form submitting the data. Be that new_user.php or which ever.
View user's profile Send private message Visit poster's website
dad7732
RavenNuke(tm) Development Team


Joined: Mar 18, 2007
Posts: 1174

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

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".
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


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

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

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.
View user's profile Send private message Send e-mail Visit poster's website
zacklk
Regular
Regular


Joined: Mar 06, 2010
Posts: 79

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

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
RavenNuke(tm) Development Team


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

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

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?
View user's profile Send private message Send e-mail Visit poster's website
zacklk
Regular
Regular


Joined: Mar 06, 2010
Posts: 79

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

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.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum