Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 08-17-2008, 11:01 PM
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe a look at online.php might help you better but that would require you to use php.
Reply With Quote
  #12  
Old 08-18-2008, 11:18 AM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I'm not sure what you mean by "change the folder for the code". The article simply outlines exactly what is present in vb's index.php page to display the Online Users. If someone wants to show the Online Users on some other non-vb page, then those are the things that must be present (the code, the included file, the template edit).
Lynne, my mistake, I obviously was not interpreting your instructions correctly. I've added the php code and copied the items from my vb index.php into a test1.php file in my website home folder.

My question is about the last template part, what part is this refering to? I know about the templates in vB or are you talking about something else?

You can see my result here http://www.os-db.net/test1.php
Reply With Quote
  #13  
Old 08-18-2008, 02:57 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by marcopolo View Post
Lynne, my mistake, I obviously was not interpreting your instructions correctly. I've added the php code and copied the items from my vb index.php into a test1.php file in my website home folder.

My question is about the last template part, what part is this refering to? I know about the templates in vB or are you talking about something else?

You can see my result here http://www.os-db.net/test1.php
On your test1.php page, don't you have other information you are trying to show on there besides the usersonline? How do you spit that information out? The article I wrote is intended to show the code to *add to* your template and *add to* your php page. It is not stand alone code.
Reply With Quote
  #14  
Old 08-18-2008, 04:03 PM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
On your test1.php page, don't you have other information you are trying to show on there besides the usersonline? How do you spit that information out? The article I wrote is intended to show the code to *add to* your template and *add to* your php page. It is not stand alone code.
My main page index.php (formerly.html) is simply html using a css, I have a small line of php code showing todays date and time.

I'm obviously missing the plot here because I can't beleive displaying the usersonline is so difficult to display.

Am I right in saying the PHP code is calling the info, so how do I display it?
Reply With Quote
  #15  
Old 08-18-2008, 04:30 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you display you information on your index.php (formerly html) page? Is it straight php with no templates? If so, I suppose you could just add the html lines I posted in the article into your page. However, you do need to include the global.php and functions_bigthree.php pages in your php page in order to parse those vbphrases and such.

You might want to post your php page here and perhaps we can work out what you need to add.
Reply With Quote
  #16  
Old 08-18-2008, 04:44 PM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

removed data
Reply With Quote
  #17  
Old 08-18-2008, 05:21 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting an error on your index page and I think it's because you have not defined your doctype:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
You didn't close the tag.
Reply With Quote
  #18  
Old 08-18-2008, 05:46 PM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There you go, basically I want to show the usersonline under the community area with no underline.
Reply With Quote
  #19  
Old 08-18-2008, 06:14 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just copied your code and put it up on my test site and I actually see a page without errors (although the page does have problems). Have you checked your "chdir" to make sure it's valid for you site? Try inputing the full path:
PHP Code:
 chdir ('/home/yoursite/public_html/forum'); 
Reply With Quote
  #20  
Old 08-18-2008, 06:51 PM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It must be something on the page index1.php because http://www.os-db.net/index3.php shows users online and this is basically your instructions with an echo echo $activeusers;

--------------- Added [DATE]1219091894[/DATE] at [TIME]1219091894[/TIME] ---------------

I've given up on this, thanks for the help Lynne but if it's this frustrating to add then it's not for me.

--------------- Added [DATE]1219130473[/DATE] at [TIME]1219130473[/TIME] ---------------

Right, since I've done so much work on this I'm finding it hard to let go.

This is what I've done, copied the sections into a index1.php and created a test.html and added the first part of the HTML code.

The outcome is here http://www.os-db.net/test.html

any ideas?

--------------- Added [DATE]1219131989[/DATE] at [TIME]1219131989[/TIME] ---------------

Ok,

I can only think that the html code that you have referred to is not enough here, what additional code do I need to place in the template (html file) to display the info.
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 12:27 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.04546 seconds
  • Memory Usage 2,261KB
  • 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)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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