RSS 2.0
Browse posts:
Unanswered |
Mark all read
| Author | Message | ||||||
|---|---|---|---|---|---|---|---|
|
faceh Nucleus Expert ![]() Joined: 20 Apr 2003 Posts: 404 |
maybe this is just me, but the plugin stores "non-members" as -1 in my SQL table, instead of 0 - so everyone who visits the site is a member... strange... maybe the latest version of nucleus changed non-members to be stored as ID -1 instead of 0 ? i dont know. UPDATE: i think thats it - i went through the NP_Online plugin, and replaced all comparisons of WHERE member='0' to WHERE member='-1' i cant remember all the changes i made, there were quite a few, but i'll leave it to the author of the plugin to update - otherwise it gets confusing. Theres also some stuff about "showonline" in there which doesnt seem to be getting used... i dont completely understand this plugin _________________ http://www.faceh.com - faceh.com Webdesign http://www.jetblag.com - Japan Blogs http://www.oldsushi.com - Huge Japan community http://oldsushi.com/blurb - Funny and interesting shit from Japan |
||||||
|
|
|||||||
|
tunupo Nucleus Fan Joined: 11 Sep 2005 Posts: 35 Location: Switzerland |
Hi Faceh, Did you see the posting from kg. This little hack helped me to get the plugin working again. Although I don't know how I can get the time offset issue solved.
|
||||||
|
|
|||||||
|
faceh Nucleus Expert ![]() Joined: 20 Apr 2003 Posts: 404 |
timeoffset, as in the time displayed when the user is online? i added this install option:
and then changed line 195 to this:
displays time correctly. as for the quick dirty fix if ($user<0) $user=0;, thats basically what i did but instead i replaced them all :S i didnt think of that haha Theres still a lot of code in that plugin that im sure doesnt need to be there... _________________ http://www.faceh.com - faceh.com Webdesign http://www.jetblag.com - Japan Blogs http://www.oldsushi.com - Huge Japan community http://oldsushi.com/blurb - Funny and interesting shit from Japan |
||||||
|
|
|||||||
|
tunupo Nucleus Fan Joined: 11 Sep 2005 Posts: 35 Location: Switzerland |
@faceh The offset as you showed the code for, works perfect. The plugin displays now the correct time and I can use it on my page. I putted a link to your site. Thanks a lot! |
||||||
|
|
|||||||
|
faceh Nucleus Expert ![]() Joined: 20 Apr 2003 Posts: 404 |
no problem. _________________ http://www.faceh.com - faceh.com Webdesign http://www.jetblag.com - Japan Blogs http://www.oldsushi.com - Huge Japan community http://oldsushi.com/blurb - Funny and interesting shit from Japan |
||||||
|
|
|||||||
|
faceh Nucleus Expert ![]() Joined: 20 Apr 2003 Posts: 404 |
yer, so i've lost faith in the online plugin... i just dont think it works. having checked my server logs for recent visitors, there were 4 new visitors to my site since the start of the new day (12:00am) - however the NP_online plugin displayed 0 visitors... maybe something i have broken? anybody else having this problem? _________________ http://www.faceh.com - faceh.com Webdesign http://www.jetblag.com - Japan Blogs http://www.oldsushi.com - Huge Japan community http://oldsushi.com/blurb - Funny and interesting shit from Japan |
||||||
|
|
|||||||
|
0wn4g3 Nucleus Fan Joined: 05 May 2006 Posts: 25 |
Is there anyway for someone to run through the code and perhaps update it to reflect whats available to use now? Perhaps also clean up the code so it reflects Nucleus CMS3.22 a bit better than what it does now. |
||||||
|
|
|||||||
|
kg Nucleus PhD Joined: 01 Jun 2005 Posts: 541 Location: Germany |
I have built a new version with the discussed changes of the code. You can find the version 1.6 in the wiki: NP_Online. I have also uploaded a zip file for an easier installation. Now the further improvement and discussion can start. _________________ My plugins: Nucleus Plugins from kg My Weblogs: kgblog.de | digi-foto-blog.de |
||||||
|
|
|||||||
|
Dunkelraum.de Nucleus Disciple Joined: 03 Mar 2006 Posts: 168 Location: Germany |
Nice would be the option <%allonline%> which would show the number of total users online, wheter they are regsitered members or guests. _________________ Chris Dunkelraum.de Redenschreiber |
||||||
|
|
|||||||
|
0wn4g3 Nucleus Fan Joined: 05 May 2006 Posts: 25 |
Awesome glad to see that work and enhancement of this plugin is still taking place |
||||||
|
|
|||||||
|
All times are GMT + 1 Hour
You cannot post new topics in this forum |
|||||||