Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-01-2001 Last Update: Never Installs: 0
 
No support by the author.

I would like to include the $loggedinusers on a non VB page.

I assume that writing this data to a TXT file (and inserting it via SSI) everytime this data is modified would be a PAIN for the server as it may change several times per second when traffic is high... SO... what do you suggest?

Any of you guys could help?

I think that several peopel are trying to integrate vBulletin to sites as much as possible... I think that designwise it is the BEST board (onlineDJ.com looks great with the board, perfect integration) but it would be great to have an easy step by step help to show data to non VB pages, and to easily use the login of the board to other parts of the site.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-05-2001, 04:46 AM
Guest
 
Posts: n/a
Default

Thanks bmurray ! Your method works.
Do you think this would cause an big extra load on my NT server by doing this on the home page?
Reply With Quote
  #23  
Old 01-05-2001, 04:52 AM
Guest
 
Posts: n/a
Default

It displays fine:

(look to the lower right for a ruff test)

http://www.clubfreestyle.com/newdefault.php

the problem is...when you click on a user..The url os a dead link because it tries to go to:

http://www.clubfreestyle.com/member....tinfo&userid=2

instead of the correct link:

http://www.clubfreestyle.com/forum/m...tinfo&userid=2
Reply With Quote
  #24  
Old 01-05-2001, 05:51 AM
Guest
 
Posts: n/a
Default

how did you get that?
Reply With Quote
  #25  
Old 01-05-2001, 12:38 PM
Guest
 
Posts: n/a
Default

Bmurray..I just realized that if you are not logged into the system..and you go to that page..

It actually gives an error. Please check.

How can we avoid that?
Reply With Quote
  #26  
Old 01-05-2001, 12:44 PM
Guest
 
Posts: n/a
Default

To get correct links, you will have to use a different template in the code on the main page. Create a template called "loggedin_new" (or anyname you prefer), and change the link so that it puts a forum/ in it.

Add template - loggedin_new
Code:
<a href="forum/member.php3?action=getinfo&userid=$userid">$username</a>
Then change any reference to the template "loggedinuser" to "loggedin_new" in your code. Just make sure you don't confuse it with the other template "loggedinusers" that has an "s" at the end.


Let me know how that works


[edit]
Hmm...I'll have to check that out regarding the not logged in error...I'll get back to you
[/edit]
Reply With Quote
  #27  
Old 01-05-2001, 02:21 PM
Guest
 
Posts: n/a
Default

I think it is trying to create cookies, but the code is being executed in the incorrect order in relation to the rest of the page.

I'm not sure how you have the PHP page set up currently, but try putting this part:

Code:
<?php
chdir ("forum/");
require("testwho.php");
chdir("../");
/>
at the very beginning of your newdefault.php file. Then go into the "testwho.php" file and remove the statement

Code:
echo $loggedinusers;
and instead place

Code:
<?php
echo $loggedinusers;
?>
in the newdefault.php file where you want it displayed.

Unfortunately I'm at work and have no way to test to see if this works before posting.

Let me know what happens
Reply With Quote
  #28  
Old 01-05-2001, 02:57 PM
Guest
 
Posts: n/a
Default

Good Job! I can now see whos online without being loged in!

Next i will try to fix the hyerlink problem. i will keep you posted. Many Many Thanks!
Reply With Quote
  #29  
Old 01-05-2001, 03:39 PM
Guest
 
Posts: n/a
Default

Ben,

Everything you suggested works fine! Check it:

http://www.clubfreestyle.com/newdefault.php

(keep in mind that you might see some broken images, etc.. That page is just a test page so please disreguard it's appearance.)

You Da Man!

Please keep in touch.
Reply With Quote
  #30  
Old 01-05-2001, 04:04 PM
Guest
 
Posts: n/a
Default

please look at:
http://www.halflifeworld.net and tell me what im doing wrong.
The Red and yellow table sholdnt be there, and the $loggedin_new is not showing up.
Reply With Quote
  #31  
Old 01-05-2001, 05:38 PM
Guest
 
Posts: n/a
Default

MonkeyManx - it appears you need to move the code to the beginning of your index file. To make it simpler and because this has changed since my first post with info, I redid the instructions for getting this to work and put it in a text file:

loggedin.txt

After some trial and error, this should contain what is needed to get it work properly. Keep in mind this isn't a "hack" so to speak, and at some point when I have time I am going to try to refine it a little bit to work more efficiently.
Reply With Quote
Reply


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 04:44 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04576 seconds
  • Memory Usage 2,276KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)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
  • 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