The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Currently Active Members/Users: Shows Current Activity Location...
hi guys...hope anyone can correct me or guide me on this please...kinda newbie or still trying to learn some correct coding here...
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 Code:
<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> 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... |
#2
|
||||
|
||||
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.
|
#3
|
||||
|
||||
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 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... |
#4
|
||||
|
||||
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.
|
#5
|
||||
|
||||
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
really appreciate your help Lynne on this...i must say gonna forget this and maybe someday anyone will continue and release this... best regards... |
#6
|
||||
|
||||
I'm dreaming of this now!
could I just do a var on a member hook and then register it to another template!! |
#7
|
||||
|
||||
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.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|