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

Reply
 
Thread Tools Display Modes
  #1  
Old 01-11-2015, 03:26 PM
Dieter27 Dieter27 is offline
 
Join Date: Feb 2013
Location: Belgium
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to add a webscript to my vbulletin Template

Hi,


I want to add a webscript that i putted in a folder in my website its a sort of stats http://www.muppetsonweed.net/HgStats/

that you can see here but how can i add this so it uses the same template from my website now http://www.muppetsonweed.net/

i want to have so the stats could be implemented into my template i use now is that possible ?
Reply With Quote
  #2  
Old 01-11-2015, 03:47 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It depends on where you want to add it on your web site.
Reply With Quote
  #3  
Old 01-11-2015, 03:54 PM
Dieter27 Dieter27 is offline
 
Join Date: Feb 2013
Location: Belgium
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx for the reply well i just would like to have it in the navbar maybe and call it lets say "Serverstats" but i would like so that i can have it so it has the same look as my forum adn insert it like that if you understand what i mean grtz


edit; here is an example how i would like to have it http://gyazo.com/34cb2d0220f9b968b77018193dbdc1f9 so it acctually should have ame look as my forum showing thez stats i hope that is possible
Reply With Quote
  #4  
Old 01-11-2015, 07:24 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok as for the look and feel it would depend on the code you have for this as to what can be done with it. What you are asking is possible to do but its a lot of work and would take a lot of time to accomplish and if you are not code savvy or know code at all it probably would be better to post in the Paid Requests forum instead.
Reply With Quote
Благодарность от:
MarkFL
  #5  
Old 01-12-2015, 02:55 PM
Dieter27 Dieter27 is offline
 
Join Date: Feb 2013
Location: Belgium
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HM666 View Post
Ok as for the look and feel it would depend on the code you have for this as to what can be done with it. What you are asking is possible to do but its a lot of work and would take a lot of time to accomplish and if you are not code savvy or know code at all it probably would be better to post in the Paid Requests forum instead.

ok thx alot for the information
Reply With Quote
Благодарность от:
MarkFL
  #6  
Old 01-13-2015, 08:13 AM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is that a PHP Script with its own database? If it is, I think the best way to put that into vB, is to use an iFrame.

This is an iFrame on my site, I have a Web IRC Client that connects to my IRC Server (You may need to be logged in to see it): https://thetechgenius.net/irc.php

Its pretty easy to use an iFrame, if you need any help let me know.
Reply With Quote
  #7  
Old 01-13-2015, 09:41 AM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Link me to where you will be getting the stats script from.
Reply With Quote
  #8  
Old 01-18-2015, 08:53 AM
Dieter27 Dieter27 is offline
 
Join Date: Feb 2013
Location: Belgium
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thetechgenius View Post
Is that a PHP Script with its own database? If it is, I think the best way to put that into vB, is to use an iFrame.

This is an iFrame on my site, I have a Web IRC Client that connects to my IRC Server (You may need to be logged in to see it): https://thetechgenius.net/irc.php

Its pretty easy to use an iFrame, if you need any help let me know.
yes it is a php script with its own database i saw on other forums that it is possible but i am nota coder so i just wanted to know if its possible to do so thx for the reply grtz

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

Quote:
Originally Posted by blind-eddie View Post
Link me to where you will be getting the stats script from.

http://www.muppetsonweed.net/SurfStats/

its not toally finished but like you can see it looks really ugly like this it would be awesome if i could implement that in my theme from vbulletin grtz
Reply With Quote
  #9  
Old 01-18-2015, 12:38 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You will need to first create a new page by following the instructions here.

In the template you will be creating via the instructions linked above you will see the following code.

Code:
    <h2 class="blockhead">Title</h2>
    <div class="blockbody">
      <div class="blockrow">
        Text
      </div>
    </div>
Replace the word "Text" with the following code.

Code:
<iframe src="http://www.muppetsonweed.net/SurfStats/" width="1000" height="1000">
<p>Your browser does not support iframes.However, we'll still 
<A HREF="http://www.muppetsonweed.net/SurfStats/">link</A>you to the file. </p>
</iframe>
Edit the Width and Height to your liking.

Save...

Now, you need to match up the stats css to match your site css

Pm me a link to where I can download the stats script please.

I added it to my 3.8.8 site just to show you it can be done, view it here.
But can not make it look like the site without editing the css for that script.

Happy Editing!
Reply With Quote
  #10  
Old 01-18-2015, 03:01 PM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, like Blind-Eddie said. After you have it working right on your site, then you can start to style it with CSS and HTML so it blends in and looks good with the rest of your site.
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:53 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.04848 seconds
  • Memory Usage 2,263KB
  • 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
  • (2)bbcode_code
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete