PDA

View Full Version : How to add a webscript to my vbulletin Template


Dieter27
01-11-2015, 03:26 PM
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 ?

HM666
01-11-2015, 03:47 PM
It depends on where you want to add it on your web site.

Dieter27
01-11-2015, 03:54 PM
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

HM666
01-11-2015, 07:24 PM
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 (https://vborg.vbsupport.ru/forumdisplay.php?f=30) forum instead.

Dieter27
01-12-2015, 02:55 PM
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 (https://vborg.vbsupport.ru/forumdisplay.php?f=30) forum instead.


ok thx alot for the information

thetechgenius
01-13-2015, 08:13 AM
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.

blind-eddie
01-13-2015, 09:41 AM
Link me to where you will be getting the stats script from.

Dieter27
01-18-2015, 08:53 AM
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 1421578513 at 1421578513 ---------------

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

blind-eddie
01-18-2015, 12:38 PM
You will need to first create a new page by following the instructions here (https://vborg.vbsupport.ru/showthread.php?t=228112).

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

<h2 class="blockhead">Title</h2>
<div class="blockbody">
<div class="blockrow">
Text
</div>
</div>

Replace the word "Text" with the following 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 (http://northamericancarclub.com/stats.php).
But can not make it look like the site without editing the css for that script.

Happy Editing!

thetechgenius
01-18-2015, 03:01 PM
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.

Dieter27
01-18-2015, 05:11 PM
You will need to first create a new page by following the instructions here (https://vborg.vbsupport.ru/showthread.php?t=228112).

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

<h2 class="blockhead">Title</h2>
<div class="blockbody">
<div class="blockrow">
Text
</div>
</div>

Replace the word "Text" with the following 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 (http://northamericancarclub.com/stats.php).
But can not make it look like the site without editing the css for that script.

Happy Editing!


thx alot for the help i will try it tommorow i can otherwise send you the script in a zip file if i can upload it somewhere grtz

blind-eddie
01-18-2015, 08:25 PM
Upload the zip file to your server and pm me the link to it.