Nucleus Support Forum Index

Find on the forum:
any terms  all terms  Advanced Search

RSS 2.0
Browse posts: Unanswered | Mark all read

« »
Loading Nucleus FAQ ticker...
Post new topic Reply to topic
Author Message
0wn4g3
Nucleus Fan


Joined: 05 May 2006
Posts: 25

Post Posted: Fri May 19, 2006 8:23 pm   Post subject:
Reply with quote

Installed it today and it works great without any problems. Would it be possible for the member activity to show a very short link to a page that member is currently browsing?

Back to top

View user's profile Send private message
Executor
Nucleus Fan


Joined: 27 Sep 2006
Posts: 27

Post Posted: Thu Oct 05, 2006 2:19 pm   Post subject:
Reply with quote

Dunkelraum.de wrote:
Nice would be the option <%allonline%> which would show the number of total users online, wheter they are regsitered members or guests.


This doesn't work. Is there any other solution to show a total of online users? (rather they are member or not)

Back to top

View user's profile Send private message
the_wretched
Nucleus Addict


Joined: 28 Jun 2006
Posts: 57

Post Posted: Thu Feb 15, 2007 7:41 am   Post subject:
Reply with quote

hi there,

i have a small question in advance. i havenīt tried this plugin yet, i am actually looking for a plugin which displays the online status of the team members only - in order to give the visitors and "normal" members a hint who is online and ready to help for questions or a short chat.
it would be also useful for the team members themselves because we are updating the frontpage pretty often and to avoid double-postings it would be useful to see if someone is already there who can handle it.

short version of my question: could i use the skinvar
Code:
<%Online(team)%>
as well?

thanks for answering, i just donīt want to install it to see that i canīt use it for my intention.

sorry for my english.
t_w

_________________
native tongue: german; nucleus: v.3.2.4

Back to top

View user's profile Send private message Visit poster's website
sooz
Nucleus Disciple


Joined: 24 Apr 2007
Posts: 114

Post Posted: Wed Jan 09, 2008 5:49 am   Post subject:
Reply with quote

Code:
echo "<li>$n. <a href=\"$memberlink\">$membername</a> (". date('d.m.y - H:i:s', $row->timestamp + $this->getOption('timeoffset')*3600);


I have never been very good at this time thing, very confusing to me. I need for the code in Online plugin to reflect the date and time the way my members are used to seeing in the US, such as Jan 8, 08 7:01 pm

Could someone please tell me what to change this code to?

Also does anyone know of a Nucleus instruction for how offset works? most plugins have something like this 0.0 I have no clue what that means and what I need to change it to in over all blog configuration or plugins, so I left it at 0.0 or whatever it was set to.

I thought I read something about having to figure out first what your server host offset is but I don't know what that means exactly.

I am in no hurry for an answer, it's been set to the default for as long as I have been using Nucleus but I would like to understand this once and for all so I can set these things correctly.

_________________
Nucleus V 3.31 Laila skin
Maxthon Browser v 1.6.3
Apache 2.2.6 (Unix) PHP 5.2.5

Back to top

View user's profile Send private message
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Wed Jan 09, 2008 3:38 pm   Post subject:
Reply with quote

The offset is useful if you want the times on your blog to appear in a different timezone than the server's clock. For instance, if my site is being hosted on a server in California set to use Pacific time, but I want my entries to have dates in the eastern time zone, I would set the offset to 3.0.

As for your date formatting, try this:
Code:
echo "<li>$n. <a href=\"$memberlink\">$membername</a> (". date('M j, Y g:i:s a', $row->timestamp + $this->getOption('timeoffset')*3600);


You can see more about the available formatting here: http://us.php.net/manual/en/function.date.php

Seems like this (date format) would be a good candidate for a plugin option.

Back to top

View user's profile Send private message Visit poster's website
sooz
Nucleus Disciple


Joined: 24 Apr 2007
Posts: 114

Post Posted: Wed Jan 09, 2008 5:26 pm   Post subject:
Reply with quote

Thank you as always ftruscot that worked perfectly. and thank you for the extra link informaton.
_________________
Nucleus V 3.31 Laila skin
Maxthon Browser v 1.6.3
Apache 2.2.6 (Unix) PHP 5.2.5

Back to top

View user's profile Send private message
Petlife
Nucleus Newbie


Joined: 27 Mar 2012
Posts: 4
Location: Denmark

Post Posted: Wed Mar 28, 2012 9:22 am   Post subject: small tweek
Reply with quote

Dunkelraum.de wrote:
Nice would be the option <%allonline%> which would show the number of total users online, wheter they are regsitered members or guests.


I made at little tweek that shows the total count af people onlin for the day. shown by a number and nothing more..

just add following code to the NP_online.php under the this code
Code:
/****************************************************         
   SHOW DATA
*****************************************************/
      switch($arg) {

Add this
Code:
/* show today count total */
         case 'today_visit':
            $query = mysql_query("SELECT DISTINCT member FROM " . sql_table('plug_online') . " WHERE member!='0' AND timestamp>$today");
            $members = mysql_num_rows($query);
 
            $query = mysql_query("SELECT DISTINCT uniqueid FROM " . sql_table('plug_online') . " WHERE member='0' AND timestamp>$today");
            $visitors = mysql_num_rows($query);
            // total today
            $total = $members + $visitors;
 
            echo $total . " ";
                     
         break;
 


Then use Online today: <%Online(today_visit)%> as the skinVar

Back to top

View user's profile Send private message
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Wed Mar 28, 2012 1:00 pm   Post subject:
Reply with quote

Cool. Thanks.
_________________
Is your question not solved yet?
Search our FAQ,
read the Documentation, or
browse the list of available plugins.

Check out my plugins

Back to top

View user's profile Send private message Visit poster's website
Post new topic Reply to topic
Display posts from previous:   

Goto page Previous  1, 2, 3, 4, 5

Page 5 of 5

All times are GMT + 1 Hour

Jump to:  

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

Powered by phpBB © 2001, 2002 phpBB Group