Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2008, 05:51 PM
fsbmax's Avatar
fsbmax fsbmax is offline
 
Join Date: Aug 2007
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Users online on non vb pages?

Is there a mod to have users online show on pages that are non vbulletin? for example whos online on the right side column of the websites homepage....

I am also looking for a login box... once they login it shows their avatar and what not on the websites homepage aswell....

Anyone point me in the right direction here please

Reply With Quote
  #2  
Old 08-05-2008, 11:59 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There have been plenty thread about this. Basically, you need to replicate what happens to display the logged in list in index.php.
Reply With Quote
  #3  
Old 08-05-2008, 12:03 PM
dgeere dgeere is offline
 
Join Date: Nov 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also wish to know this. Any chance of being a little more clear or linking to one of the many threads? I have done some searches but can't find anything that seems to be right aside from an old (3.0) add on that is no longer supported.

Thanks.
Reply With Quote
  #4  
Old 08-05-2008, 12:15 PM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You will require PHP knowledge. Again, you just look at what index.php does, and duplicate what it does.
Reply With Quote
  #5  
Old 08-05-2008, 12:34 PM
dgeere dgeere is offline
 
Join Date: Nov 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have some php knowledge and am happy following modification routes. I just wondered if you may be able to point us to one of those many other threads you speak of that may give better detail on the particulars / areas of the index php file that should be even looked at, what functions they call on etc.

May as well have said "copy what vbulletin does". I obviously know that vbulletin is doing what I want, I just wish to have a little guidance on how to perform similar actions outside of the vbulletin files / framework.

Anyone else care to point us in the direction of one of the many threads that ask the same thing that might have a better solution?

Thanks
Reply With Quote
  #6  
Old 08-05-2008, 08:16 PM
RLShare RLShare is offline
 
Join Date: Jun 2008
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All threads have the same anwser. That was his point. If you want to know how to do it, look through the 'index.php' file and figure out how VB does it.

The example you are looking for is already in the index.php file. What more of an example could you need then the way its done by the jelsoft itself. Find the code that creates that section and then replicate it in your custom page.

edit: I just looked at the index.php myself and their is a big fat comment near the bottom of the file that says logged in users. I would guess thats what your looking for.
Reply With Quote
  #7  
Old 08-05-2008, 09:19 PM
dgeere dgeere is offline
 
Join Date: Nov 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup. moved that into file, sorted the file includes etc.
None of it worked.

In the end just written my own sql query that direct gets the info from the database using the sessons, user ids and a timestamp.

Maybe someone will actually reply to a thread with step by step instructions of how you do it the proper way in VB and then people can find it and link to it in the future.

Not everyone knows enough about php to just work it out from some code that is there. was just hoping for a little more help. sigh.
Reply With Quote
  #8  
Old 08-05-2008, 09:38 PM
RLShare RLShare is offline
 
Join Date: Jun 2008
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I thought you said you knew PHP a couple of posts up?
Reply With Quote
  #9  
Old 08-05-2008, 09:52 PM
dgeere dgeere is offline
 
Join Date: Nov 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I said "I have some php knowledge". Enough to get by normally on basic things.

Anyway, never mind.
Reply With Quote
  #10  
Old 08-05-2008, 11:18 PM
fsbmax's Avatar
fsbmax fsbmax is offline
 
Join Date: Aug 2007
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what about a login box?
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 01:25 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.07351 seconds
  • Memory Usage 2,238KB
  • Queries Executed 11 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete