vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   where to enter this code please (https://vborg.vbsupport.ru/showthread.php?t=223381)

jaderollie 09-16-2009 11:42 PM

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 ;)

Lynne 09-17-2009 02:21 AM

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.

jaderollie 10-14-2009 07:41 AM

heres where i want to put the code to the left of the welcome here
which is at the top of my forum :-
http://img2.imageshack.us/img2/711/awelcome.jpg http://img2.imageshack.us/img2/awelcome.jpg/1/w750.png

and heres how the code looks to show whos in my chat room when added :-
http://img169.imageshack.us/img169/260/awelcome1.jpg http://img169.imageshack.us/img169/a...jpg/1/w289.png

as you can its the same size, and fit,
i would also like it down here at the bottem right of this too please :-
http://img169.imageshack.us/img169/6140/awelcome2.jpg http://img169.imageshack.us/img169/a...jpg/1/w612.png



any help on this would be great thanks, especially which templates are needed to add it, and where

Lynne 10-14-2009 03:30 PM

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.

jaderollie 10-14-2009 11:28 PM

Quote:

Originally Posted by Lynne (Post 1899726)
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??

Lynne 10-14-2009 11:40 PM

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.

jaderollie 10-15-2009 01:10 AM

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 :-

http://img2.imageshack.us/img2/1918/46577604.jpg http://img2.imageshack.us/img2/46577604.jpg/1/w1325.png

thanks again, as its well appreciated, especially your time

Lynne 10-15-2009 02:39 AM

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>

jaderollie 10-15-2009 04:12 AM

Quote:

Originally Posted by Lynne (Post 1900120)
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 :-
http://img508.imageshack.us/img508/4456/nav.jpg http://img508.imageshack.us/img508/nav.jpg/1/w567.png

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


All times are GMT. The time now is 09:21 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.01308 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete