Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 03-14-2010, 03:13 PM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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>
...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...

Attached Images
File Type: gif current_activity.gif (45.5 KB, 0 views)
Reply With Quote
  #2  
Old 03-14-2010, 03:32 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 03-15-2010, 01:13 PM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Attached Images
File Type: png activity.png (12.6 KB, 0 views)
Reply With Quote
  #4  
Old 03-17-2010, 02:34 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 03-17-2010, 01:59 PM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...

Reply With Quote
  #6  
Old 05-20-2011, 10:18 PM
FloatBird's Avatar
FloatBird FloatBird is offline
 
Join Date: Jan 2010
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm dreaming of this now!

could I just do a var on a member hook and then register it to another template!!
Reply With Quote
  #7  
Old 05-20-2011, 10:51 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06369 seconds
  • Memory Usage 2,239KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (2)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete