PDA

View Full Version : Currently Active Members/Users: Shows Current Activity Location...


princeedward
03-14-2010, 03:13 PM
hi guys...hope anyone can correct me or guide me on this please...kinda newbie or still trying to learn some correct coding here...:p

Tried to show the current activity or whereabout when we mouse hover to the username of current online or active members on the WGO BOX by editing/adding the red one variables to the template forumhome_loggedinuser


<li> {vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw loggedin}}" title="Current Activity:{vb:raw prepared.action} {vb:raw prepared.where}
">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}</li>




...like the sample attachment below that i created only for this...(pls.view it below)

it didn't go well and it show only the Current Activity word...tried also to change and use loggedin.action and loggedin.where...but no luck...

which is actually this variables are being used to template memberinfo_block_aboutme for Current Activity... is this possible to use to another template like to this one now forumhome_loggedinuser ?

or do i have to create anything like plugin, template or something for this at first, vb file to edit and add somethin or what?

it means how can i add new var to exist template like this (forumhome_loggedinuser) so i can use to show users current activity?

guys need help here and appreciate it if anyone can guide me on this please...

thanks for your time reading this and best regards to all...

:p

Lynne
03-14-2010, 03:32 PM
And have you defined the variables $loggedin and $prepared somewhere? As far as I know, those are not varialbes defined in the forum.php page. You may want to read the code for that page to see what the names of the variables are for use.

princeedward
03-15-2010, 01:13 PM
thanks a lot lynne...

well i am not sure or i guess it's not...to be honest i have no exact idea or i'm just trying everything to make the way i like it like on my attachment image above...or trying to figure out how to do this or if this is possible...

so let say forget all the things i made or add...just a simple questions....is it possible to show the exact location or current activity of the user's online which we see on the

WGO: Currently Active Members ? or not?

do i have to create anything on this to make it happen or how do i fetch the current activity of each members online? which we can see always on our member php page like the attachment image below...


memberinfo_block_ministats current activity code


<vb:if condition="$prepared['action']">
<dl class="stats">
<dt>{vb:rawphrase current_activity}</dt>
<dd> {vb:raw prepared.action} {vb:raw prepared.where}</dd>


</dl>
</vb:if>
<vb:if condition="$prepared['lastactivitydate']">
<dl class="stats">
<dt>{vb:rawphrase last_activity}</dt>
<dd> {vb:raw prepared.lastactivitydate}<vb:if condition="!$show['detailedtime']"> <span class="time">{vb:raw prepared.lastactivitytime}</span></vb:if></dd>
</dl>
</vb:if>




best regards...:o

Lynne
03-17-2010, 02:34 AM
Sure you could show that. But, like I said before (I think on your vb.com thread), you will probably have to hook into the user query in forum.php (around line 460) to make sure that information is grabbed in the query.

princeedward
03-17-2010, 01:59 PM
:( hmm....well i guess i have to stop dreaming to make this happen and squeeze my tiny and not talented brain on this...to be honest really got no slight idea about what your telling me to do or how to start it and make this thing happen...that's why did asking for any help to our genious coder here...but seems that you are the only one who are really interested to help me here and there for free...LOL :p

really appreciate your help Lynne on this...i must say gonna forget this and maybe someday anyone will continue and release this...

best regards...

:o

FloatBird
05-20-2011, 10:18 PM
I'm dreaming of this now!

could I just do a var on a member hook and then register it to another template!!

Boofo
05-20-2011, 10:51 PM
Sure you could show that. But, like I said before (I think on your vb.com thread), you will probably have to hook into the user query in forum.php (around line 460) to make sure that information is grabbed in the query.

I'm wondering if pre-registering the variable for the foumhome template would pull it out. Of course you would have to edit the template for the alt tag also.