Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives

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
  #32  
Old 01-05-2001, 06:16 PM
Guest
 
Posts: n/a
Default

wow, it works! thanks a bunch!
Reply With Quote
  #33  
Old 01-05-2001, 07:26 PM
Guest
 
Posts: n/a
Default

MonkeyManx -

I checked out your page, and you seem to still have a problem with errors showing up for users without a cookie. Check to make sure that the following part of the code from the textfile I posted is before any HTML in index.php.

Code:
<?php
// Changes to forum directory, runs "usersonline.php", and changes back
chdir ("forums/");       // Change "forums/" to reflect your vBulletin directory if it is different
require("usersonline.php");
chdir("../");
?>
Other than that, it looks like it fits in real nicely with the rest of the page
Reply With Quote
  #34  
Old 01-05-2001, 08:12 PM
Guest
 
Posts: n/a
Default

oh thanks
Reply With Quote
  #35  
Old 01-09-2001, 06:44 AM
Guest
 
Posts: n/a
Default

oh my god.. this thread is still going!

all i did really... I created a copy of the index.php, called it frontpage.php

at the end, i changed the echo to be "frontpage" instead of calling the template "forumhome"

then i created a template called "frontpage" with all my custom layout

then I edited the global.php file to make "frontpage" and other templates readable from any of the vBulletin pages

and.. it WORKS!

>>>> http://www.onlineDJ.com
Reply With Quote
  #36  
Old 01-09-2001, 05:35 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by ManoOne

then I edited the global.php file to make "frontpage" and other templates readable from any of the vBulletin pages

and.. it WORKS!

>>>> http://www.onlineDJ.com


Hi, Can you specify what you did to global.php exactly?
I am using a different method which is causing some problems...would like to do it your way.. P.S. Phat Site!

Peace.
Reply With Quote
  #37  
Old 01-11-2001, 12:41 AM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by JackG
would like to do it your way.. P.S. Phat Site!

THANKS!

Well.. let me see... you only need to create a copy of index.php and call it sitefrontpage.php for example... then edit the last line to pull a new template instead of the "forumhome" template (echo line).

create your custom frontpage, you can start from the HTML code of the template "forumhome" to keep all the reg members count and all... and add your own design to it..

voila

not harder than this

Thanks for the comments again, feel free to join sometimes if you are into music (not just DJs, also composers and other performers are posting).

take care
Reply With Quote
  #38  
Old 01-11-2001, 06:11 AM
Guest
 
Posts: n/a
Default

THanks allot manoOne for taking the time to explain. I think I capish. Will try it tomorrow.

FYI.. I am already display who's online on my home page thanks to Ben. What I was hoping to do is log a user in when they enter the main page.. I am asuming your method dies this?

About your site.. I sent my partner there..he is New York's #1 freestyle music DJ (on WKTU 103.5). Said he loves it.

Keep up the good work on your site, Mine is similar..except it is all about freestyle music.

The cool thing is that many artists and producers are regulars. Eveyone loves the brand new vBulletin I installed.

Take care.

[Edited by JackG on 01-11-2001 at 03:23 AM]
Reply With Quote
  #39  
Old 01-12-2001, 02:24 AM
Guest
 
Posts: n/a
Default

that's great, man.
I appreciate the comments, thanks.

I like your site too. I clicked everywhere
See you soon
Reply With Quote
  #40  
Old 01-12-2001, 02:24 AM
Guest
 
Posts: n/a
Default

small problem
why does http://halflifeworld.net display an error and http://www.halflifeworld.net works fine? Anyone know?
Reply With Quote
  #41  
Old 01-12-2001, 06:18 AM
Guest
 
Posts: n/a
Default

place this in your global.php

~~~~~~~~~~
// ###################### Check Usersonline #######################
$vars=$DB_site->query("SELECT user.username, user.userid FROM user, session WHERE session.userid=user.userid");
while($var=$DB_site->fetch_array($vars)) {
$varcache["{usersonline}"] .=' <a href="member.php?action=getinfo&userid='.$var[userid].'">'.$var[username].'</a>';
}
~~~~~~~~~~

require global.php

place in your templates {usersonline} (the replace variable)

e.g.:

usersonline.php
~~~~~~~~~~
<?

require("global.php");
eval("echo dovars(\"".gettemplate("usertest")."\");");

?>
~~~~~~~~~~

template usertest
~~~~~~~~~~
<table>
<tr>
<td>{usersonline}</td>
</tr>
</table>
~~~~~~~~~~

sorry for the bad english i am a german guy
Reply With Quote
Reply

Thread Tools

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 03:22 PM.


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.06796 seconds
  • Memory Usage 2,275KB
  • 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
  • (1)bbcode_code
  • (2)bbcode_quote
  • (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
  • (3)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