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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-16-2009, 11:42 PM
jaderollie jaderollie is offline
 
Join Date: Nov 2008
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default where to enter this code please

hi,
i have this code :-

<script language="javascript" src="MY SITE ADDRESS IS HERE
/scripts/stats.php?view=2"></script>

<script language="javascript" src="MY SITE ADDRESS IS HERE/scripts/stats.php"></script>

one is To display online users in your website, simply copy and paste the code below in your webpage

the other is To display total number of registered users, simply copy and paste the code below in your webpage

where do i enter this code please???
how do i get this to show on the front page of my forums please??
id like it to be at the top if possible on my forums for users to see thanks

cheers in advance for help
Reply With Quote
  #2  
Old 09-17-2009, 02:21 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to ask this question at the site you got the scripts from. vbulletin already shows users online and the total number of registered users, so I can't think of why you would even want that script on your vb pages.
Reply With Quote
  #3  
Old 10-14-2009, 07:41 AM
jaderollie jaderollie is offline
 
Join Date: Nov 2008
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

heres where i want to put the code to the left of the welcome here
which is at the top of my forum :-


and heres how the code looks to show whos in my chat room when added :-


as you can its the same size, and fit,
i would also like it down here at the bottem right of this too please :-




any help on this would be great thanks, especially which templates are needed to add it, and where
Reply With Quote
  #4  
Old 10-14-2009, 03:30 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Create a new column in the navbar template where the username is entered and put your code for the chat room there.

Find an appropriate spot in the FORUMHOME template and input your line there.
Reply With Quote
  #5  
Old 10-14-2009, 11:28 PM
jaderollie jaderollie is offline
 
Join Date: Nov 2008
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Create a new column in the navbar template where the username is entered and put your code for the chat room there.

Find an appropriate spot in the FORUMHOME template and input your line there.
where exactly is the templates of the ones i want above??
Reply With Quote
  #6  
Old 10-14-2009, 11:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I told you which templates.... the navbar template and the FORUMHOME template. If those aren't correct templates for you due to a custom style, then you can figure out the template yourself by doing this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
Reply With Quote
  #7  
Old 10-15-2009, 01:10 AM
jaderollie jaderollie is offline
 
Join Date: Nov 2008
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry im a totally new at this, and its abit above my head

anyway i got it in there thanks, but how do i get it to sit in the middle, or beside the places i want, if this cant be done, then no worries, as you been great thanks, and though its off centre, im happy thanks

heres the code anyway just in case :-

<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="" border="0" /><else /><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
<script language="javascript" src="http:// MY SITE IS HERE .com/visichat/scripts/stats.php"></script>
</td>
<!-- AddThis Button BEGIN -->
<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=jaderollie"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=jaderollie"></script>
<!-- AddThis Button END -->
<td class="alt1">
</td>

AND this bit is what i added into the above :-
<script language="javascript" src="http:// MY SITE IS HERE .com/visichat/scripts/stats.php"></script>

and heres how it looks on my site now :-



thanks again, as its well appreciated, especially your time
Reply With Quote
  #8  
Old 10-15-2009, 02:39 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really don't know exactly. Your navbar is not default at all. I would suggest creating a new column (<td>) next to the login box (right before it) and putting it in there. In the default template, it is just a single row, so that would be easy to do.
HTML Code:
<td>your code</td>
Reply With Quote
  #9  
Old 10-15-2009, 04:12 AM
jaderollie jaderollie is offline
 
Join Date: Nov 2008
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I really don't know exactly. Your navbar is not default at all. I would suggest creating a new column (<td>) next to the login box (right before it) and putting it in there. In the default template, it is just a single row, so that would be easy to do.
HTML Code:
<td>your code</td>
perfect that was great thanks

heres how it looks :-


now that is great thanks
so is there anyway i can add that other wee bit of code please to show how many members there are total, but it sits beside square on in same line??

if not no worries, as im set anyway, and ill thank you in advance now cheers
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:56 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.04215 seconds
  • Memory Usage 2,246KB
  • Queries Executed 13 (?)
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_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete